Last active
August 1, 2019 00:44
-
-
Save rileyjshaw/78d829bf17a91e0d713dcd1c11313aae to your computer and use it in GitHub Desktop.
Convert a bunch of .movs into 128x128 .webps
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
for f in *.mov; do | |
ffmpeg -an -i ./"$f" -vcodec libwebp -vsync 0 -s 128x128 -sws_dither none -sws_flags neighbor -q:v 10 ./"${f%.mov}.webp"; | |
ffmpeg -an -i ./"$f" -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -s 512x512 -sws_dither none -sws_flags neighbor -crf 35 ./"${f%.mov}.mp4"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment