Skip to content

Instantly share code, notes, and snippets.

@kimar
Last active February 24, 2016 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimar/2e6d1993df3fae299c88 to your computer and use it in GitHub Desktop.
Save kimar/2e6d1993df3fae299c88 to your computer and use it in GitHub Desktop.
Use ffmpeg and giscicle to convert video to gif, add this to your .bashrc (or equivalent) and be happy
movToGif() {
TARGET="${2:-$1.gif}"
ffmpeg -i $1 -r 10 -f gif - | gifsicle --optimize=3 --delay=6 > $TARGET
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment