Ubuntu – How to Convert .ogg to .mp3

conversionmp3oggrippingUbuntu

Ubuntu ripped a CD for me into audio files but they are all .ogg format which I can't play on my MP3 player.

How can I convert .ogg files to .mp3 files?

Best Answer

There's several ways you can do this. Probably the easiest is to use a tool called ogg2mp3. Details on the Ubuntu forums about how do install it:

$ sudo apt-get install mp32ogg lame
$ wget ftp://ftp.pbone.net/mirror/plf.zarb.org/plf/mandrake/10.1/noarch/ogg2mp3-0.3-3plf.noarch.rpm
$ sudo alien ogg2mp3-0.3-3plf.noarch.rpm
$ sudo dpkg -i ogg2mp3_0.3-4_all.deb

While this is an RPM for Mandrake, it should work fine after running it through alien and installing the .deb. And in the future, you can use lame to rip CDs in mp3 format as it's installed in the first step.

As is commonly pointed out, converting from one lossy format (ogg) to another (mp3) will degrade the quality of the music. But its better than not being able to play the music on your portable device at all ;).

Related Question