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. Cheers, Ross. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
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)). 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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Michael Smith 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. Cheers, Ross. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.