Trying to save a gif with Plots.jl results in an error



I’m not very experienced with julia yet and I wanted to create a gif for some animation.
The animation is correctly created (using @animate macro) and I have manually checked that the 100 images are indeed created.

However, when I call the method gif I get this error:

gif(anim, "\\tmp\\gif10.gif", fps=10)

ERROR: IOError: could not spawn `ffmpeg -v 0 -i '~\AppData\Local\Temp\jl_2211.tmp/%06d.png' -vf palettegen=stats_mode=diff -y '~\AppData\Local\Temp\jl_2211.tmp/palette.bmp'`: no such file or directory (ENOENT)

I’m using Windows 10.


Yeah, there’s a dependency on ffmpeg which is just very hard to install automatically as an automatic download. If you download ffmpeg from its website and install it globally on your system it should work.