[Vorbis-dev] Maximum possible size of vorbis packet...

illiminable ogg at illiminable.com
Tue Oct 19 06:33:11 PDT 2004


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 
be... so basically the highest sample rate, highest quality, most channels 
that is likely to occur. At some point i'll figure out a better rough 
calculation based on those 3 factors, but for now even the highest possible 
will be better than what i'm currently doing.

If anyone does know a rough calculation based on those three it'd be 
appreciated.

Zen. 




More information about the Vorbis-dev mailing list