Skip to content

Instantly share code, notes, and snippets.

@rossmcdonald
Created August 27, 2021 14:50
Show Gist options
  • Save rossmcdonald/b2cf0c80b8e4f6444fa7c124ba76c3f1 to your computer and use it in GitHub Desktop.
Save rossmcdonald/b2cf0c80b8e4f6444fa7c124ba76c3f1 to your computer and use it in GitHub Desktop.
Create gifs from the shell with ffmpeg and gifsicle
function convertgif() {
echo "Converting $@"
ffmpeg -i "$@" -pix_fmt rgb24 -r 15 -f gif - | gifsicle --optimize=0 -o "${@%????}.gif"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment