Skip to content

Instantly share code, notes, and snippets.

@camsaul
Forked from dergachev/GIF-Screencast-OSX.md
Last active September 13, 2016 00:45
Show Gist options
  • Save camsaul/c7a5e8e76eb522209cd7 to your computer and use it in GitHub Desktop.
Save camsaul/c7a5e8e76eb522209cd7 to your computer and use it in GitHub Desktop.
Capture Video with Quicktime Player

File -> New Screen Recording

Convert to GIF

You may need to install ffmpeg/gifsicle via homebrew first.

ffmpeg -i in.mov -f gif - | gifsicle > out.gif

That's it!

Extra Options
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

Notes on the arguments:

  • -r 10 tells ffmpeg to reduce the frame rate from 25 fps to 10 (this will also speed the video up a bit)
  • -s 600x400 tells ffmpeg the max-width and max-height
  • --delay=3 tells gifsicle to delay 30ms between each gif
  • --optimize=3 requests that gifsicle use the slowest/most file-size optimization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment