# FFmpeg isn't found

**URL:** <https://discourse.julialang.org/t/ffmpeg-isnt-found/22769>\
**Category:** General Usage\
**Tags:** bug\
**Created:** [April 4, 2019, 9:22pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769 "2019-04-04T21:22:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hugo\_276](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hugo_276/32/7805_2.png) [@Hugo\_276](https://discourse.julialang.org/u/Hugo_276)\
**Post date:** [April 4, 2019, 9:22pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769/1 "2019-04-04T21:22:47Z")

</div>

Hi  
I’m trying to use Juno for Atom on Windonws 10 64 using the following code

```julia
using Plots
anim = Animation()
p = plot([sin,cos], 0, π, size=(300,300))
scatter!([0], [sin,cos])
for i in 0:0.1:π
    p[3] = [i], [sin(i)]
    p[4] = [i], [cos(i)]
    frame(anim)
end
gif(anim)

```

But as an output I keep getting `ERROR: LoadError: IOError: could not spawn `ffmpeg -v 0 -i ‘C:\Users\Hugo\AppData\Local\Temp\jl\_5751.tmp/%06d.png’ -vf palettegen=stats\_mode=diff -y ‘C:\Users\Hugo\AppData\Local\Temp\jl\_5751.tmp/palette.bmp’`: no such file or directory (ENOENT)`

I have downloaded ffmpeg, changed the path in the env variables but it still does not work. `ffmpeg -version` works in the power shell but it doesn’t in the command prompt.

Hope someone will be able to get me out of this trouble…

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [April 4, 2019, 11:51pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769/2 "2019-04-04T23:51:26Z")

</div>

This showed up a while ago. You can find a workaround in [this](https://discourse.julialang.org/t/having-problems-with-creating-animations-with-plots-jl-grbackend-juno/21876) thread.

---

<div class="post-metadata">

**Author:** ![Hugo\_276](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hugo_276/32/7805_2.png) [@Hugo\_276](https://discourse.julialang.org/u/Hugo_276)\
**Post date:** [April 6, 2019, 8:11pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769/3 "2019-04-06T20:11:09Z")

</div>

I guess I haven’t greatly understood how you solved it.  
I changed my code to

```julia
using Plots
anim = Animation()
loadpath = "C:/Users/Hugo/"
p = plot([sin,cos], 0, π, size=(300,300))
scatter!([0], [sin,cos])
for i in 0:0.1:π
    p[3] = [i], [sin(i)]
    p[4] = [i], [cos(i)]    
    frame(anim)
end
gif(anim)
run( `ffmpeg -r 15 -i $loadpath"%06d.png" -vcodec libx264 -crf 25 "file.mp4"` )

```

but I still get

```julia
Could find no file with path 'C:/Users/Hugo/%06d.png' and index in the range 0-4
C:/Users/Hugo/%06d.png: No such file or directory
ERROR: LoadError: failed process: Process(`ffmpeg -framerate 15 -i C:/Users/Hugo/%06d.png -vcodec libx264 -crf 25 file.mp4`, ProcessExited(1)) [1]

```

This exact same code seemed to work for tiago so I’m wondering what’s wrong…  
Sorry for requiring so much help though.

---

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [April 7, 2019, 12:18pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769/4 "2019-04-07T12:18:58Z")

</div>

Lets say nearly the same code 😉  
Try this:

```julia
using Plots
loadpath = "C:/Users/Hugo/"
anim = Animation(loadpath,String[])
p = plot([sin,cos], 0, π, size=(300,300))
scatter!([0], [sin,cos])
for i in 0:0.1:π
    p[3] = [i], [sin(i)]
    p[4] = [i], [cos(i)]    
    frame(anim)
end
run( `ffmpeg -r 15 -i $loadpath"%06d.png" -vcodec libx264 -crf 25 "file.mp4"` )

```

---

<div class="post-metadata">

**Author:** ![Hugo\_276](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hugo_276/32/7805_2.png) [@Hugo\_276](https://discourse.julialang.org/u/Hugo_276)\
**Post date:** [April 7, 2019, 1:52pm UTC](https://discourse.julialang.org/t/ffmpeg-isnt-found/22769/5 "2019-04-07T13:52:51Z")

</div>

I think I’ve understood where I was wrong now  
Thanks a lot!
