Created
November 25, 2013 03:24
-
-
Save jaggy/7635834 to your computer and use it in GitHub Desktop.
GIF-ify a video
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 | |
FILE=$1 | |
if [ -d /tmp/gifify ] mkdir /tmp/gifify | |
ffmpeg -i $FILE -r 10 -f image2 /tmp/gifify/%03d.png | |
convert -delay 1x10 `seq -f /tmp/gifify/%03g.png 1 13` -coalesce -layers OptimizeTransparency animation.gif | |
rm /tmp/gifify/*.png | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment