M4A/MPEG4 AAC to MP3

the LAME projectI had to convert some M4A files someone generated with iTunes to MP3s, which was pretty easy with faad and lame.

for m4a in *.m4a;do faad "$m4a"; wav=`echo "$m4a"|sed -e 's/.m4a/.wav/'`; mp3=`echo "$wav"|sed -e 's/.wav/.mp3/'`; lame -h -b 192 "$wav" "$mp3"; rm "$wav"; done

Fedora Core users: These packages can be found in the ATrpms repository.

On a side note: You can convert WMA files to MP3s using mplayer. There's a great script for it available on the web (mirrored here).

External Links: