How can I determine the length, in seconds, of a Vorbis stream?

296 views Asked by At

How can I determine the length, in seconds, of the Ogg Vorbis stream with libvorbis and/or libvorbisfile?

As far as I can tell, there's nothing in the vorbis_info structure that tells me the length of the stream.

1

There are 1 answers

0
Ami Tavory On BEST ANSWER

Using the lower level API, you can do this with ov_time_total.