input.mp4
Selected file
FFmpeg command
ffmpeg -ss '00:00:00' -i 'input.mp4' -t '00:00:05' -vf 'fps=10,scale=480:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=256[p];[s1][p]paletteuse' -f gif 'output.gif'Video → GIF
Convert a short section of a video into an animated GIF with a selected frame rate and width.
-ssSet the starting position of the GIF.
-tSet the duration of the GIF.
-vfSet the frame rate and output width.
-f gifWrite the output as an animated GIF.