Skip to main content
100%

Screen Recording to GIF

✓ Published0🌍 Public
11wheel
Last edited Apr 16, 2018
Created on Sep 4, 2015

This example demonstrates a command-line workflow for converting a QuickTime screen recording into an optimized GIF. It first uses ffmpeg to extract frames at 24 fps, then ImageMagick’s `convert` to build a palette from the first frame, remap all frames with `-remap` for color reduction, and finally gifsicle with `--optimize=3` to compress the output. A resize option via gifsicle shows how to scale the final image, while the code notes alternative tools like LICEcap and the trade-offs of uploading MOV files to Twitter.

AI-generated description
  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

Similar vizzes