Convert WMA to WAV files for iTunes import

Feb 12, '03 09:45:40AM

Contributed by: Anonymous

I found a way to convert WMA files to WAV files, which can be imported directly into iTunes. The first step is to get mplayer, a unix media player that can play WMA files. This will install mplayer in /usr/local/bin.

This program has the ability to dump to a WAV file with the command mplayer foo.wma -ao pcm. This will put a file called audiodump.wav in the current directory. Of course, this won't work with multiple inputs, so I whipped up a quick shell script which renames audiodump.wav to foo.wma.wav, then moves the original file to the trash, and then processes the next argument:

#!/bin/tcsh

while($#argv != 0)
mplayer "$argv[1]" -ao pcm
mv audiodump.wav "${argv[1]}.wav"
mv "${argv[1]}" ~/.Trash/
shift
end
[Editor's note: I haven't tried this myself...]

Comments (22)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030212064540479