Skip to content

Instantly share code, notes, and snippets.

@andyvanee
Created March 18, 2015 22:59
Show Gist options
  • Select an option

  • Save andyvanee/b74ba5fc2babe44aea73 to your computer and use it in GitHub Desktop.

Select an option

Save andyvanee/b74ba5fc2babe44aea73 to your computer and use it in GitHub Desktop.
Bash Gifify
# Usage: specify video and width
# gifify my-video.mp4 1200
function gifify {
img="$1"
width=${2-600}
ffmpeg -i "$img" -vf scale=$width:-1 -t 10 -r 10 "$img".gif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment