ogg.k.ogg.k at googlemail.com
2008-Nov-17 11:01 UTC
[ogg-dev] video chapters and subtitles in ogg containers
> You don't have to parse the whole file, just enough to find all the > chain boundaries. That can still take some time, of course.Don't you have to parse the whole file to find those ? Technically, if you find two packets with the same serialno, it is possible that they'd be *different* logical streams just happening to have the same serial, which would be OK if there was another stream in the middle with *another* serial. OK, maybe that's very unlikely, but still legal.
Ralph Giles
2008-Nov-17 18:33 UTC
[ogg-dev] video chapters and subtitles in ogg containers
On Mon, Nov 17, 2008 at 3:01 AM, ogg.k.ogg.k at googlemail.com <ogg.k.ogg.k at googlemail.com> wrote:> Technically, if you find two packets with the same serialno, > it is possible that they'd be *different* logical streams just > happening to have the same serial, which would be OK if > there was another stream in the middle with *another* serial. > OK, maybe that's very unlikely, but still legal.It's the other way around. The RFC says, "Each chained logical bitstream MUST have a unique serial number within the scope of the physical bitstream." So it's illegal, but likely to occur occasionally. So I guess it depends how hard you want to try. Bisection search should find anything but adjacent repeated segments. -r
ogg.k.ogg.k at googlemail.com
2008-Nov-18 09:32 UTC
[ogg-dev] video chapters and subtitles in ogg containers
> It's the other way around. The RFC says, > > "Each chained logical bitstream MUST have a unique serial > number within the scope of the physical bitstream."Oh. I hope I haven't made the wrong assumption in too much code :/ Thanks for the correction.