| ▲ | dllu a day ago | |||||||
When converting video to gif, I always use palettegen, e.g.
See also: this blog post from 10 years ago [1][1] https://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | ||||||||
| ▲ | dceddia 20 hours ago | parent | next [-] | |||||||
In many cases today “gif” is a misnomer anyway and mp4 is a better choice. Not always, not everywhere supports actual video. But one case I see often: If you’re making a website with an animated gif that’s actually a .gif file, try it as an mp4 - smaller, smoother, proper colors, can still autoplay fine. | ||||||||
| ▲ | CrossVR a day ago | parent | prev | next [-] | |||||||
I've been thinking of integrating pngquant as an ffmpeg filter, it would make it possible to generate even better pallettes. That would get ffmpeg on par with gifski. | ||||||||
| ▲ | dspillett a day ago | parent | prev | next [-] | |||||||
Does ffmpeg's gif processing support palette-per-frame yet? Last time I compared them (years ago, maybe not long after that blog post), this was a key benefit of gifski allowing it to get better results for the same filesize in many cases (not all, particularly small images, as the total size of the palette information can be significant). | ||||||||
| ▲ | crazysim a day ago | parent | prev | next [-] | |||||||
Gifski (https://gif.ski/) might be a good alternative to look to that's gif-pallete aware. | ||||||||
| ▲ | foltik a day ago | parent | prev | next [-] | |||||||
It’s a shame this isn’t the default. | ||||||||
| ▲ | BoingBoomTschak 21 hours ago | parent | prev | next [-] | |||||||
I use `split[s0][s1];[s0]palettegen=max_colors=64[p];[s1][p]paletteuse=dither=bayer` personally, limiting the number of colors is a great way to transparently (to a certain point, try with different values) improve compression, as is bayer (ordered) dithering which is almost mandatory to not explode output filesizes. | ||||||||
| ▲ | xattt a day ago | parent | prev [-] | |||||||
Those command flags just roll off the tongue like two old friends catching up! /s | ||||||||
| ||||||||