Skip to content

Instantly share code, notes, and snippets.

@mybuddymichael
Forked from mbostock/.block
Last active August 29, 2015 14:15
Show Gist options
  • Save mybuddymichael/3a6857acd1642a9e10e2 to your computer and use it in GitHub Desktop.
Save mybuddymichael/3a6857acd1642a9e10e2 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. cd frames
  8. ffmpeg -i ../recording.mov -r 24 recording-%03d.png
  9. convert recording-001.png palette.gif
  10. convert -dither none -remap palette.gif recording-*.png recording-uncompressed.gif
  11. 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