Created
August 27, 2021 14:50
-
-
Save rossmcdonald/b2cf0c80b8e4f6444fa7c124ba76c3f1 to your computer and use it in GitHub Desktop.
Create gifs from the shell with ffmpeg and gifsicle
This file contains 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 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