tags:

views:

13

answers:

0

Hi,

I'm currently playing around with libtheoradec but I cannot find an easy way of finding out the playing time of an ogg theora file. There are several examples in the libtheoradec distribution but none of them shows how to get the length (i.e. playing time in seconds or so) of a theora stream. Is this information not available somewhere in the header or so? Do I really have to read through all pages and obtain the length from the granule pos of the last packet? Is this really the only way? Thanks for help!