Skip to content

Instantly share code, notes, and snippets.

View mypetyak's full-sized avatar

Christopher Bunn mypetyak

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

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