[Matroska-users] mkvtoolnix 1.0 plan: About 64bit

Moritz Bunkus moritz at bunkus.org
Thu Aug 5 19:10:16 CEST 2004


Hi,

> I tested Ogg Vorbis -> MKA, to see if 64-bit will give me better 
> precision in duration.

After some more thought about this issue and talking to Alex Noe:

Each Vorbis packet has a 'window size'. The number of samples in a
Vorbis packet is calculated by ('window size 1 + window size 2) / 4'. So
you need two Vorbis packets in order to calculate the duration of the
first one. Without decoding there seems no way to get the _exact_ number
of samples for a Vorbis block. So the duration will always stay slightly
off for Vorbis.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds



More information about the Matroska-users mailing list