
Mp3 Increase Volume Part 2

We talked in the previous chapter about the need to achieve an mp3 volume increaser, although the volume increaser is not limited to mp3s in Mp4Gain. You can actually achieve a volume increaser in all major audio and video formats.

To better understand, we were talking about and analyzing how the compression of an audio file works.
Quantification encoding. Quantization encoding uses a three-layer iterative loop model for bit allocation and quantization. These three layers include: frame loop, outer loop, and inner loop. The frame loop resets all iterative variables, calculates the maximum number of bits that can be provided to each data slice, and then calls the external iterative model; the outer iterative model first uses the inner iterative model, which quantizes the input vector by incrementing The size of the quantization step allows the quantized output to be encoded within a certain bit limit. Huffman coding has a limit on the maximum quantization value, so it is necessary to judge whether all quantization values exceed the limit. If it exceeds the limit, the inner iteration loop must increase the size of the quantization step and quantize again. Then determine the number of Huffman encoding bits such that the number of occupied bits is less than the maximum number of bits that can be provided by each encoding section computed by the frame cycle; otherwise, the size of the quantization step must be increased for requantization. When the quantization meets the requirements, store the final scale factor value, exit the outer loop, and compute the number of bits used to store each data section in the frame loop.



