Convert video to GIF using FFmpeg
Posted: | Updated: | Tags: ffmpeg tilffmpeg -y -i combined.mkv -vf fps=24,scale=1080:-1:flags=lanczos,palettegen palette.png
ffmpeg -i combined.mkv -i palette.png -filter_complex "fps=24,scale=1080:-1:flags=lanczos[x];[x][1:v]paletteuse" out.gif
- -y Overwrite output wihtout asking
- -i Specify input filename
- -vf Video filtergraph
- -filter_complex Creates a complex filtergraph with inputs and/or outputs
Explanation and other resources: