[Vorbis-dev] Maximum possible size of vorbis packet...
illiminable
ogg at illiminable.com
Tue Oct 19 07:37:13 PDT 2004
----- Original Message -----
From: "Sebastian Gesemann" <sgeseman at upb.de>
To: "illiminable" <ogg at illiminable.com>
Cc: <vorbis-dev at xiph.org>
Sent: Tuesday, October 19, 2004 10:05 PM
Subject: Re: [Vorbis-dev] Maximum possible size of vorbis packet...
> On Tue, 19 Oct 2004, illiminable wrote:
>
>> I'm looking to trim down the size of the buffers i'm using... and at
>> the moment, i've set each "media sample" (ie packet) to the size of
>> the maximum reasonably possible for any codec (ie video)... about
>> half a meg each... and there's quite a few of them... now i'd like
>> to set the buffer size based on the codec, as obviously the audio
>> codecs need much less space than the video ones.
>> So i'm looking to find out the largest possible size a vorbis packet
>> could
>
> Why do you need to know that ?
>
Because in directshow you need to allocated a fixed number of fixed size
buffers before you start streaming.
> The Ogg layer could make a "packet-stream" available for the decoders
> which loads new data from a new page on demand. (The packet does not have
> to be _completely_ in the memory at once).
>
In directshow it does... it needs to be passed in a MediaSample object.
Zen.
More information about the Vorbis-dev
mailing list