Last active
February 5, 2024 13:12
-
-
Save holgergp/facb980c78c5f787966acc772ac4cef8 to your computer and use it in GitHub Desktop.
This is my little script to convert (screengrabbed-) movs to gifs to paste them into docs. This is just a tiny wrapper around ffmpeg and gifsicle. Obviously ffmpeg and gifsicle need to installed. I use ffmpeg version 6.6.1 and gifsicle in version 1.94
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
#!/bin/sh | |
while getopts f: flag | |
do | |
case "${flag}" in | |
f) inputFilename=${OPTARG};; | |
esac | |
done | |
ffmpeg -i $inputFilename.mov -pix_fmt rgb8 -r 10 $inputFilename.gif && gifsicle -O3 $inputFilename.gif -o $inputFilename.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very nice!