A two-pass rate control algorithm for H.264/AVC high definition video coding

  • Authors:
  • Dongdong Zhang;King Ngi Ngan;Zhenzhong Chen

  • Affiliations:
  • Department of Computer Science, Tongji University, Shanghai, China and Department of Electronic Engineering, The Chinese University of Hong Kong, China;Department of Electronic Engineering, The Chinese University of Hong Kong, China;Department of Electronic Engineering, The Chinese University of Hong Kong, China and School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore

  • Venue:
  • Image Communication
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we propose a novel two-pass rate control algorithm to achieve constant quality for H.264/AVC high definition video coding. With the first-pass collected rate and distortion information and the built model of scene complexity, the encoder can determine the expected distortion which could be achieved in the second-pass encoding under the target bit rate. According to the built linear distortion-quantizer (D-Q) model, before encoding one frame, the quantization parameter can be solved to realize constant quality encoding. After encoding one frame, the model parameters will be updated with linear regression method to ensure the prediction accuracy of the quantization parameter of next encoded frame with the same coding type. In order to obtain the expected distortion of each frame under the target bit rate, a GOP-level bit allocation scheme is also designed to adjust the target bit rate of each GOP based on the scene complexity of the GOP in the second-pass encoding. In addition, the effect of scene change on the updating of D-Q model is considered. The model will be re-initialized at the scene change to minimize modeling error. The experimental results show that compared with the latest two-pass rate control algorithm, our proposed algorithm can significantly improve the bit control accuracy at comparable coding performance in terms of constant quality and average PSNR. On average, the improvement of bit control accuracy achieved about 90%.