Animator function making choppy gifs

I am using the animator function to create a 5-10 second gif. The gifs all end up being very choppy regardless of what size they are. Any suggestions? Looking to create a gif to put in a presentation.

Animation4

Does it look correct when it’s rendering? Do other file formats behave differently?

It looks fine in the animator mode and when I change format to mpeg-4 it looks fine. Seems to only occur when making a gif.

The Ainimator uses the ScreenCapture module under the hood by creating a sequence. If you go to that module you can select the sequence and play with the output options and also the ffmpeg command line options. Or you can choose to save the frames to a directory and encode with a different gif tool. You can google around and find lots of advice. Perhaps the images are too high-res for a gif. Let us know what you find out.

https://slicer.readthedocs.io/en/latest/user_guide/modules/screencapture.html

Animated GIF is very bad for storing video: it only supports fixed 256-color palette, which results in very low quality images; file sizes can be 10-100x larger than with video compression; hardware-accelerated decoders are not available, etc. GIF format was designed more than 30 years ago and it is amazing that people still find it useful today, but it is really time to move on.

If you compress your video with h.264 encoder and store it in an mp4 file then you can replay it everywhere (you don’t need to worry that your video will not play on another computer like it was often the case 10 years ago). You might also consider h.265 codec (slightly better compression) or AV1 (no licensing hassles), but they are not as universally supported as h.264.

1 Like