[Vorbis] A faster ogginfo
john.edwards33 at ntlworld.com
Thu Mar 24 09:03:46 PST 2005
I believe this is what you're looking for:
declared in "vorbis/vorbisfile.h";
Returns the total time in seconds of the physical bitstream or a
specified logical bitstream.
double ov_time_total(OggVorbis_File *vf,int i);
vf A pointer to the OggVorbis_File structure--this is used for ALL
the externally visible libvorbisfile functions.
i Link to the desired logical bitstream. To retrieve the time total
for the entire physical bitstream, this parameter should be set to -1.
# OV_EINVAL means that the argument was invalid. In this case, the
requested bitstream did not exist or the bitstream is nonseekable.
# n total length in seconds of content if i=-1.
# n length in seconds of logical bitstream if i=1 to n.
Kyle Rose wrote:
>> Programs like gqmpeg shouldn't be using ogginfo if what they're trying
>> to do is extract tags. It's not meant to be used for that purpose.
> Is there a way to get the length (in seconds) from an ogg without
> reading the entire file?
> Vorbis mailing list
> Vorbis at xiph.org
More information about the Vorbis