Forked from jonnymaceachern/batch-convert-mp4-webm.sh
Created
April 25, 2024 15:20
-
-
Save NickNaso/1a3ba39e1f8bc28f4927e79e9fa855f0 to your computer and use it in GitHub Desktop.
Batch convert mp4 to webm using ffmpeg
This file contains hidden or 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 i in *.mp4; | |
do name=`echo "$i" | cut -d'.' -f1` | |
echo "$name" | |
ffmpeg -i "$i" -acodec libvorbis -aq 5 -ac 2 -qmax 25 -threads 2 "${name}.webm" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment