As many of you may have noticed, if a track fades out
the bitrate decreases downto min_bitrate (ie. 32kbits).
But, if that track has a few more frames with digital
silence (zero energy), the bitrate switches up to 
max_bitrate (ie. 224kbits). For a quick fix look at
quantice.c around line 662, there you see the following:

        /* VBR will look for a quantization which has better values
         * then those specified below.*/
        targ_noise[0]=0;          /* over */
        targ_noise[1]=0;          /* max_noise */
        targ_noise[2]=0;          /* over_noise */
        targ_noise[3]=-2;          /* tot_noise */

and change tot_noise to zero:

        targ_noise[3]=0;          /* tot_noise */

The problem with the original code is, that for digital
silence you can't achieve a total noise of -2db, and
you will stick at max_bitrate.

Robert

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to