• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (4): 61-65.

• 论文 • 上一篇    下一篇

一种新的H.264帧层码率控制算法

苏令华 1,2,郭英1,张树银1   

  1. (1.空军工程大学电讯工程学院,陕西 西安 710077;2.空军大连通信士官学校,辽宁 大连 116600)
  • 收稿日期:2011-11-05 修回日期:2012-02-10 出版日期:2012-04-26 发布日期:2012-04-25

A New Rate Control Algorithm for the H.264 Frame Layer

SU Linghua1,2,GUO Ying1,ZHANG Shuyin1   

  1. (1.School of Telecommunication Engineering,Air Force Engineering University,Xi’an 710077;2.Dalian Airforce Communication NCO Academy,Dalian 116600,China)
  • Received:2011-11-05 Revised:2012-02-10 Online:2012-04-26 Published:2012-04-25

摘要:

本文提出一种新型的基于H.264的帧层码率控制算法。综合考虑码率、视频序列空间复杂度和缓冲区状态,提出一种新型的I帧RQ(码率量化参数)模型。基于前一个GOP(帧组)的码率产生情况,调整I帧的时间复杂度,实现了I帧量化参数的自适应调整。根据HOD(差图像直方图)和P帧相对位置进行P帧的比特分配修正。仿真结果证明,所提算法相较于G012模型,可以有效提高重建视频的PSNR(峰值信噪比),降低PSNR波动,并大幅减少跳帧情况的发生。

关键词: H.264, 码率控制, 帧层, 帧内编码帧, 帧间编码帧

Abstract:

In this paper, we propose a new rate control algorithm for the H.264 frame layer. A novel RQ (RateQuantization) model for Iframes is established based on rate, spatial complexity and buffer status. The target bits of an I frame is decided by the relation between the number of bits generated for the I frame and P frames of the previous GOP, and the QPi(Quantization Parameter for I frame) is determined adaptively. The target bits of a P frame is modified according to the HOD (Histogram of Difference) and its relative position. The experimental results show that the proposed algorithm can increase the average PSNR (Peak Signal-to-Noise Ratio) of the reconstructed video, and depress the PSNR fluctuations. At the same time, some skipped frames are avoided.

Key words: H.264;rate control;frame layer;intraframe;interframe