1. [地质云]滑坡
H.264编码算法研究及嵌入式应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
H.264是由ISO(国际标准化组织)与ITU(国际电信标准化部门)为了获得更好的压缩和传输性能而联合制定的新一代视频编码标准。H.264引入了当前视频编码的新技术,包括多种宏块大小模式、4×4整数变换、帧内预测、去块效应滤波、统一的熵编码等。与现有的其它视频编码标准相比,这些新技术使得H.264在相同的情况下可以得到更高的压缩比和更好的图像质量,这就使它具有很好的应用前景。随着嵌入式系统的广泛应用,在嵌入式系统中实现视频的编解码已经成为H.264研究的重点和难点之一。本文在详细分析了H.264编码原理的基础上,研究了复杂度很高的运动估计和模式选择的相关算法,然后在嵌入式平台PXA255上面实现基于H.264的实时视频采集编码系统。
     首先,在熟悉视频编码相关理论的前提下,介绍了H.264编码器结构和档次划分,并且详细分析了H.264使用的关键技术以及H.264的编码性能。从主观和客观两个方面比较了H.264与MPEG2、MPEG4和H.263的编码性能,从测试的结果可以看出不论从主观还是客观方面H.264都具有更好的编码性能。
     其次,详细分析了运动估计中的搜索算法,并且比较了几种搜索算法的性能。实验结果显示,全搜索具有最好的搜索性能,但是搜索的复杂度很高,不适合在实际中应用。而三步搜索、菱形搜索、六边形搜索算法和混合的非对称多六边形搜索算法等快速算法在不严重改变搜索性能的情况下可以很大程度提高搜索速度。
     再次,重点研究了基于Lagrangian率失真优化算法的模式选择,并对率失真优化算法进行相应的改进,以提高模式选择的速度。实验结果显示,改进后的模式选择算法可以很大程度的节约时间,而且不会对编码性能有大的影响。
     最后,将H.264编码算法应用在嵌入式平台PXA255上实现基于嵌入式linux的视频采集编码系统。将H.264编码软件X264移植到PXA255上,实现对采集到的视频进行压缩,并且对编码软件进行优化。实验结果表明,优化后的编码软件基本可以对采集到的视频进行实时编码。
ISO(International Organization for Standardization) and ITU(International Telecommunication Union) work together to work out a new video coding standard-H.264,in order to obtain better compression and transmission performance.The H.264 standard introduction the new technologies of current video encoding,including multi-slice size model, 4×4 integral transformation, intra prediction, the effect of filtering to block, entropy coding of the reunification and so on.Compared with other video coding standard of existing,the new technology allows H.264 coding standard can get a higher compression ratio and better image quality in the same circumstances. So,it has good application prospect.With a broad application of embedded systems, Implementation the video codec in the embedded systems has become the focus and difficult one of H.264 study.In this paper, on the basis of detailed analysis of H.264 coding theory,study the campaign estimates and choose the mode of algorithms of a high degree of complexity , and then accomplishment real-time video capture encoding system based on H.264 in the PXA255 of embedded platform.
     Firstly,Under familiar the theory of video encoding premise, introduce the structure and level of the H.264 encoder,and multianalysis the key technology and encoding performance of H.264. Comparison of H.264、MPEG2、MPEG4 and H.263 encoding performance from two aspects of subjective and objective.From the test results, H.264 has better coding performance both the aspect of subjective or objective.
     Secondly,detailed analysis of search algorithm of the motion estimation,and compared the performance of several search algorithm. The results show that the whole search has the best search performance, but a high degree of complexity.So,not suitable for application in practice.But,The fast algorithm of three-step search、diamond Search、hexagonal search algorithm and mixed asymmetrical multi-hexagonal search algorithm can greatly improve search speed Without a serious change in search performance.
     Thirdly,emphatic study mode selection of rate distortion optimization algorithm based on Lagrangian,and increase speed of mode selection by improvement the rate distortion optimization algorithm.The results show that the improved model algorithm can save time large degree,moreover without impact the coding performance major.
     Finally, H.264 encoding algorithmapplication on PXA255 of embedded platform to accomplishment real-time video capture encoding system based on embedded linux. X264 of H.264 encoding software will be transplanted to PXA255 to achieve the collection of video compression,and optimize the encoding software.Experimental results show that the encoding software of optimization can accomplishment of the basic real-time video encoding for collection video.
引文
[1]Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification(ITU-T Rec.H.264/ISO/IEC 14496-10 AVC).JVT-G050[S],2003.
    [2]刘峰.视频图像编码技术及国际标准[M].北京:北京邮电大学出版社,2005
    [3]胡国荣.数字视频压缩及其标准[M].北京:北京广播学院出版社,1999
    [4]田泽.嵌入式系统开发与应用[M].北京:北京航空航天大学出版社,2005
    [5]毕厚杰.新一代视频压缩编码编码标准——H.264/AVC[M].人民邮电出版社,2005
    [6]http://www.chinavideo.org/index.php?option=com_remository&Itemid=16&func=select&id=2&orderby=2&page=2
    [7]GARY J.SULLIVAN,THOMAS WIEGAND,Video Compression-From Concepts to the H.264/AVC Standard,PROCEEDINGS OF THE IEEE,VOL.93,NO.1,JANUARY 2005.
    [8]ITU-T Recommendation H.261.Video codec for audiovisual services at p 64 kbit/s,in Proc.CUM 15R 16-E,March,1993
    [9]ITU-T Recommendation H.263.Video coding for low bitrate communication.May,1996
    [10]ITU-T Rec.H.264.Advanced video coding.Oct.2002
    [11]ISO/IEC CD 11172.Coding of moving pictures and associated audio for digital storage mediaat up to 1.5Mbits/sec—Part 2:Coding of moving pictures information.Dec.1991
    [12]ISO/IEC 13818-2.Information technology-Generic coding of moving pictures and associatedaudio Part 2:Video.1995
    [13]ISO/IEC FDIS 14496-2.Information technology-Genetic coding of audio-visual objects Part 2:Visual.Oct,1998
    [14]虞露,AVS-视频技术概述[J],浙江大学,中国多媒体视讯,2004(1),34-35
    [15]余兆明.图象编码标准H.264技术[M].人民邮电出版社,2006
    [16]H.264/MPEG-4 Part 10 White Paper[S].Transform and Quantization,2003
    [17]任竞,H.264/AVC视频编码标准的研究[J].微型电脑应用,2004,5(20):15-15
    [18]侯勇,赵巍,吐尔根-依布拉音.视频编码标准H.264的主要技术特点及其应用前景[J].中国科技信息,2005,(10):48-48
    [19]李宾,高平.H.264编码系统的特点及其应用前景[J].电视工程.2003年.2003(6):19-21
    [20]张杰,视频编码新标准H.264/AVC中的重要技术[J].现代电子技术,2004(6):104-106
    [21]万帅,王新岱 新一代视频压缩标准H.264.中国有线电视,2003(18):72-75
    [22]张锐,黄本雄.视频编码H.264/AVC新技术及其优化[J].电信工程技术与标准化,2005,(02):37-39.
    [23]沈承东,黎铁军.H.264视频压缩标准的编码性能与复杂性研究[J].系统仿真学报,2003,502-505
    [24]K.Venkatachalapathy,R.Krishnamoorthu,and K.Viswanath.A new adaptive search strategy for fast block motion estimation algorithms[J].Journal of Visual Communication &Image Representation,2004:203-213
    [25]R.Li,B.Zeng and M.L.Liou.A new three step search algorithm for block motion setimation.IEEE Trans.Circuits Syst.Video Technol,Aug.1994,VOL(4):438-422
    [26]J.A.Jain and A.K.Jain,"Displacement measurement and its application in interframe image coding",IEEE Trans.Commun,Vol.COM-29,pp.1799-1808,Dec.1981
    [27]T.Koga,K.Linuma,A.Hirano,Y.Linjima,andT.Lshiguro,"Motion-compensated inter frame coding for video conferencing",Proc.NTC81,pp.C9.6.1-9.6.5,NEW Orleans,LA,Nov.1981
    [28]S.Zhu and K.-K.Ma.A new diamond search algotithm for fast block-matching motion estimation,IEEE Trans.Image Processing,vol.9,no.2,pp.287-290,feb.2000
    [29]Ce Zhu,Xiao Lin,and Lap-Pui Chau,"Hexagon-Based Search Patten for Fast Block Motion Estimation",IEEE Tran.on CSVT,pp.349-355,Vol.12,No.5,May,2002
    [30]Z.B.Chen,P.Zhou,and Y.He,Fast integer pel and fractional pel motion estimation for JVT.JVT-F017,6th meeting:Awaji,Japan,5-13 Dec.2002
    [31]G J.Sullivan and T Wiegand.Rate-distortion optimization for video compression.IEEE Signal Processing Mag.,1998.vol.15:74-90
    [32]Thomas Wiegand,Bernd Girod.Lagrange Multiplier Selection in Hybrid Video Coder Control.In Proc.IEEE International Conference on Image Processing,Thessaloniki,Greece,Sep.2001
    [33]T.Wiegand,H.Schwarz,The emerging H.264/AVC standard EBU TECHNICAL REVIEW,January 2003
    [34]Editor's Proposed Draft Text Modifications for Joint Video Specification(ITU-T Rec.H.264|ISO/IEC 14496-10 AVC),Draft 4,JVT Document:JVT-E022d4,October 2002
    [35]T.Berge.Rate Distortion Theory[M].A Mathematical Basis for Data Compression,Prentice-Hall,Englewood Cliffs,1971
    [36]毛德操,胡希明.嵌入式系统—采用公开源代码和Strong ARM/Xscale微处理器[M].浙江:浙江大学出版社,2003
    [37]Intel~(?)PXA255 Processor Developer's Manual[S].Intel Corporation,2003
    [38]EAX-400嵌入式开发系统开发手册.北京亿旗创新科技发展有限公司.2006
    [39]陈俊宏.Embedded Linux嵌入式系统原理与实务[M].北京:中国铁道出版社,2004
    [40]李善平,刘文峰.inux与嵌入式系统.京:华大学出版社,003
    [41]http://www.kegel.com/crosstool/.Building and Testing gcc/glibc cross toolchains.2006.
    [42]http://www.kegel.com/crosstool/current/doc/crosstool-howto.html,crosstool-howto.2006.
    [43]詹荣开.嵌入式Bootloader技术内幕.嵌入式应用,2003(2):21-27
    [44]毛德操,希明.LINUX内核源代码情景分析[M].杭州:江大学出版社,001
    [45]郑桦.嵌入式Linux文件系统的设计与实现[D].武汉理工大学学报.2004,3
    [46]杨延军.用busybox制作嵌入式Linux的文件系统[J].单片机与嵌入式系统应用.2005,No4,8-10
    [47]Alan Cox.video4Linux Programming.lan@redhat.com,000
    [48]Net source.video4Linux Kernel API Reference.ersion 0.1,pril,1999