Last active
May 6, 2021 18:25
-
-
Save Romain/9c5b4d33ef3113275af1ed8009fd3980 to your computer and use it in GitHub Desktop.
Shell to massively convert videos from MP4 to WebM using FFMPEG
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/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