Created
February 22, 2016 17:00
-
-
Save calvarez-ov/92cca63047252fc77cf5 to your computer and use it in GitHub Desktop.
Convert mp4 to animated gif
This file contains 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 -y -i input.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i input.mp4 -i palette.png -filter_complex "fps=10,scale=320:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment