[Vorbis] help

Ian Malone ibmalone at gmail.com
Wed Oct 11 03:32:15 PDT 2006


On 11/10/06, Nagaraj.CG at flextronicssoftware.com
 <Nagaraj.CG at flextronicssoftware.com> wrote:
>
>
>  I am designing an Ogg Player,in which i don't want to play the Chained stream.
> How can i recognize the chained stream without parsing whole file?
> what i am thinking is ,once i get the first page Serial Number ,i will store it and i will
> seek  to the  end of file,there i will extract the last page serial number, if this is same
> as the one i stored previously,then the file is not chained else it is chained,is it correct
> or not???????? or else do you have any  easy method to recognize.
>

One question mark is enough.  Logical streams within the same physical
stream should have unique serial numbers but there is the question of
multiplexed streams to deal with.  A sounder strategy for deciding
whether or not the stream is chained is to collect all the serial numbers
from the beginning of stream and then find the last page and check
whether its serial matches one of those.  If it matches then (assuming
a legal stream), this is not a chained stream.

With work ongoing on skeleton and subtitling (AFAIK), it would be
sensible to assume muliplexed streams will become more common.
Why exactly don't you want to play chained streams?

-- 
imalone


More information about the Vorbis mailing list