Skip to content

Instantly share code, notes, and snippets.

@rileyjshaw
Last active August 1, 2019 00:44
Show Gist options
  • Save rileyjshaw/78d829bf17a91e0d713dcd1c11313aae to your computer and use it in GitHub Desktop.
Save rileyjshaw/78d829bf17a91e0d713dcd1c11313aae to your computer and use it in GitHub Desktop.
Convert a bunch of .movs into 128x128 .webps
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