[ogg-dev] Could any one suggest me in how to get the duration of an Ogg File

rajeev nair rajsrs_20 at yahoo.co.in
Thu Oct 6 00:00:44 PDT 2005


Hello guys,
 
Could I get an insight on this
 
can the OggVorbis cope with changing SampleRate mid stream ?

Regards
Raj

Conrad Parker <conrad at metadecks.org> wrote:
On Fri, Sep 30, 2005 at 10:41:02AM +0100, rajeev nair wrote:
> Could any one suggest me in how to get the duration of an OggVorbis File.I am
> really caught up in this, as it seems to be complicates as the OggVorbis is a
> variable bit rate.

First, seek to the end of the file and read the granulepos of the last
Ogg page. That tells you the index in samples of the end of it (the
last chain).

...

Conrad.

		
---------------------------------
 Yahoo! India Matrimony: Find your partner now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/ogg-dev/attachments/20051006/2ea349c4/attachment.html


More information about the ogg-dev mailing list