Last active
May 16, 2018 16:28
-
-
Save Eddy-Barraud/4d8da6226da82c9eab3f16d63c14ffe9 to your computer and use it in GitHub Desktop.
Convert every audio files inside the current directory to mp3
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/bash | |
find . -regex ".*\.\(opus\|ogg\|m4a\)" -print0 | | |
while IFS= read -r -d $'\0' filename; do | |
echo $filename | |
name="${filename%.*}" | |
< /dev/null ffmpeg -nostats -loglevel 0 -n -i "$filename" -b:a 0 -codec:a libmp3lame -vn "./$name.mp3" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment