Skip to content

Instantly share code, notes, and snippets.

@1wheel
Forked from mbostock/.block
Last active April 16, 2018 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1wheel/dd83625e43ddc30079c6 to your computer and use it in GitHub Desktop.
Save 1wheel/dd83625e43ddc30079c6 to your computer and use it in GitHub Desktop.
Screen Recording to GIF
  1. If you haven’t already: brew install ffmpeg gifsicle imagemagick.
  2. Open QuickTime Player.
  3. File > New Screen Recording.
  4. Record.
  5. Save as recording.mov.
    ffmpeg -i recording.mov -r 24 recording-%03d.png &&
    convert recording-001.png palette.gif && 
    convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif &&
    gifsicle --optimize=3 --delay=4 < recording-uncompressed.gif > recording.gif 
  1. To resize:

    gifsicle recording.gif --resize 375x375 > 375.gif

licecap is also nice, but you don't have control over the framerate. mov files can now be directly uploaded to twitter, but can get downsampled pretty aggressively. asdf

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