Skip to content

Instantly share code, notes, and snippets.

@davo
Forked from mbostock/.block
Last active August 29, 2015 14:14
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 davo/1ef3b06671f3b0f14b35 to your computer and use it in GitHub Desktop.
Save davo/1ef3b06671f3b0f14b35 to your computer and use it in GitHub Desktop.
  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.
  6. mkdir frames
  7. ffmpeg -i recording.mov -r 24 recording-%03d.png
  8. convert recording-001.png palette.gif
  9. convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif
  10. 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