Skip to content

Instantly share code, notes, and snippets.

@RodrigoEspinosa
Last active February 11, 2020 17:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save RodrigoEspinosa/68e61f5aff3846fc974e to your computer and use it in GitHub Desktop.
Save RodrigoEspinosa/68e61f5aff3846fc974e to your computer and use it in GitHub Desktop.
Alias for OS X Screencast to animated GIF
mov-to-gif() {
ffmpeg -i $1 -vf "scale=1024:-1:flags=lanczos" -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=0 --delay=7 #
}
@RodrigoEspinosa
Copy link
Author

This is basically an alias for this gist https://gist.github.com/dergachev/4627207 with a bit optimised gif output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment