[vorbis] Average Bitrate Calculation
msmith at labyrinth.net.au
Mon Oct 1 18:52:07 PDT 2001
At 09:32 AM 10/2/01 +1200, you wrote:
>Michael Smith wrote:
>> If you're just ignoring chained streams, then the length of
>> the logical stream is obviously equal to the length of the file.
>Thanks for your reply.
>So there is no data block size anywhere. In that case I will have to at
>least subtract the size of any comments since it could be considerable. Can
>you please help with determining the size of the comment header packet.
There is a data block size. In every page. Ogg is designed for streaming, so
it can't be a single value.
You can either add all these up, or just take the total size and subtract
the size of the header packets (which are given by
page->header_len + page->body_len, for each of the pages which contains
header packets (page->granulepos == 0)).
--- >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