Skip to content

Instantly share code, notes, and snippets.

@brittbinler
Forked from dergachev/GIF-Screencast-OSX.md
Created May 31, 2017 22:10
Show Gist options
  • Select an option

  • Save brittbinler/ffb642509daf2c96fa0c9e8820da58e5 to your computer and use it in GitHub Desktop.

Select an option

Save brittbinler/ffb642509daf2c96fa0c9e8820da58e5 to your computer and use it in GitHub Desktop.
OS X Screencast to animated GIF

Screencapture GIF

The above gif was created as follows:

  • Open "Quicktime Player",
  • Go to File -> New Screen Recording
  • Selected screen portion by dragging a rectangle, recorded 13 second video.
  • Saved the video in full quality named in.mov (filesize: 19 megabytes)
  • Ran the following command that produced out.gif (filesize: 48 kilabytes)
    • ffmpeg -i in.mov -pix_fmt rgb24 -r 10 -f gif - | gifsicle -O3 -d3 > out.gif

Installing:

brew install ffmpeg imagemagick 
brew-cask install x-quartz #dependency for gifsicle, required for mountain-lion and above
open /usr/local/Cellar/xquartz/2.7.4/XQuartz.pkg # run the installer
brew install gifsicle

Resources:

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