ffmpeg -i input.mp4 -vf "fps=15,palettegen" palette.png

Category: Media & Conversion

ffmpeg -i input.mp4 -vf "fps=15,palettegen" palette.png

Generate a palette for a high-quality GIF

First step of the two-command recipe for high-quality GIFs: writes a color palette image for the video. The later paletteuse step maps video frames onto this palette, avoiding the muddy default GIF conversion. Run the two commands back to back.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.