Mathias Kunter
2008-Mar-21 01:52 UTC
AW: [Vorbis-dev] Determining the duration of an ogg vorbis file
Thank you very much for your help, it worked that way. Mathias ----- Urspr?ngliche Mail ---- Von: "xiphmont@xiph.org" <xiphmont@xiph.org> An: Conrad Parker <conrad@metadecks.org> CC: Mathias Kunter <mathiaskunter@yahoo.de>; vorbis-dev@xiph.org Gesendet: Donnerstag, den 20. M?rz 2008, 12:49:16 Uhr Betreff: Re: [Vorbis-dev] Determining the duration of an ogg vorbis file On Thu, Mar 20, 2008 at 4:34 AM, Conrad Parker <conrad@metadecks.org> wrote:> The granulpos field of the last page in the vorbis stream should tell > you the duration in samples, divide it by the samplerate to get the > duration in seconds....that tells you the end time. In the event that the beginning time is at a positive offset (like in a typical live stream) you also need to subtract the starting time (granpos on the first audio page) Monty Lesen Sie Ihre E-Mails auf dem Handy. www.yahoo.de/go