Skip to content

Instantly share code, notes, and snippets.

@dphiffer
Created December 8, 2017 15:42
Show Gist options
  • Save dphiffer/4886d4631fc482923fd3a90be1144d52 to your computer and use it in GitHub Desktop.
Save dphiffer/4886d4631fc482923fd3a90be1144d52 to your computer and use it in GitHub Desktop.
Converting Quicktime screencapture MOVs into GIFs
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"
}
@dphiffer
Copy link
Author

dphiffer commented Dec 8, 2017

Like this: mov2gif screencap.mov (produces screencap.gif)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment