On 30 Aug 2005 09:10:21 -0000, Ravi Lakkundi
<ravilakkundi@rediffmail.com> wrote:> Hi,
>
> How does vorbis encoder decide upon the variable block/frame size length?
I've already asked you NOT to send HTML to this list. Please stop
doing it if you want any further assistance.
There are two things you could be asking here, I'll answer both:
The (reference - other encoders could do it differently) encoder makes
the decision on which two blocksizes to use in the stream based on the
sample rate and target bitrate in use. The decision is made before any
analysis of the data is done.
Alternatively, you could be asking about how the reference encoder
chooses whether to use long or short blocks at a particular point in
the encoding. The code for this is mostly in lib/envelope.c and
lib/block.c, so this is where you should start looking if you want to
know more about this.
Mike