摘要 |
A method for encoding a video sequence of video frames. Each video frame includes a plurality of macro blocks. One video frame of the video sequence is encoded based on a first quantization parameter value for generating a first bit stream setup of encoded macro blocks (12). Transmission of a subset of the encoded macro blocks from the first bit stream is initiated (13). It is determined if the first bit stream exceeds a bit budget. If the first bit stream is determined to exceed the bit budget, a second quantization parameter value, which is larger than the first quantization parameter value, is generated. Otherwise, the second quantization parameter value, which is smaller than the first quantization parameter value, is generated. At least a part of the video frame is encoded based on the second quantization parameter value for generating a second bit stream of encoded macro blocks (15, 15a). The first bit stream and the second bit stream are then merged (17, 17a). An apparatus for performing the method is also disclosed.
|