GIF export settings - dithering?

one of the things I use Shotcut for it to create small GIFs. I really find it useful for this, but I’ve found that a while back something changed in the gif export settings. Earlier they were pretty good, and file sizes were fine, but after this change (maybe late last year), the gif is highly dithered and as a result the file sizes are larger, as well as harder to optimize later with for instance gifsicle.

I’ve found that if I instead export the frames as PNG then edit them in Ulead GIF Animator (still very useful) the result is much better and with a much smaller file size. But it’s kind of a much longer way to do things.

Is there any way to change the dithering options used or change in other ways the options used to export gifs? I assume these would be ffmpeg options but I have no clue about all the options there and what would apply to exporting from Shotcut.


did you try lowering resolution? size and resolution both hang together

also adding `sws_dither=ed`` under other might work

Yes, I usually lower the resolution to 720p or something and then reduce it more in other tools, since Shotcut doesn’t keep aspect ratio without manual calculation. I think the problem is that Shotcut uses error diffusion (ed) to export GIFs?

From the article:

Most of the other dithering methods you will find out there are error based. The principle is that a single color error (the difference between the color picked in the palette and the expected one) will spread all over the image, causing a “swarming effect” between frames, even in areas were the source was completely identical between frames. While this often provides a much better quality, it completely kills the compression of GIF:

It also makes it really hard to apply further compression.

I tried “sws_dither=bayer” in the “other” field as documented here:
But it appears to not change anything in Shotcut.

Are the quotes needed or am I doing something wrong?

quotes are not needed, also 720p is way to high, try something like 480p-ish

here is some of those i made using 480p

Thanks - I still can’t make the option actually change the dithering used though.

Not that it’s a big deal, the dithering looks good, it just makes for larger images and they are harder to compress further because of the little “dots” if that makes sense? I usually reduce the image further in other tools.

I am sure there was a change how Shocut exported gifs a while back though.

Nice gifs by the way :slight_smile:

Any idea how to export to GIF on GNU/Linux OS? I’ve got no “gif” option there :confused: Thanks

GIF is no longer available due to compatibility breakage between MLT and FFmpeg. Send a patch for MLT if you really want it that bad.

@crysman @Pathduck GIF export is now back with version 18.05.08

Thanks for the update - I will try and see how it goes :slight_smile:

1 Like