Daily Archives: April 24, 2013

Converting .wma files to .mp3 files

bash
How to convert .wma files to .mp3 files.

Requires, mplayer and lame

for i in *.wma ; 
do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" && lame -m j -h --vbr-new -b 160 audiodump.wav -o "`basename "$i" .wma`.mp3"; 
done; 
rm -f audiodump.wav