Skip to content

Instantly share code, notes, and snippets.

@jmacias
Forked from anmonteiro/mov2gif.sh
Created June 16, 2017 19:29
Show Gist options
  • Save jmacias/e4e554826710d833723bdab96a4d73fe to your computer and use it in GitHub Desktop.
Save jmacias/e4e554826710d833723bdab96a4d73fe to your computer and use it in GitHub Desktop.
mov2gif(){
ffmpeg -i "$1" -vf scale=800:-1 -pix_fmt rgb24 -r 10 -f image2pipe -vcodec ppm - |\
convert -delay 10 -layers Optimize -loop 0 - "$2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment