RSS

How to Convert WMA to MP3

03 Dec

Linux Command Line Solution
You can also convert WMA to MP3 in the terminal, using the following commands. Make sure you’ve installed Lame and Mplayer before doing this.

Install them through Synaptic or as an alternative:

sudo apt-get install mplayer
sudo apt-get install lame

All wma’s should be in the Desktop folder.
Create a text file with Gedit, or another text file editor and name it “wmamp3 in ~/”
Copy and paste the following code:

#!/bin/bash
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

Then, again in the terminal, enter

chmod +x ~/wmamp3
sudo cp ~/wmamp3 /usr/bin

Finally, when you type “wmamp3″ the conversion will take place. The process takes a few seconds, and it discards the original WMA and leaves only the MP3. The best part about this method is that it will work on multiple files, and if you change some of the coding and added codecs, it will work with other file types, too.

Software
Soundconverter is a download that works quickly. Download it through the package manager or by command line

sudo apt-get install soundconverter

Choose the file, choose “mp3″ in preferences, and then click convert. Audacity changes many files easily, but not WMA. The Audacity website says that a beta version will do it, but it hasn’t been released yet.

Soundconverter interface after installed, klik Add Files

Select the file(s)

Converting process is running

source : http://www.ehow.com/about_6193178_linux-wma-mp3-conversion.html

Advertisement
 
Leave a comment

Posted by on 3 December 2011 in Bagi-bagi, Linux Mint

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.