Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Bunn mypetyak

View GitHub Profile
@mypetyak
mypetyak / OSX-Convert-MOV-GIF.md
Last active Mar 29, 2020 — forked from tskaggs/OSX-Convert-MOV-GIF.md
Creating GIFs from .MOV files in OSX using FFmpeg and ImageMagick
View OSX-Convert-MOV-GIF.md

Convert .mov to .gif

# produce frames
❯ ffmpeg -i ernie.mov -vf scale=200:-1 -r 5 output/ffout%3d.png

# compose the .gif
❯ convert -delay 8 -loop 0 output/ffout*.* output/animation.gif

# shrink the file
❯ mogrify -layers 'optimize' -fuzz 7% output/animation.gif