Last active
September 2, 2022 16:41
-
-
Save shaunburch/7a991fc9e39a1f673e5ecf48405e01e7 to your computer and use it in GitHub Desktop.
Convert video to small GIFs for PRs (Uses ffmpeg)
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
#!/usr/bin/env bash | |
FILE=$1 | |
ffmpeg -i $FILE -vf fps=10,scale=600:-1 ${FILE%.*}.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment