How to convert video to GIF on Mac


This post goes over how to convert video to GIF on macOS:

ffmpeg

Install ffmpeg with Homebrew:

brew install ffmpeg

Convert input.mov to output.gif:

ffmpeg -i input.mov output.gif

imagemagick

Install imagemagick with Homebrew:

brew install imagemagick

Convert input.mov to output.gif:

magick input.mov output.gif

-loop

Control looping with -loop:

Value Effect
-1 No loop
0 Infinite loop
1 Loop twice

To loop 3 times:

ffmpeg -i input.mov -loop 2 output.gif
magick -loop 2 input.mov output.gif


Please support this site and join our Discord!