Convert wma to mp3

March 25th, 2008

iPod ShuffleThis is a little script I use to convert wma to mp3 in Linux. Thought I would share it with the world.

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

Entry Filed under: Linux

4 Comments Add your own

  • 1. Donncha O Caoimh  |  March 25th, 2008 at 13:48
    Mozilla Firefox Mozilla Firefox 2.0.0.9 on Linux Linux

    I knew that bit of code looked familiar! Thankfully I haven’t had to convert any wma files in a long time. It’s funny how you forget all these little things when you’re not dealing with Windows users any more. :)

  • 2. thesraid  |  March 25th, 2008 at 14:43
    Mozilla Firefox Mozilla Firefox 2.0.0.12 on Ubuntu Linux Ubuntu Linux

    lol. I couldn’t remember where I found it. I hope I haven’t infringed on any copyrights?

  • 3. Donncha O Caoimh  |  March 25th, 2008 at 15:23
    Mozilla Firefox Mozilla Firefox 2.0.0.9 on Linux Linux

    Hardly! Glad it came in useful!

  • 4. Ann  |  March 26th, 2008 at 15:00
    Mozilla Firefox Mozilla Firefox 2.0.0.12 on Windows Windows Vista

    Thnx it`s very useful. Cause my brother use Linux and he has a problem with it :) I use Vista so use MelodyCan converter (http://www.melodycan.com)

Leave a Comment

All comments are moderated and will not appear automatically

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Random Image

View Gallery

Categories

Most Recent Posts

Calendar

March 2008
M T W T F S S
« Feb   Apr »
 12
3456789
10111213141516
17181920212223
24252627282930
31