Created
December 8, 2017 15:42
-
-
Save dphiffer/4886d4631fc482923fd3a90be1144d52 to your computer and use it in GitHub Desktop.
Converting Quicktime screencapture MOVs into GIFs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mov2gif() { | |
name=`basename -s .mov $1` | |
echo "$1 => $name.gif" | |
ffmpeg -i "$1" -vf scale=980:-1 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=2 --delay=6 > "$name.gif" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like this:
mov2gif screencap.mov
(producesscreencap.gif
)