HEVC(High Efficiency Video Coding)采用的基于R-λ模型的码率控制算法在控制输出码率的精确和提高编码效率上都取得了良好的效果。然而该算法没有考虑到实际视频编码中场景切换的影响。本文提出一种新的针对场景切换的码率控制算法。首先结合帧间的亮度差及其变换趋势判断是否发生场景切换,在场景切换发生时对码率控制的参数以及编码结构都做出及时调整。最后实验表明,与HEVC自带的码率控制相比,所提出的码率控制算法能够有效应对视频序列中的场景切换,提高了编码质量,降低了编码复杂度,并且保持精确的输出码率。
The rate control algorithm based on R-λ model adopted by HEVC (High Efficiency Video Coding) has achieved great performance on both maintaining the accuracy of controlling output bitrate and improving coding efficiency. But it does not consider the influence brought by scene change in practical video coding. This paper proposed a new rate control algorithm based on scene change. We detect scene changes by the difference of luma between frames and the variation tendency of the difference. When scene change occurs, the parameters in rate control and coding structure will be adjusted instantly and adaptively. Experiment result shows that compared with the rate control in HEVC, ours can handle with scene changes in video sequences effectively. The quality is raised and coding complexity is decreased while still maintaining the accuracy of output bitrate.