Created
March 5, 2018 14:36
-
-
Save mrunkel/e11fd55d5ca5bc595ab9bea6eaadd34c to your computer and use it in GitHub Desktop.
dewebm script
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
#!/bin/sh | |
shopt -s nullglob | |
for f in *.webm | |
do | |
file=$(basename "$f") | |
ext="${file##*.}" | |
name="${file%.*}" | |
echo "Converting $file to mpeg4" | |
ffmpeg -hide_banner -v error -i "$file" "${name}.mp4" && rm $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment