Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Romain/9c5b4d33ef3113275af1ed8009fd3980 to your computer and use it in GitHub Desktop.
Save Romain/9c5b4d33ef3113275af1ed8009fd3980 to your computer and use it in GitHub Desktop.
Shell to massively convert videos from MP4 to WebM using FFMPEG
#!/bin/sh
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${name}.webm"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment