Last active
March 5, 2020 21:30
-
-
Save hyjk2000/5a5bf03d2887b4c43e5b40c957302250 to your computer and use it in GitHub Desktop.
Video to GIF with FFMPEG
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
#!/usr/bin/env bash | |
# Usage: v2gif video.mov video.gif | |
ffmpeg -i "$1" -vf "fps=5,scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 "$2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment