Created
January 21, 2021 00:47
-
-
Save quat1024/98820a2db05de4244b4c04c9cd31768d to your computer and use it in GitHub Desktop.
convert gifs from Zachtronics games to mp4 files and squirrel them away in a subfolder (place this on your desktop)
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
mkdir -p zach/conv | |
mkdir -p zach/orig | |
for file in *.gif; do | |
echo "Converting $file" | |
ffmpeg -y -hide_banner -loglevel error -stats -i "$file" -crf 15 -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "./zach/conv/${file%.*}.mp4" | |
mv "$file" "./zach/orig/$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uhh copypaste the thing and change line 4 to
*.ogv
to convert spacechem ogv's to the much more supported mp4 format