Created
March 31, 2012 17:49
-
-
Save romanlv/2267094 to your computer and use it in GitHub Desktop.
Convert m4a (and m4b) files in current folder 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
mkdir -p mp3s | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
for i in `find . -type f -iname "*.m4[ab]" -print`; do | |
echo $i | |
NAME=`echo $i | sed -e 's/\.\///' -e 's/\.m4b//g' ` | |
echo "doing '$NAME'" | |
faad --stdio $i | lame --preset standard - "mp3s/${NAME}.mp3" | |
done | |
IFS=$SAVEIFS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks