摘要 |
In known video encoding rate control processing where both the bit rate control and the HRD buffer requirement are taken into account, drops or changes in video quality will occur. According to the invention, a two-pass rate control processing is performed in which, for adapting the input to the second pass encoding (17), the QPs are smoothed (12) within a sliding window of frames, whereby the QPs are adjusted (13) such that the resulting total number of allocated bits does not exceed a target number of available bits for the encoding of the pictures belonging to said current window, and based on these smoothed and adjusted quantisation parameter values, the quantisation parameter values are further adjusted (15, 16) so as to match the encoder or decoder buffer constraint for a current picture in the current window. |