Created
January 2, 2018 17:01
-
-
Save jbiason/bcd3fda96d83d471b15526a35e9895c3 to your computer and use it in GitHub Desktop.
FFmpeg to convert MP4s to GIFs (like nature wants it)
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
#!/bin/bash | |
ffmpeg -y -i $1 -vf fps=10,scale=320:-1:flags=lanczos,palettegen palette.png | |
ffmpeg -i $1 -i palette.png -filter_complex "fps=10,scale=-1:-1:flags=lanczos[x];[x][1:v]paletteuse" -- $1.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment