Skip to content

Instantly share code, notes, and snippets.

@addywaddy
Last active January 1, 2018 18:49
Show Gist options
  • Save addywaddy/1a4a9e76cae31ce9c5a502f25f30e113 to your computer and use it in GitHub Desktop.
Save addywaddy/1a4a9e76cae31ce9c5a502f25f30e113 to your computer and use it in GitHub Desktop.
Converting a screen recording generated using Quick Time to a GIF

Prerequisites

  1. Quick Time
  2. ffmpeg

Record the screen

  1. Open Quick Time
  2. File > New > Screen Recording
  3. Click the red button.
  4. Follow the instructions
  5. Save your recording

Convert to GIF

  1. Open terminal.
  2. Navigate to where you saved the .mov file
  3. Run the following command:
$ ffmpeg -i screencast.mov \
-s 600x400 -pix_fmt rgb24 -r 10 -f gif - \
| gifsicle --optimize=3 --delay=3 \
> screencast.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment