website stat

Convert wma to mp3/ogg

Did some friend of you send a wma file, whose encoding format is owned by Microsoft [in order to create value to its lock in strategy]? Let’s get rid of it. You just need to have MPlayer (which is a very common movie player in any *nix platform) and a mp3/ogg encoder. lame and oggenc will do fine.

Generate MP3:
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

Generate OGG:
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" && oggenc *.wav >/dev/null ; done; rm -f audiodump.wav

May the power of *nix be with you :-) Thanks to Donncha for sharing with us an easy way to convert to mp3.

Update: João Craveiro translated it to Portuguese. And so did Tiago Rodrigues. And it seems Tiago Cogumbreiro also managed to do it! Kudos to any who may have done it :P


4 Responses to “Convert wma to mp3/ogg”

  1. João Craveiro
    Published at December 31st, 2005 at 8:15 pm

    Já tinha traduzido isso para português há uns tempos… ;)

    Bom 2006.

  2. Tiago Rodrigues
    Published at January 1st, 2006 at 9:11 pm

    Por acaso também tinha feito o mesmo numa wiki depois de precisar disso e ter encontrado no google.

  3. Tiago Cogumbreiro
    Published at January 2nd, 2006 at 8:03 pm

    E eu já tinha feito isso há algum tempo ;)

    Já agora Tiago, para mim wikis são machos e não femas :P

  4. bill
    Published at April 11th, 2006 at 6:23 am

    Advanced Encode Decode Tools - A striking all-in-one audio converter for home and office use with only Hi-Fi sound compression algorithms.

    http://www.yaodownload.com/audio-mp3/players/advanced-encode-decode-tools/