[vorbis-dev] timestamping / latency

Michael Smith
Sun, 11 Jan 2004 17:51:52 -0000

On Friday 09 January 2004 21:08, Olaf Matthes wrote:
> Hi there,
>
> for a streaming application developed for a project at the Society for
> Arts and Technology Montreal, Canada, we would need to know the exact
> delay of our ogg/vorbis streams.
>
> It seems there are several factors that make up the total delay I get.
> Is there a way to find out how large the delay introduced by the encoder
> and decoder is? Or in other words, how many unprocessed samples the
> enocder / decoder has stored internally?

This is pretty easy to do. Just hook up an encoder to a decoder, and measure
how many samples you've put in before you start getting samples out.

Note that for low-latency, the ogg layer is going to be causing you lots of
problems - vorbis itself doesn't have particularly high latency, but because
of the multiple vorbis packets per ogg page, the latency gets pretty high.

Mike