Last active
November 19, 2019 18:32
-
-
Save piraces/f1f3e50dc7e63772bbde64b91ee96a0e to your computer and use it in GitHub Desktop.
Simple script to convert a batch of videos to GIFs
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Please provide a video extension as argument" | |
fi | |
for f in *.$1; | |
do ffmpeg -i "$f" "${f%.*}_out.gif"; | |
rm "$f"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment