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

**URL:** <https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620>\
**Category:** Visualization\
**Tags:** windows\
**Created:** [November 16, 2018, 9:41pm UTC](https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620 "2018-11-16T21:41:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a-berg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/a-berg/32/6218_2.png) [@a-berg](https://discourse.julialang.org/u/a-berg)\
**Post date:** [November 16, 2018, 9:41pm UTC](https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620/1 "2018-11-16T21:41:55Z")

</div>

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:

```julia
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.

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [November 17, 2018, 10:37am UTC](https://discourse.julialang.org/t/trying-to-save-a-gif-with-plots-jl-results-in-an-error/17620/2 "2018-11-17T10:37:09Z")

</div>

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.
