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

313 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 best solutions below

0
On BEST ANSWER

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