基于MPEG-4的嵌入式视频编码及传输研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着网络通信技术和多媒体技术的发展,视频编码和传输已经在许多领域取得了成功的应用,基于嵌入式的视频系统在近几年也成为研究和开发的热点。而嵌入式系统设计突飞猛进的发展为这一热点提供了条件。
     开发数字视频系统主要的工作是视频信号的采集、压缩、传输和解码显示。视频信号是数据量庞大的信号,因此编解码是系统中最耗时的两个工作模块。本文选择MPEG-4编码算法来进行视频信号的压缩,深入研究了视频数据的空间格式、时间格式、帧内图象压缩(DCT,Quant,VLC等)、帧间运动估计和运动补偿等算法,并进行了改进和优化。本文在VC环境下编写代码验证了算法的可行性:软件实现精简的RTP传输协议,对压缩的视频数据进行传输。
     算法的复杂性和编码的实时性,使得传统的软件编码设计不能满足要求。市场上通用的硬件编码芯片,例如IME6400、ADV611等可以快速、高效、便捷地实现视频编码,但是缺乏灵活性。利用嵌入式DSP的高速计算能力可以充分的实现编码算法,且升级方便。本文基于高速数字多媒体处理芯片TMS320DM641,进行嵌入式网络视频编码器的研究,充分考虑了DM641的CPU性能和丰富外设,提出了系统的实现方案,并根据DSP体系结构和开发环境(CCS),对MPEG-4视频编码算法、RTP传输协议、乃至整个软件系统进行多方面的优化,使得系统提高了速度,满足基本的需求,也为系统的升级打下基础。
With the development of network communication technology and multimedia technology, encoding and transmission of video has been applied in many fields. And the embedded video system was also a hot topic research, recently. The advanced rapid development of embedded system correctly fit this research.
     The main works of developing digital video system are about video signal's collecting, encoding, transmission, decoding, and displaying. Signal of video is very enormous, so encoding and decoding are the most time-consuming parts in the system. In this paper, we use MPEG-4 to encode video signal. The works are researching of video signal data's format and study of several arithmetic, such as: image compressing(DCT, Quantization, VLC, etc), Motion Estimation(ME) and Motion Compensation(MC). We give some advices about improvements and optimizing. All of the works has been validated under Visual C ++, and we wrote a tidy RTP stack to transfer the encoded video data.
     As we know, the encode arithmetic is complicated, and encoding must work in real time, so it's difficult to finish the work by traditional software encode design. There are many hardware chip such as IME6400、ADV611, which can encode video data very fast, efficiently, and easily. But hardware is not flexible. Embedded DSP can execute encode arithmetic program easily, because of its great ability in high-speed calculating. And we can upgrade the software conveniently. In this article, we research the embedded network video encoder based on TMS320DM641, which is a high-speed digital multimedia process chip. With consider of DM641's structure and abundant peripheral, the video monitoring system is designed. In allusion to DSP's structure and compile environment, We optimized the MPEG-4 video encode arithmetic, RTP stack, and so on. Our works accelerate the system, meet the requirement of video monitoring system, and make a good base of upgrading for the system.
引文
[1] Iain E.G.Richardson. H.264 and MPEG-4 Video Compression Video Coding fro Next-generation Multimedia. The Robert Gordon University, Aberdeen, UK. 2003
    [2] 黄贤武.数字图像处理与压缩解码技术.电子科技大学出版社,2000年
    [3] ITU-R Recommendation 656. Volume XI-Part 1 Broadcasting Service (Televis- ion) . Recommendations of CCIR, 1990
    [4] MPEG Video Group. The MPEG-4 video standard verification models IEEE Trans. Circuits and systems for video technology, vol.7, no.1, February 1997
    [5] TEKALP,A.MURAT著 崔之祜等译.数字视频处理.北京:电子工业出版社,1998年7月
    [6] 张益贞,刘滔.Visual C++实现MPEG/JPEG编解码技术.北京:人民邮电出版社,2002年11月
    [7] 孙哲.基于MPEG-4的运动估计和码率控制技术的研究.电子科技大学硕士学位论文,2005年
    [8] 全子一.数字视频图像处理.北京电子工业出版社,2005
    [9] 楼栋军.实时MPEG-4视频编解码软件系统的研究与实现.清华大学工程硕士专业学位论文,2004年
    [10] 潘宏德.基于TMS320C6211的监控视频编码算法的实现.西南交通大学硕士学位论文,2005年
    [11] Iain E.G Richardson著 欧阳合,韩军译.视频编解码器设计——开发图象与视频压缩系统.国防科技大学出版社,2005年1月
    [12] ZHU C, LIN X, CHAU L2P. Hexagon2Based Search Pattern for FastBlockMotion Estimation.IEEE Trans. Circuits and Systems for Video Technology, 2002, 12 (5): 349-355
    [13] 沈鑫剡.多媒体传输网络与VoIP系统设计.北京:人民邮电出版社,2005年3月
    [14] Richard Stevens.TCP/IP详解卷1:协议.机械工业出版社,2000年04 月
    [15] Douglas E.Comer.用TCP/IP进行网际互联——第二卷:设计、实现与内核(第三版).电子工业出版社,2001年5月
    [16] Adam Dunkels. uIP-A Free Small TCP/IP Stack. 2002年1月15日
    [17] H.Schulzrinne, S.Casner, R.Frederick, V.Jacobson. RTP: A transport Protocol for Real-Time Aplication. RFC3550, 2003:12-44
    [18] 董振亚,张拥军,彭宇行.基于RTP的MPEG-4视频传输.计算机应用研究,2003年15期,
    [19] 叶勇杰,高仕斌等.Telnet在8位机上的实现。机电工程技术,2006年12期,41-44
    [20] 沈兰荪.视频编码与低速率传输.北京:电子工业出版社,2001年
    [21] Texas Instuments. TMS320DM641/TMS320DM640 Video/Imaging Fixed-Point Digital Signal Processors, Data Manual. SPRS222E, June 2003
    [22] Texas Instuments. TMS320C6000 Chip Support Library Api Reference Guide. SPRU433j, 2004.8
    [23] Texas Instruments. TMS320C64x/C64x+ DSP CPU and Instruction Set Reference Guide. SPRU732c.2005.8
    [24] Texas Instruments. TMS320C64x DSP Video Port/VCXO Interpolated Control(VIC) Port Reference Guide. SPRU629D, January 2005
    [25] Philips Semiconductors. SAA7113H 9-bit video input processor. Product specialfi- cation. July, 1 1999
    [26] 鹿宝生,陈启美.基于DSP的嵌入式远程视频监控终端.电视技术,2005年9月
    [27] 张大波主编.嵌入式系统原理、设计与应用.机械工业出版社.2005年
    [28] 尹勇.DSP集成开发环境CCS使用指南.北京航空航天大学出版社,2000年
    [29] 彭启琮,管庆.DSP集成开发环境——CCS及DSP/BIOS的原理与应用.电子工业出版社.2004年7月
    [30] Texas Instruments. TMS320C6000 Assembly Language Tools User's Guide. SPRU186, 2000
    [31] Texas Instruments. TMS320C6000 Optimizing C Compiler User's Guide. SPRU187, 2004.8
    [32] 陈彬.基于MPEG-4的数字视频监控系统编码端研究及硬件实现.电子科技大学硕士学位论文,2004年
    [33] 郑亮。MPEG_4流式播放的设计与实现.华中科技大学硕士学位论文,2005
    [34] 王成利.面向对象的MPEG_4视频编码算法的研究及其DSP实现.吉林大学硕士学位论文,2004年
    [35] 樊小鸫.基于MPEG4的数字视频编解码技术研究.国防科学技术大学硕士学位论文,2003年
    [36] 陈康.多路视频压缩装置研究与实现.西南交通大学硕士学位论文,2005
    [37] 何宇.基于TMS320DM642单芯片的网络接入系统研究与实现.武汉理工大学学报,2005年10月第五期,770-773
    [38] F.Le Leannec, C.M. Guillemo. Error resilient video transmission over the lnternet, in SPIE Proc.VCIP'99, 1999
    [39] T.Turletti , C.Huitema. RTP payload format for H.261 video stream. RFC2032, 1996
    [40] C.Zhu. RTP payload format for H.263 video streams. RFC2190, 1997
    [41] 钟玉琢,王琪,贺玉文.基于对象的多媒体数据压缩标准——MPEG-4及其校验模型.北京:科学出版社,2000年
    [42] Jean J.labrosse著,邵贝贝译.嵌入式实时操作系统uC/OS-Ⅱ(第二版).北京航空航天大学出版社,2003年
    [43] 钟玉琢,蔡莲红 等.多媒体计算机技术基础及应用.北京:高等教育出版社,1999年
    [44] 肖自美.图象信息理论与压缩编码技术.广州:中山大学出版社,2000年
    [45] ITU-T Recommendation H.263. Video coding for low bitrate communication. Recommendations of CCIR, May,1996
    [46] Alexis M.Tourapis, Oscar C.Au, Ming L.Liu.Predictive Motion Vector Field Adaptive Search Technique (PMVAST) -Enhancing Block Based Motion Estimation. 2001
    [47] 佟雨兵,胡薇薇,杨东凯,张其善.视频质量评价方法综述.计算机辅助设计与图形学学报,2006年5月,第18卷第5期,735-740
    [48] 王文生,杨铭,崔慧娟,唐昆.H.264运动估计的自适应提前退出算法. 清华大学学报,2004年第44卷第10期,1426-1429
    [49] 杨琛,白波.自适应运动估计搜索算法.计算机应用,2006年6月,第26卷,41-43
    [50] 张睿,彭宇行.MPEG-4中运动估计模块的改进与优化.计算机与信息技术,开发与应用版,2006年7月,16-17
    [51] 杨洁,朱光喜,金欣,鲁照华.基于相邻运动矢量相关性的运动矢量预测算法.微计算机信息(管控一体化),2005年第21卷第9-3期,107-108
    [52] 邹晓春,冯燕,赵歆波.一种块匹配的快速运动估计算法.中国图象图形学报,2006年7月第11卷第7期,938-942
    [53] 姚晨,沙济彰.一种新的运动估计算法.华东理工大学学报,2006年9月第32卷第9期,1117-1120
    [54] 王耀,王昭顺.一种基于块匹配的运动估计改进算法.微计算机信息(管控一体化),2006年第22卷第10-3期,192-194