Skip to content

Instantly share code, notes, and snippets.

@spirosrap
Last active November 29, 2020 04:12
Show Gist options
  • Save spirosrap/7f245600b188a97450dbf16586d096a9 to your computer and use it in GitHub Desktop.
Save spirosrap/7f245600b188a97450dbf16586d096a9 to your computer and use it in GitHub Desktop.
Create a screen recording on a mac with built in tools and convert to gif with ffmpeg

Convert recorded video from Mac (command+shift+5) to a gif with ffmpeg

ffmpeg -i test.mov -vf scale=800:-1 -pix_fmt rgb24 -r 25 -f gif - | gifsicle --optimize=3 --delay=3 > out2.gif

https://gist.github.com/dergachev/4627207

Parameters to keep in mind:

  • scale=800:-1 Keeps aspect ratio
  • -r 25 fps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment