8

when trying to convert some audio files to Ogg Vorbis using Sound Converter I get the following error:

Python (v2.7) requires to install plugins to play media files of the following type: Windows Media Audio 8 decoder

Any idea where to get this codec or how to install it?

I'm using Ubuntu 14.04 LTS

4
  • What converter are you using?
    – Xweque
    Aug 8, 2014 at 14:53
  • Sorry, that would have been helpful. It's called "Sound Converter".
    – tibsdoe
    Aug 9, 2014 at 1:13
  • Does anyone have any ideas?
    – tibsdoe
    Aug 16, 2014 at 22:05
  • I have the same problem trying to convert .wma to .mp3 your ...some audio files... are .wma?
    – blade19899
    Aug 18, 2014 at 13:40

1 Answer 1

9

Make sure to install both mplayer and lame. To do this open a terminal (Ctrl+Alt+T or Super+T) and paste (Ctrl+Shift+V) the following line and hit Enter to run:

sudo apt-get install mplayer lame

Enter your password when prompted, then navigate to the folder containing your WMAs and run the following command in the same terminal:

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

This will create 320 kbps MP3s in the same directory, keeping the original files.
These MP3s will not contain ID3 data (title, artist, album, etc). GMusicBrowser is excellent for modifying this information.


Thanks to Rory Alsop for the one-line script, which needed a slight update. Here he also shows a way to make a single command run the script.

2
  • 1
    You have just saved me $25. I confirm this thing works well on ubuntu 14.04. Additionally, It's fast! Feb 16, 2015 at 3:51
  • Great, thanks! When I have some time, I will write the same script but traversing a whole library, including sub- and sub-sub-folders.
    – Deleplace
    Aug 3, 2015 at 19:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .