[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vorbis
Subject:    Re: [Vorbis] help
From:       "Michael Smith" <msmith () xiph ! org>
Date:       2006-10-11 10:36:24
Message-ID: 3c1737210610110336lcaa02ft7efe644cd932a9f9 () mail ! gmail ! com
[Download RAW message or body]

On 10/11/06, Nagaraj.CG@flextronicssoftware.com
<Nagaraj.CG@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.

Yes, that's a sufficient method to recognise chained streams.
Note, however, that you should read the first page of _each_
multiplexed stream at the start (i.e. read pages until you get a page
with the BOS flag not set), and then check that the last page in the
file is from one of those streams.

That will let you play the audio from an audio+video file (you'd
presumably just discard the video pages).

Mike
_______________________________________________
Vorbis mailing list
Vorbis@xiph.org
http://lists.xiph.org/mailman/listinfo/vorbis


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic