[vorbis] Technical MP3->OGG transcoding question
TobiX
tobix at supereva.it
Wed Dec 4 18:14:53 PST 2002
Hi guys.
Let me put this first: I've read every past thread about mp3 -> ogg
transcoding and I agree to the fact that it is BAD--for several reasons
indeed.
This post is just a technical question, which I hope someone who knows
stuff better than I do will answer me.
Another disclaimer: although I'm a programmer, I've never worked with
anything audio-related, nor do I know anything technical about Mp3 and
Ogg Vorbis. So everything you will read from here on is PURE GUESSWORK.
Feel free to flame me, bash me, etc. as long as you correct me! ^__^
But let's skip to the main question:
<p>QUESTION:
---------
Let's assume one wants to transcode an Mp3 file to Ogg Vorbis, for his
own reasons, which I'm NOT going to discuss here.
CAN it be done in a better way than Poor Man's Transcoding?
(i.e.: mpg321 -w - file.mp3 |oggenc -o file.ogg - )
CAN it be done in a lossless way?
<p>As I said I don't know anything technical about Mp3 and Ogg Vorbis. I
suppose that both formats contain the outcome of a cosine transform
performed on the audio data, or something along those lines.
Better said, they must contain a particular _clipping_ of the cosine
transform, specifically computed in order to discard most information
while retaining some "hearing quality".
As such, the differences between mp3 and ogg vorbis can be of the
followin types--and ONLY of them:
- Fundamental differences in the "cosine transform" or such mathematical
transformation of data.
- Differences in the "clipping" (ie. "discarding") part of the encoding
process (which of course must be the hardest part of the whole encoding
process, because it involves psycho-acoustic and such stuff)
- Differences in the way the resulting encoded data is stored in the
file--that is, differences in the file format.
Am I totally wrong here? ?__?
I suppose the latter two aspects are very different between mp3 and ogg.
In particular the fundamental differences in the second issue are
exactly why Poor Man's Transcoding almost always produces ogg files
which are sensibly worse than the "original" mp3.
But is the first issue ANY different between Mp3 and Ogg Vorbis?
And are the two file formats THAT incompatible between each other?
That brings me to a better phrasing of the original question:
<p>QUESTION IN OTHER TERMS:
------------------------
Is it possible to pick up the "frames" stored in an Mp3 file, one by
one, and write them off as Ogg Vorbis frames?
<p>Please don't answer me: "No, because it's wrong/evil/<put your own ethic
adjective here> to do so!". That's not a proper answer to a technical
question! :-)
<p>TobiX
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list