Skip to content

Instantly share code, notes, and snippets.

@brett-miller
Forked from mbostock/.block
Last active October 3, 2016 04:30
Show Gist options
  • Save brett-miller/fe0203f70e1d3041a5ff808c5bb52975 to your computer and use it in GitHub Desktop.
Save brett-miller/fe0203f70e1d3041a5ff808c5bb52975 to your computer and use it in GitHub Desktop.
Screen Recording to GIF
license: gpl-3.0
  1. If you haven’t already: brew install ffmpeg gifsicle imagemagick. 0b. If needed: 'brew upgrade ffmpeg gifsicle imagemagick'
  2. Open QuickTime Player.
  3. File > New Screen Recording.
  4. Record.
  5. Save as recording.mov.
  6. ffmpeg -i recording.mov -r 24 recording-%03d.png
  7. convert recording-001.png palette.gif Note: you may need to pick a different frame for better results!
  8. convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif
  9. gifsicle --optimize=3 --delay=4 < recording-uncompressed.gif > recording.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment