Created
July 11, 2013 05:57
-
-
Save mmozuras/5972871 to your computer and use it in GitHub Desktop.
Bash function to convert a video to a gif
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
gifit() { | |
if [[ -n "$1" ]]; then | |
ffmpeg -i $1 -s 600x375 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=5 > $1.gif | |
else | |
echo "proper usage: gifit <input_movie.mov>" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment