Patent ID: 8135063

Claim:
A method of rate control with bit allocation to each frame in a current frame set, comprising: allocating a target number of bits to the current frame set; analyzing a frame in the current frame set by encoding with an average quantization parameter QP avg of a previous frame set to obtain a rate model and a distortion model of the frame; determining a first quantization parameter of the frame based on the target number of bits, the rate model and the distortion model using Lagrange optimization algorithm; and encoding the frame with the first quantization parameter to generate output data; wherein the allocating step comprises allocating the target number of bits R GOP based on the following expression: R GOP = C · N GOP f + ɛ , where N GOP is a total number of all frames in the current frame set; C is a channel rate; f is a frame rate; and ε is a feedback term from the previous frame set.