The First Quantization Parameter Decision Algorithm for the H.264/AVC Encoder

H.264/AVC를 위한 초기 Quantization Parameter 결정 알고리즘

  • 권순영 (대구경북과학기술원 SW연구팀) ;
  • 이상헌 (대구경북과학기술원 SW연구팀) ;
  • 이동하 (대구경북과학기술원 SW연구팀)
  • Published : 2008.06.15


To improve video quality and coding efficiency, H.264/AVC adopted an adaptive rate control. But this method has a problem as it cannot predict an accurate quantization parameter(QP) for the first frame. The first QP is decided among four constant values by using encoder input parameters. It does not consider encoding bits, results in significant fluctuation of the image quality and decreases the average quality of the whole coded sequence. In this paper, we propose a new algorithm for the first frame QP decision in the H.264/AVC encoder. The QP is decided by the existing algorithm and the first frame is encoded. According to the encoded bits, the new initial QP is decided. We can predict optimal value because there is a linear relationship between encoded bits and the new initial QP. Next, we re-encode the first frame using the new initial QP. Experimental results show that the proposed algorithm not only achieves better quality than the state of the art algorithm, but also adopts a rate control forthe sequence that was impossible with the existing algorithm. By reducing fluctuation, subjective quality also improved.


  1. T.Wiegand, G.J.Sullivan, G. Bjontegaard, and A. Luthra, "Overview of the H.264/AVC video coding standard," IEEE Trans. Circuits Syst. Video Technol., Vol.13, pp. 560-576, July 2003
  2. Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification (ITU-T Rec. H.264 | ISO/IEC 14496-10 AVC), 2003
  3. Iain E.G. Richardson, "H.264 and MPEG-4 Video Compression," WILEY, 2003
  4. J. Ostermann, J.Bormans, P. List, D. Marpe, M. Narroschke, F. Pereira, T. Stockhammer, and T. Wedi, "Video Coding with H.264/AVC: Tools, Performance, and Complexity," IEEE Circuits Syst. Magazine, Vol.4, No.1, pp. 7-28, Apr. 2004
  5. H. Wang, "Rate-Distortion Optimization of Rate Control for H.264 With Adaptive Initial Quantization parameter Determination," IEEE Transaction on Circuits and Systems for Video Technology, Vol.18, No.1, pp. 140-144, January 2008
  6. Z. G. Li, W. Gao, F. Pan, et al., "Adaptive Rate Control for H.264," Journal of Visual Communication and Image Representation, pp. 377-406, 2005
  7. Ahenggo Li, Wen Gao, Feng Pan. "Adaptive Rate Control with HRD Consideration," JVT-H014, 8th Meeting: Geneva, May 20-26, 2003
  8. Alexis Michael Tourapis. "Revised H.264/MPEG-4 AVC Reference Software Manual; Section 4.8," JVT-Q042, 17th Meeting: Nice, FR,14-21 October, 2005
  10. C.H Lee, "Real-Time Frame-Layer H.264 Rate Control for Scene-Transition Video at Low Bit Rate," IEEE Transactions on Consumer Electronics, Vol.53, No.3, pp. 1084-1091, August 2007
  11. Y. Liu, "A Novel Rate Control Scheme for Low Delay Video Communication of H.264/AVC Standard," IEEE Transaction on Circuits and Systems for Video Technology, Vol.17, No.1, pp. 68-78, January 2007