Skip to content

Instantly share code, notes, and snippets.

@nebjak
Created January 23, 2013 14:49
Show Gist options
  • Save nebjak/4607229 to your computer and use it in GitHub Desktop.
Save nebjak/4607229 to your computer and use it in GitHub Desktop.
Convert a video to a gif
gif-ify() {
if [[ -n "$1" && -n "$2" ]]; then
ffmpeg -i $1 -pix_fmt rgb24 temp.gif
convert -layers Optimize temp.gif $2
rm temp.gif
else
echo "proper usage: gif-ify <input_movie.mov> <output_file.gif>. You DO need to include extensions."
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment