Convert m4a to mp3

August 22, 2010

I have some music files in m4a format. Unfortunately, none of my music players seem to be able to change the tags, so I can't give it a specific genre.

Here's a script that will take a directory full of .M4a files and convert them to mp3. It relies on having lame and faad installed. I already had lame, faad was as simple as apt-get install faad in Ubuntu.


for i in *.M4a; do 
  echo "Converting: ${i%.m4a}.mp3" 
  faad -o - "$i" | lame - "${i%.m4a}.mp3" 

Tags: mp3 m4a faad lame