Skip to content

Instantly share code, notes, and snippets.

@jaggy
Created November 25, 2013 03:24
Show Gist options
  • Save jaggy/7635834 to your computer and use it in GitHub Desktop.
Save jaggy/7635834 to your computer and use it in GitHub Desktop.
GIF-ify a video
#/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