I am playing with libtheoradec now, but I cannot find an easy way to find out the playing time of the ogg theora file. There are several examples in the libtheoradec distribution, but not one of them shows how to get the length (i.e., Playback time in seconds or so) of a theory stream. Is this information inaccessible somewhere in the header or so? Should I really read all the pages and get the length from the pos granule of the last batch? Is this really the only way? Thanks for the help!
source
share