32

enter image description here

This is the example i am talking about, how can you do this?

pjs
  • 18,696
  • 4
  • 27
  • 56
fenec
  • 5,637
  • 10
  • 56
  • 82
  • 1
    Try this open source GifCapture, which is written in Swift https://github.com/onmyway133/GifCapture – onmyway133 Mar 05 '17 at 22:43
  • See also https://apple.stackexchange.com/questions/46036/is-there-a-mac-screen-capture-tool-that-will-export-to-animated-gif/404520#404520 – tripleee Nov 10 '21 at 08:36

2 Answers2

65

It depends on your platform, and there are a bunch of ways to do it.

On Mac OSX, there is a built-in QuickTime screen recorder.

  1. Launch QuickTime Player
  2. File menu -> New Screen Recording
  3. Use the tool of your choice (such as ffmpeg) to convert the recording to a gif.

Here's an example of how to convert a recording .mov file to a gif:

ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

See this link for more info and step by step: https://gist.github.com/dergachev/4627207

If you're on other platforms, or prefer to use a specific tool other than the built-in QuickTime, here are a few to consider:

tuomassalo
  • 8,717
  • 6
  • 48
  • 50
joelparkerhenderson
  • 34,808
  • 19
  • 98
  • 119
  • and you can turn it into a lightweight gif? – fenec Feb 05 '15 at 21:25
  • 4
    I hit this exact same thing. I ended up using Automator (macOS) + ffmpeg so anytime I save a movie to a specific folder, it automatically gets turned into a gif. I wrote it up here: https://www.ehfeng.com/gif-screen-recordings-on-macos/ – ehfeng May 29 '19 at 01:43
57

I usually, on Mac, do this task with https://www.cockos.com/licecap/ (source: https://github.com/justinfrankel/licecap). It also runs on Windows.

LICEcap can capture an area of your desktop and save it directly to .GIF (for viewing in web browsers, etc).

GUI is simple but effective, and it's really easy to select just the area you want to capture.

Demo

Output

markets
  • 6,709
  • 1
  • 38
  • 48