Created
December 19, 2016 16:40
-
-
Save j3j5/4beb5a35c76e94e33384d5aaf8a2c4c3 to your computer and use it in GitHub Desktop.
Convert from video to GIF 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
# Replace the parameters on capital letters | |
ffmpeg -y -ss 30 -t 3 -i EXAMPLE.mp4 -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -ss START_TIME -t DURATION -i EXAMPLE.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