Re-Encoding m4a to mp3 in Ubuntu
I just downloaded a bunch of older Moneen torrents and wanted to put them up on Radio Free Geekhut, unfortunately my crappy Windows Encoding box doesn’t support m4a playback. After a quick google search I found a link as to how to convert these puppies in Ubuntu / Debian since soundconverter wont do it for me.
Quick and dirty -
$ sudo apt-get install -f -y faad lame
Open a terminal and switch to your directory with the m4a files in it.
Run this :
for i in *.m4a
do
faad -o - “$i” | lame -h -b 192 - “${i%m4a}mp3″
done
Took me a couple minutes per song but was worth it being able to play Moneen on RFG.
You can also make a script in /usr/local/bin (or wherever) called “m4a2mp3″ or something like that.
Don’t forget to make it executable using $ chmod +x <file name>