Thursday, August 11, 2005

wma to mp3 Conversion
with Mplayer

OK, we've solved the problem of converting audio files to MP3 format using SoX, even in Fedora Core 4.

Unfortunately, even an MP3-enabled version of SoX doesn't convert files in WMA format to MP3.

However, MPlayer can do the conversion. You just have to know how.

Fortunately, a little bit of searching found this wma2mp3 script. It's a simple bash file. The instructions suggest that you save it as /usr/bin/wma2mp3, but actually it will work from anywhere in your path, so long as MPlayer is installed. I've got it in /home/local/bin/wma2mp3, where it is safe from OS updates. /usr/local/bin/wma2mp3 is also a good place for the file.

Finally, note that if your song filenames include spaces, you need to run this command with the file names in quotes, as it says in the notes:
wma2mp3 "*.mp3"

Now I need to figure out MPGA format, whatever that is.