Created
September 5, 2014 17:03
-
-
Save guyoun/5b679afde9365ee96932 to your computer and use it in GitHub Desktop.
Convert ogg to mp3
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/bash | |
for dname in *; | |
do | |
if [ -d "$dname" ]; | |
then | |
cd "$dname" | |
for name in *.ogg; | |
do | |
ffmpeg -i "$name" -ab 256k "${name/.ogg/.mp3}" | |
done | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment