[theora-dev] How to get the duration of a file or track?

Ken Larson forum at larsontechnologies.com
Thu Aug 23 04:13:17 PDT 2007


I'm starting with the theora player_example.c.  I want to be able to 
determine the duration of the audio/video ahead of time, to be able to 
display it somewhere.

I can't see anything obvious in ogg.h, theora.h, or vorbis.h for this.

Can anyone help me with the right place to look to do this?

Thanks,

Ken Larson
FMJ project, fmj.sourceforge.net



More information about the theora-dev mailing list