[Vorbis-dev] How to get the actual bitrate?

Silvia Pfeiffer silvia at silvia-pfeiffer.de
Tue Jan 26 15:25:50 PST 2010


Where a file does not start at 0, you get the starting value out of
the skeleton, which you will have decoded already.

And .. yes, you need to look at the last page of every stream to get
the actual duration.

Cheers,
Silvia.

On Wed, Jan 27, 2010 at 9:34 AM, Geoff Shang <geoff at quitelikely.com> wrote:
> On Tue, 26 Jan 2010, Silvia Pfeiffer wrote:
>
>> You can seek to the last page, decode the granulepos and calculate the
>> duration from that.
>
> Is it not true that some files may not start at 0, in which case you'd
> need to get the starting value as well?
>
> Geoff.
>
> _______________________________________________
> Vorbis-dev mailing list
> Vorbis-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/vorbis-dev
>


More information about the Vorbis-dev mailing list