Last active
January 2, 2023 09:21
-
-
Save ianhomer/737f88dd73b77628d8159d4344cd6fa8 to your computer and use it in GitHub Desktop.
Covert video to animated GIF with 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
export MOVIE=my | |
ffmpeg -i $MOVIE.mov -filter_complex "[0:v] palettegen=max_colors=32" palette.png | |
ffmpeg -i $MOVIE.mov -i palette.png -filter_complex "scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse" -r 4 $MOVIE.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment