将高码率的视频码流转码生成低码率的视频码流,以适应不同网络带宽的需要,这是MPEG视频转码的一个最重要的应用.存在开环和闭环两种不同结构的码率缩减视频转码器,它们在转码速度和转码后的图像质量两方面各有优势.针对这两种转码结构的优缺点,提出了一种新的漂移误差自适应的快速视频转码结构.该结构以块为基本单元自适应地控制漂移误差,同时采用合适的查表算法来降低量化和反量化运算的复杂度.实验结果表明,采用这种结构的视频转码器在转码速度上不仅远远高于闭环结构,而且也超过了传统的开环结构;在转码后的图像质量上接近闭环结构,并且远远好于开环结构.此外,这种结构的视频转码器还可以方便地扩展成为复杂度可伸缩的转码器,根据处理器的有效负荷动态地调整转码器的复杂度,更好地实现实时视频转码服务.
A fast video transcoder with adaptive drifting error control is proposed in this paper. Firstly, similar to the traditional close-loop transcoder, the proposed transcoder still accumulates the re-quantization errors of each I or P picture. However, the accumulated errors are not always introduced into the transcoding loop in every block. A triple-threshold algorithm is proposed to adaptively utilize the accumulated errors at block level so as to control the drifting error under an acceptable level. Secondly, the re-quantization process can be simply implemented by looking up table, which significantly reduces the complexity of the re-quantization process. The experimental results show that the picture quality obtained from the proposed transcoder is close to that of the traditional closed-loop one while about 50% blocks are not updated with the accumulated errors. In this case, the speed of the proposed transcoder is much faster than that of the traditional close-loop one, and even faster than that of the traditional open-loop one. Furthermore, the proposed transcoder provides the desired flexibility between picture quality and transcoding complexity in CPU-awareness applications.