# Animator Module - Not exporting correctly

**URL:** <https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016>\
**Category:** Support\
**Tags:** slicermorph\
**Created:** [April 10, 2021, 4:15am UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016 "2021-04-10T04:15:45Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebryson](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ebryson](https://discourse.slicer.org/u/ebryson)\
**Post date:** [April 10, 2021, 4:15am UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/1 "2021-04-10T04:15:45Z")

</div>

Hello! I’m running into a small problem with the Animator module. I’m trying to export a GIF of my model but when I select the directory destination and click export a window showing the GIF pops up, but the file itself doesn’t save anywhere on my computer. Any thoughts?

Thanks! Here’s a screenshot of my settings, maybe that’s where I went wrong…

 ![Screen Shot 2021-04-10 at 12.11.23 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/7/07a75c0ebf437d6d2c4da453674664104dc1a31a.jpeg)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 10, 2021, 5:35am UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/2 "2021-04-10T05:35:05Z")

</div>

I can’t replicate this on windows. Perhaps FFMPEG library didn’t install correctly? You may want to switch to `Screen Capture` module and see if ffmpeg library is installed (see below). Normally it should automatically offer to download and install for windows and mac in the first use.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/5/d5f0a94782b212860ee0ce250c2f9cd995a170f4.png)

After you created the animation, another option is to use the `Screen Capture` module to save just a series of images, which then you can turn into animated gif or mp4 using other software. See here for more information: [Spr\_2021/Day\_2/SlicerAnimator/SlicerAnimator.md at main · SlicerMorph/Spr\_2021 · GitHub](https://github.com/SlicerMorph/Spr_2021/blob/main/Day_2/SlicerAnimator/SlicerAnimator.md#saving-output)

---

<div class="post-metadata">

**Author:** ![ebryson](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@ebryson](https://discourse.slicer.org/u/ebryson)\
**Post date:** [April 10, 2021, 5:35pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/3 "2021-04-10T17:35:13Z")

</div>

Hello,

I think that’s it! Looks like the FFMPEG library isn’t installed (see below), I’m not sure what that is though so could you tell me how I can install it?

 ![Screen Shot 2021-04-10 at 1.33.26 PM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/f/bffc5e888321eb254830bdd34647156328939eea.png)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 10, 2021, 6:41pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/4 "2021-04-10T18:41:30Z")

</div>

Normally, when you try to use the `ScreenCapture` module the first time and choose the output as mp4, it should normally offer to download and install it automatically.

In your screenshot above, change the output type from Image series to video.

. Can you try that?

---

<div class="post-metadata">

**Author:** ![bcolbert](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bcolbert/32/11162_2.png) [@bcolbert](https://discourse.slicer.org/u/bcolbert)\
**Post date:** [July 10, 2021, 6:39pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/5 "2021-07-10T18:39:32Z")

</div>

I seem to be having a similar issue. When I take you advice and select video and then click capture and it prompts me to download ffmpeg. I click yes but the download fails. It does not offer an explanation as to why. Any suggestions?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 10, 2021, 7:53pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/6 "2021-07-10T19:53:30Z")

</div>

You can look in the error log to see if there’s info on the ffmpeg install. Paste the info here and maybe it’s something we can fix. In any case, you can also install ffmpeg yourself ([Download FFmpeg](http://ffmpeg.org/download.html))

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 12, 2021, 12:38pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/7 "2021-07-12T12:38:55Z")

</div>

FFmpeg automatic installation is only available on Windows. For Linux and macOS you need to install it manually as described [here](https://slicer.readthedocs.io/en/latest/user_guide/modules/screencapture.html#setting-up-ffmpeg).

It would be nice if you could implement automatic installation for macOS and send a pull request.

---

<div class="post-metadata">

**Author:** ![Fullcalf42](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@Fullcalf42](https://discourse.slicer.org/u/Fullcalf42)\
**Post date:** [June 10, 2022, 12:26am UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/8 "2022-06-10T00:26:13Z")

</div>

I’m having this very same issue. Following the steps now in hopes it works! With SlicerMorph, I animated moving through a thorax in the axial plane to reveal a pulmonary embolism. Animation looks great, appears to export, but is nowhere to be found in the assigned directory. I’m on a Mac Mini OS Monterey.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 10, 2022, 4:01pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/9 "2022-06-10T16:01:18Z")

</div>

> [@Fullcalf42](#):
>
> h, I animated moving through a thorax in the axial plane to reveal a pulmonary embolism. Animation looks great, appears to export, but is nowhere to be found in the assigned directory. I’m on a Mac Mini OS Monterey.

From this description it sounds like Animator exports the individual frames, but mp4 conversion fails. Is that correct? Are you sure you have the ffmpeg installed?

To verify, go to the `ScreenCapture` module, expand the **Advanced** options, and see if you have the ffmpeg executable pointing out to the right location. If not, you can I think you can [here](https://evermeet.cx/ffmpeg/). But I am not a mac user, so I am not certain.

---

<div class="post-metadata">

**Author:** ![Fullcalf42](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@Fullcalf42](https://discourse.slicer.org/u/Fullcalf42)\
**Post date:** [June 10, 2022, 6:49pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/10 "2022-06-10T18:49:30Z")

</div>

Hi Murat,

I was using the SlicerMorph module, not the Animator. I don’t have ffmpeg installed in the Animator module. I tried the Home Brew solution but it didn’t take. I’ll try the other link you shared. Thanks for trying to help me!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [June 10, 2022, 9:23pm UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/11 "2022-06-10T21:23:11Z")

</div>

Slicermorph’s animator module uses screen capture module under the hood, which relies on the ffmpeg to do the conversion. Please download it and set it location in ScreenCapture and then try animator again.

---

<div class="post-metadata">

**Author:** ![Fullcalf42](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@Fullcalf42](https://discourse.slicer.org/u/Fullcalf42)\
**Post date:** [June 15, 2022, 2:40am UTC](https://discourse.slicer.org/t/animator-module-not-exporting-correctly/17016/12 "2022-06-15T02:40:22Z")

</div>

Thank you. I will try these solutions when I return to the office. I appreciate the expert tips.
