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?

link|improve this question

69% accept rate
5  
Keep in mind that by doing this conversion you're going to lose some sound quality. – Sasha Chedygov Jul 29 '09 at 23:19
1  
Yes, it's better to re-rip the CD directly to MP3s. – endolith Nov 16 '09 at 2:18
2  
@musicfreak which you wouldn't really hear. Seriously this madness needs to stop. Most, if not all, humans cann't distiguish between 320kbit quality and 128kbit quality. There have been recent studies which prove that for a fact. – Don Salva Nov 20 '09 at 9:13
@NoCanDo yeah yeah, sell your logic elsewhere. I like 320kbit 'cause the number's bigger. ;) – mrduclaw Dec 8 '09 at 18:01
feedback

6 Answers

up vote 8 down vote accepted

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 ;).

link|improve this answer
@jtimberman: Cant vouch for the quality of this app, but you certainly hit the nail on the head :) – Nippysaurus Jul 29 '09 at 23:28
I recall using it a couple years ago when I ran into a similar issue, though I think I compiled from source. – jtimberman Jul 29 '09 at 23:53
feedback

If you install the package ubuntu-restricted-extra then you can rip to MP3 instead of Ogg Vorbis. Ubuntu doesn't ship with the MP3 encoder by default because of the legal minefield about who owns it.

link|improve this answer
This is about the first package I install any time I do a clean install of Ubuntu. a must have! – codeLes Jul 30 '09 at 15:33
feedback

CDex. The best Windows-based ripping and conversion tool ever. Open source. It's been a while since I used it last, it's not intuitive but once you figure it out it's very powerful.

link|improve this answer
3  
"Ubuntu ripped.." - indicates he's using Ubuntu, not Windows. – jtimberman Jul 29 '09 at 23:33
1  
+1, even though it may not help the original question, it cannot hurt to have an answer for Windows available too. – jerryjvl Jul 30 '09 at 2:32
My bad. Maybe it makes sense to make this question "How do you convert .ogg to .mp3?" and then have multiple solutions or solutions for different platforms. – shufler Jul 30 '09 at 19:22
feedback

If you're looking for an easy to use application, try soundconverter for GNOME or soundkonverter for KDE (both available from the repositories). If you prefer CLI applications, you can't do much better than Perl Audio Converter. There's a Debian/Ubuntu package on the Downloads page there.

Of course, the best answer is to re-rip from the CD to avoid loss of quality. By converting from one lossy format to another, it's like making a photocopy of a photocopy. Quality suffers.

link|improve this answer
feedback

http://www.oggconvert.com

online tool to convert ogg files, no downloads

works better on smaller files because it's web based

link|improve this answer
feedback

GPodder will convert .OGG to .MP3 directly unless you tell it your device supports Ogg containers. Look in the repostitories, it's there.

You can learn WHY Ubuntu ripped your CD to Vorbis here.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.