Shashank Khanvilkar
2005-Jul-29 13:07 UTC
[Vorbis-dev] Reg. page_sequence_number in the ogg header.
Hi, I was looking at some of the vorbis-ogg music files using hexedit. I am a bit confused about this filed "page_sequence_number" that appears in the header for ogg. From RFC3533 the definition of this field is: "page_sequence_number: a 4 Byte field containing the sequence number of the page so the decoder can identify page loss. This sequence number is increasing on each logical bitstream separately. " From the above I gather that every new page will have a page number that increases sequentially for example, 1, 2, 3, 4 .. etc. However when i peek into the actual ogg files containing vorbis encoded data, i see the sequence numbers to increase as 0, 4, 8, 9, 15, 18 etc.. and not sequentially.,,. Is there any particular reasone for this? Shashank
Graham Mitchell
2005-Jul-29 13:58 UTC
[Vorbis-dev] Reg. page_sequence_number in the ogg header.
> However when i peek into the actual ogg files containing vorbis encoded > data, i see the sequence numbers to increase as > 0, 4, 8, 9, 15, 18 etc.. and not sequentially.,,. > Is there any particular reasone for this?Is it because not every page is the same size? How are you getting these sequence numbers? -- Graham Mitchell - computer science teacher, Leander High School A girl and a boy bump into each other -- surely an accident. A girl and a boy bump and her handkerchief drops -- surely another accident. But when a girl gives a boy a dead squid -- *that had to mean something* -- S. Morganstern, "The Silent Gondoliers"
Ralph Giles
2005-Jul-29 14:42 UTC
[Vorbis-dev] Reg. page_sequence_number in the ogg header.
On Fri, Jul 29, 2005 at 03:09:43PM -0500, Shashank Khanvilkar wrote:> I was looking at some of the vorbis-ogg music files using hexedit. > [...] > However when i peek into the actual ogg files containing vorbis encoded > data, i see the sequence numbers to increase as > 0, 4, 8, 9, 15, 18 etc.. and not sequentially.,,.Are you sure you're seeing all the page boundaries? A text search for "OggS" in the hexedit output will miss any that happen to span a 16-byte break. -r
Michael Smith
2005-Jul-30 13:17 UTC
[Vorbis-dev] Reg. page_sequence_number in the ogg header.
On 7/29/05, Shashank Khanvilkar <shashank@mia.ece.uic.edu> wrote:> However when i peek into the actual ogg files containing vorbis encoded > data, i see the sequence numbers to increase as > 0, 4, 8, 9, 15, 18 etc.. and not sequentially.,,. > Is there any particular reasone for this? > ShashankYou either made a mistake, and missed many of the pages, or this file was created with an extremely buggy encoder. The page numbers will definately be sequential in a valid ogg vorbis file. Mike