wma 2 mp3 decoding

Heres how to convert these files easily.


1. create a text file called wmamp3 in your ~/

2. Open the file in your favorite editor and enter the following


current_directory=$( pwd )

#remove spaces
for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done

#remove uppercase
for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done

#Rip with Mplayer / encode with LAME
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i && lame -m s audiodump.wav -o $i; done

#convert file names
for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done

rm audiodump.wav

3. Save the file

4. In a console, give the command

chmod +x ~/wmamp3

5. as root, copy the file to your exec path (/usr/bin or /bin)

6. Now you can change to the directory containing your WMA files and give the command


It usually takes approx 30 seconds to convert a 4 min long file.

Excerpt from: http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Convert_WMA_to_MP3

powered by performancing firefox

Leave a Reply

Your email address will not be published. Required fields are marked *