Review your favorite Linux distribution.
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 01-30-2013, 02:59 AM   #1
Registered: Feb 2007
Distribution: Debian
Posts: 99

Rep: Reputation: 16
Question ffmpeg-libvorbis vs. oggenc: which one to use?

Hi people

I intend to convert all of my mp3 collection to ogg vorbis, but I don't know which is the best method.

I've recently done a bit of testing:

1. MP3 --> FLAC (via ffmpeg) --> OGG (via oggenc).

ffmpeg original.mp3 -acodec flac test.flac
oggenc -q 6 test.flac -o test-oggenc.ogg

2. MP3 --> OGG (via ffmpeg)
ffmpeg test.mp3 -acodec libvorbis -aq 6 test-ffmpeg.ogg

Results in size:

 3.8M  original.mp3
 3.8M  test-ffmpeg.ogg
  15M  test.flac
 3.5M  test-oggenc.ogg
Just for testing a bit more, I tried another thing:

3. MP3 --> FLAC (via ffmpeg) --> OGG (via ffmpeg).

ffmpeg original.mp3 -acodec flac test.flac
ffmpeg test.flac -acodec libvorbis -aq 6 test-ffmpeg2.ogg

And the output file was 3.8 M also, apart from that I got a lot of messages saying

Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0
Multiple frames in a packet from stream 0

and at the end

flac @ 0x84b9ce0]FRAME HEADER not here

So as you can see the one that apparently works better is method 1., but I would like to know about other people's experiences regarding conversion to ogg from mp3, ffmpeg and ogg vorbis, using oggenc, etc.

Also, will mp3 tags be preserved if I use method 1? How would you improve this?

Any other suggestions will be welcome.
Old 01-31-2013, 01:36 PM   #2
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
Your problem is going to be listenability. Both mp3 and ogg are lossy compressions, while flac is lossless. Since you're starting with mp3s, going to flac won't get you better audio quality, and going to ogg (however you get there) from mp3 will decrease your audio quality.

Basically, you're losing audio data every time you do lossy compression. It might be minimal just once, but chances are that it will be noticeable, especially if you're using lower bitrates/qualities. Best thing to do, if possible, is re-rip the CD as ogg instead of mp3.
Old 01-31-2013, 03:49 PM   #3
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,846

Rep: Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008
headrift is right. Always go back to the original if you have it.

But if you have no choice and must convert, remember that others have already blazed the trail for you. A quick debian repository search came up with at least two options, oggconvert and dir2ogg, and I'm sure google will turn up many more.


ffmpeg, mp3, oggenc, vorbis

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
RipperX - oggenc flebber Linux - Software 3 11-27-2011 04:00 PM
ffmpeg: vorbis vs. libvorbis David the H. Linux - Software 10 02-17-2010 05:25 AM
oggenc GUI rickenbacherus Linux - Software 3 01-13-2005 03:12 PM
oggenc GUI eliasblanco Linux - Software 0 10-21-2004 12:41 PM
How to upgrade oggenc/libvorbis? colelinux Linux - Newbie 0 03-15-2004 07:38 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 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