Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active February 7, 2019 14:17
Show Gist options
  • Save keijiro/378690908012fe09938dd56a29e7b66f to your computer and use it in GitHub Desktop.
Save keijiro/378690908012fe09938dd56a29e7b66f to your computer and use it in GitHub Desktop.
How to create an animated GIF from a video file using ffmpeg.
ffmpeg -i input.mp4 -filter_complex "[0:v] fps=30,scale=500:-1,split [a][b];[a] palettegen=max_colors=64 [p];[b][p] paletteuse=dither=floyd_steinberg" out.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment