ffmpeg -i input.mp4 -vf fps=15,scale=480:-1 output.gif

Category: Media & Conversion

ffmpeg -i input.mp4 -vf fps=15,scale=480:-1 output.gif

Convert video to an animated GIF

Converts a video to an animated GIF at 15 fps and 480 pixels wide. GIF is palette-based with limited colors, so quality suffers on complex footage, and the palettegen/paletteuse pair produces much better results. scale=480:-1 keeps the aspect ratio.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.