Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-26-2005, 12:30 AM   #1
caleb star
Registered: Nov 2003
Location: Blank.Inc
Distribution: Blank Linux
Posts: 107

Rep: Reputation: 15
convert ogg to mp3

What program can I use to convert ogg files to mp3, and where can I find it?

Old 03-26-2005, 12:45 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
Try the 'sox' program. It may be on your installation disk.
Using it is easy. sox <filename.ogg> <filename.mp3>

Look at the info page because there are many options.
Old 03-26-2005, 03:26 AM   #3
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
There is a program called ogg2mp3.
Old 03-27-2005, 12:27 AM   #4
LQ Newbie
Registered: Sep 2003
Posts: 10

Rep: Reputation: 0
I use a script that I wrote called oggbatch. It goes something like this


oggdec *ogg
lame --preset 192 -ms -h *wav
rm -f *ogg
rm -f *wav
Hope this is helpful.
Old 03-27-2005, 04:56 PM   #5
Registered: Nov 2003
Location: Montréal (Can)
Distribution: FC4
Posts: 110

Rep: Reputation: 15
Is this a good idea? You're going to lose quality:
- You compress to mp3 and discard info in the process.
- By converting the mp3 to wav you don't lose anything.
- By converting the wav to ogg you lose some more.

I'm using ogg but I haven't tried to convert my mp3 library to that format. I only rip new cds into ogg.
Old 03-27-2005, 05:01 PM   #6
Registered: Jan 2004
Location: Canal Fulton OH.
Distribution: Ubuntu 15.04, Gentoo
Posts: 68

Rep: Reputation: 15
Everyone's always talking about xmms....try it, theres an option to change the input plug to LAME. You should be able to convert any audio file to mp3 within xmms. Thats what I do....but there are other open source techniques....
Old 03-27-2005, 08:13 PM   #7
Senior Member
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
I would suggest the ogg2mp3 program that reddazz suggested because it keeps the id3 tags.
Old 01-04-2007, 07:38 AM   #8
LQ Newbie
Registered: Feb 2005
Location: Lanham, MD
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
You may want to check out a program for your distro called soundconverter. There is another called soundconvert that is different. I've found it very useful in this sort of situation. Note though that converting lossy formats to lossy formats degrades the quality. If you could pull from the original media or some such lossless format instead you'd be in better shape.
Old 01-04-2007, 07:40 AM   #9
Registered: Jan 2005
Distribution: Mandriva 2009 Powerpack x64
Posts: 80

Rep: Reputation: 15
K3B will also convert files well & quickly.
Old 01-04-2007, 07:59 AM   #10
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Generally it's stupid to convert a compressed format to another. Consider this: if you have the originals, as you should have if they're not illegal (and I'm not sure if web-bought mp3s or other formats can legally be re-coded), and then you should use those originals or if they're wavs, then encode them. If you don't have the originals, consider if the files are legal, and anyway recoding them means recompressing which means losing quality as said already. The quality on most mp3 and ogg files is already compressed so low that it's just enough for a person who likes music, and recoding it over and over again makes it sound dull. I suggest you take the original discs where the sound is uncompressed, and recode from them.

K3B will also convert files well & quickly.
but only with a plugin; not all distributions ship with that plugin.
Old 01-04-2007, 08:28 AM   #11
LQ Newbie
Registered: Feb 2005
Location: Lanham, MD
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
b0uncer, consider my situation where this process helpful and not illegal.

I have a collection of CDs ripped to ogg in another location. It took me many hours to convert them to ogg. This Christmas I received an MP3 player that doesn't support ogg so I'd like to have them in MP3 format. The CD media, because they take up space and are used infrequently are stored away in an inconvenient place. I can't access them at will. Until I can get them, it is helpful to simply convert what I need.

Next time I'm going to convert them to FLAC, a lossless format to remove this sort of hassle. (I hope).


convert, encode, lossless, mp3, ogg, soundconverter

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Mp3 To Ogg TigerLinux Linux - General 11 02-12-2008 03:32 AM
Convert ogg to mp3 w/ ID Tag??? VorlonInfoTech Linux - Software 4 01-04-2007 02:22 PM
Program to Convert ogg to mp3 degraffenried13 Linux - General 3 06-27-2005 07:15 PM
can't convert mp3 to ogg Imek Linux - Software 3 07-13-2004 10:10 PM
Convert ogg to mp3 files? m0rl0ck Linux - Software 5 12-11-2003 01:04 AM

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration