Displaying 3 results from an estimated 3 matches for "granulpos".
Did you mean:
granulepos
2008 Mar 18
2
Determining the duration of an ogg vorbis file
Hi all,
I've got a question on regarding how to find out the duration of an ogg vorbis file. Sorry if it should already be mentioned somewhere in the docs, but I couldn't find out how to do it the best way.
So, I can read the [bitrate_nominal] field from the identification header (if it is set), find out the size of the audio data (by subtracting the size of the three headers from the
2008 Mar 21
0
AW: Determining the duration of an ogg vorbis file
...rg>
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
t...
2004 Feb 16
1
Ogg mux design
...and video are thought of as 'continuous' and use
the current spec of setting the page granulepos to correspond to the
timestamp of the last data element decodable in that page. Other, sparse
data like captions are thought of as 'discontinous' and use a different
convention: the granulpos corresponds to the timestamp of the *first*
data element decodable in that page. These rules arrange the stream so
that the discontinous pages "fall out" of the stream in time to be
useful without necessiting excessive buffering of higher-bitrate data
as would be the case if they were...