[Vorbis-dev] Frames per packet?

Conrad Parker conrad at metadecks.org
Tue Sep 20 00:04:25 PDT 2005


On Mon, Sep 19, 2005 at 10:59:04PM -0700, Nathaniel Gray wrote:
> Hi,
> 
> Another newbie question.  I'm trying to figure out how to fit vorbis
> into the Apple AudioCodec API and it asks your codec to be able to
> answer questions about itself.  One I'm not sure about, does vorbis
> encode a fixed number of frames per packet for any given track?  I
> know it's VBR, but that doesn't necessarily imply variable # of frames
> per packet.

Hi,

the number isn't fixed, but it is limited to about 4 values within a
track (or within a chain to be precise).

Craig Duncan posted some source code for determining the number of
samples in a packet:
http://lists.xiph.org/pipermail/vorbis-dev/2005-April/018029.html

Conrad.


More information about the Vorbis-dev mailing list