Created
April 5, 2013 01:48
-
-
Save jish/5315989 to your computer and use it in GitHub Desktop.
gifify
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 sh | |
if [[ "$1" && "$2" ]]; then | |
tmp='tmp.gif' | |
ffmpeg -i $1 -pix_fmt rgb24 $tmp | |
convert -layers Optimize $tmp $2 | |
rm $tmp | |
else | |
echo "usage: gifify <input.mov> <output.gif>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment