Skip to content

Instantly share code, notes, and snippets.

@jish
Created April 5, 2013 01:48
Show Gist options
  • Save jish/5315989 to your computer and use it in GitHub Desktop.
Save jish/5315989 to your computer and use it in GitHub Desktop.
gifify
#!/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