Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Convert WMA to WAV files for iTunes import' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Convert WMA to WAV files for iTunes import
Authored by: fozzi on Feb 29, '04 10:03:33PM
I pieced together a script that works beautifully for me at least on panther. You'll need mplayer and lame in your PATH.

#!/bin/bash
for i in *.wma do mplayer -ao pcm -aofile "${i%.wma}.wav" "$i" && lame --preset hifi "${i%.wma}.wav" "${i%.wma}.mp3"
rm "${i%.wma}.wav"
done
you can put the script in a directory in your PATH as well, but its easier IMO to just make an alias to it by typing
alias wmatomp3="/pathtoyourscript/probablyinyouruserdirectory" 
Note: You can change the options on lame to whatever you want, I just chose a middle of road bitrate preset.

[ Reply to This | # ]
Convert WMA to WAV files for iTunes import
Authored by: posterlu on Mar 08, '07 12:14:38AM
I had some issues with changed options to mplayer and lame. Here is an updated version: #!/bin/bash
for i in *.wma
do
mplayer -ao pcm:file="${i%.wma}.wav" "$i" && lame --preset standard "${i%.wma}.wav" "${i%.wma}.mp3"
rm "${i%.wma}.wav"
done
It still has one issue though, files with a comma are renamed wrong, ie. everything after the comma is missing. I have not troubleshooted this further yet.

[ Reply to This | # ]