MacOS Convert Video to GIF

derekcrosson

Derek Crosson

Posted on September 12, 2020

MacOS Convert Video to GIF

Yesterday I needed to convert a video screen recording I made to a GIF in order to upload to Github. I discovered that this can be done quickly and easily with a terminal tool called ffmpeg. Here's how you do it:

Install ffmpeg and gifsicle (if not installed)

brew install ffmpeg
brew install gifsicle

Convert the video to GIF

ffmpeg -i Screen\ Recording\ 2020-09-11\ at\ 19.36.10.mov -s 1440x900 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > screen-recording.gif

Replace Screen\ Recording\ 2020-09-11\ at\ 19.36.10.mov with the path to the video file and screen-recording.gif with the path to the GIF you want to create.

Hope this helps someone :)

💖 💪 🙅 🚩
derekcrosson
Derek Crosson

Posted on September 12, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

How to Use KitOps with MLflow
beginners How to Use KitOps with MLflow

November 29, 2024

PostgreSQL Full Text Search Rank by Position
postgressql PostgreSQL Full Text Search Rank by Position

November 30, 2024

The Ultimate Guide to AWS Lambda
aws The Ultimate Guide to AWS Lambda

November 30, 2024

Beginners guide to Kubernetes Statefulsets
kubernetes Beginners guide to Kubernetes Statefulsets

November 30, 2024

Code Chess game with React JS
coding Code Chess game with React JS

November 30, 2024