LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-03-2003, 01:01 PM   #1
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Convert ogg to mp3 files?


I have a lot of music encoded as .ogg files that I'd love to be able to play in the mp3 player in my gf's car. The player only recognizes .mp3 format. Whats the best way to convert ogg to mp3? A google search turns up alot of tools for converting mp3 to ogg but not the reverse.
 
Old 12-03-2003, 01:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
ogg123 -d raw -f - <myogg> | lame - <mymp3>

Code:
man lame
man ogg123
for details

Cheers,
Tink


P.S.: Only losers use the term l33t

 
Old 12-03-2003, 02:08 PM   #3
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Original Poster
Rep: Reputation: 31
Thanks Much appriciated. Jamming to the Jam while rolling down the road will make my day, if not hers

Quote:
P.S.: Only losers use the term l33t

So as long as Im using !133t Im safe from that label?

I think its supposed to be 1337 anyway

EDIT:
That didnt work. Just got output files with a bunch of static. Thanks for the pointer though. Now I know how to do ogg->wav->mp3.

Just had to add:

w00t! w00t! w00t!

Last edited by m0rl0ck; 12-03-2003 at 03:15 PM.
 
Old 12-03-2003, 03:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by m0rl0ck
Thanks :) Much appriciated. Jamming to the Jam while rolling down the road will make my day, if not hers :)
Pleasure mate ;)


Quote:
So as long as Im using !133t Im safe from that label?

I think its supposed to be 1337 anyway :)
Nuh, it's still script-kiddie gibberish ;)

Quote:
EDIT:
That didnt work. Just got output files with a bunch of static. Thanks for the pointer though. Now I know how to do ogg->wav->mp3.
I don't understand where the static comes from, though ...
did you tell lame to expect a raw-file, too, rather than
the default PCM?

Oh well :}

It worked in the end ;)


Cheers,
Tink
 
Old 12-05-2003, 05:49 AM   #5
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Original Poster
Rep: Reputation: 31
Quote:
Nuh, it's still script-kiddie gibberish

But fun as satire, yes?


Quote:
did you tell lame to expect a raw-file, too, rather than

Err, no. I just tried the command line you suggested and when that didnt work I read enough of the ogg123 man page to be able to do what I wanted and then wrote a perl script to do a batch conversion. I figure I saved a litle time since it takes less time to write two lines of perl than it does to read a man page
 
Old 12-11-2003, 01:04 AM   #6
linuxfool
LQ Newbie
 
Registered: Sep 2003
Location: Utah
Distribution: Knoppix 3.2 (Debian)
Posts: 3

Rep: Reputation: 0
ogg --> mp3 --> ogg

m0rl0ck,

An alternate to Tinkster's command pipe is to use

normalize-mp3 --ogg *.mp3 (converting your mp3s --> ogg)
normalize-ogg --mp3 *.ogg (converting your oggs --> mp3)

Mostly when I'm converting it's because I didn't like something in the original rip (usually the NON-normalized volume.)

During oggenc it also seems to compress better when the source was encoded on a lousy encoder (xing comes to mind. Fast as blazes, but innaccurate with lots of audio artifacts) or with poor settings or poor original quality.

Of course, re-encoding from the original WAV is best, but for a quick-and-dirty normalize-and-encode, I like these scripts.

More details (including bitrate and other fussiness) in these man pages:

man normalize-mp3
man normalize-ogg
man normalize

linuxfool
 
  


Reply


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 caleb star Linux - Software 10 01-04-2007 08:28 AM
Program to Convert ogg to mp3 degraffenried13 Linux - General 3 06-27-2005 07:15 PM
How do I convert .mp3 files to the .ogg format? ben_build#2.1.0 Linux - Software 9 12-21-2004 04:14 AM
can't convert mp3 to ogg Imek Linux - Software 3 07-13-2004 10:10 PM


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

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