Last active
February 7, 2019 14:17
-
-
Save keijiro/378690908012fe09938dd56a29e7b66f to your computer and use it in GitHub Desktop.
How to create an animated GIF from a video file using ffmpeg.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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