[vorbis] Average Bitrate Calculation

Michael Smith msmith at labyrinth.net.au
Tue Oct 2 03:41:13 PDT 2001



At 11:27 AM 10/2/01 +0200, you wrote:
>> > 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)).
>>
>> Ah, thanks Michael, that's what I needed.  In fact an easier way
>> would be to simply read through the header packets until
>> granulepos>0 and subtract the offset.
>
>Just if there's only comments in the beginning of the file .. 
>Comments can be all over the place. Remember cat =)

We were discussing vorbis comments, which can only occur in the comment
header at the start of the stream. You can only get them elsewhere in 
the file if you have multiple logical streams, chained. In that case the
chaining boundaries are fairly straightforward to locate.

Michael

--- >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