基于无线局域网的H.264视频优化传输
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着网络技术的发展与普及,网络通信的内容与形式趋于多样化。其中视频通信越来越占据重要的地位。而在各种网络视频服务类型中,实时视频传输是最有挑战性的,它对视频压缩的效率和网络友好都提出了很高的要求。在这方面H.264/AVC表现最为突出。但是视频高度压缩技术在减少冗余信息的同时,也降低了视频流抗击错误的能力。尤其是面对错误率较高而带宽受限的无线网络时,这样的矛盾就更加的突出。为了解决这一棘手问题,H.264引入了各种容错工具,如灵活宏块排序,率失真优化和冗余片结构等,但是使用这些抗误码工具提高视频传输差错控制能力的同时付出了降低了视频的压缩效率和占用了更多宝贵的网络带宽资源的代价。因此如何能根据不同的情况恰当的应用这些抗误码技术优化视频传输便成为一个重要的研究课题。
     鉴于国内外对于H.264的抗误码优化传输主要针对3G移动通信网和移动IP网络而较少涉及到无线局域网的情况,本文主要针对无线局域网中的H.264视频优化传输,吸收借鉴了交叉层设计思想方法,提出了一种基于无线局域网IEEE802.11MAC协议的交叉层H.264视频优化传输的方法。该方法通过统计无线局域网发送端MAC层的收包率来估计信道的状况,并根据信道估计来调整H.264编码器的参数,以达到编码参数与信道状况大致匹配的目的,优化视频传输效果。
     本文的实验以网络模拟的方式来实现,采用NS2仿真软件实现无线局域网的环境,将H.264视频编码文件经过解析处理后送入到模拟环境做各种情况下的传输测试,通过大量反复实验证明了该方法对信道估计的可靠性和稳定性,然后分各种信道情况和编码参数来测试视频传输质量,并以此来确定不同情况下的匹配策略,最后依照前面的实验匹配策略进行了交叉层优化传输测试,通过实验证明了它对视频传输质量的改善。
With the development and popularization of network technologies, the simple information such as text, sounds and images can not satisfy user’s requirements, the transmission of video and multimedia information on network is a new kind of trend and need. Among all kinds of network video services, real-time transmission of video data is the most challenging task, as it severely requires video compression efficiency and network friendly design, but H.264/AVC just satisfy the two kinds of requirements above at some extent. H.264/AVC is the newest international video coding standard, jointly developed by groups from ISO/IEC and ITU-T, which aims at achieving improved compression performance and network-friendly video representation for different types of applications including real-time video communications. It performs significantly better than the available ISO MPEG-4 Part 2 standard and ITU-T Recommendation H.263 in terms of compression and network adaptation. However, it cuts down the ability of error resiliency as using high compression technology on video coding. The contradiction between compression efficiency and the ability of error resiliency are serious, especially facing with wireless network, which with the character of high bit error rate and limited bandwidth. In order to solve the serious problem, kinds of error control schemes are employed by H.264/AVC, such as flexible macroblock ordering (FMO), rate distortion optimization(RDO) and redundant slice(RSs). Nevertheless, it reduces the video compression efficiency and costs more precious network bandwidth resources at the same time of using these error control schemes in order to enhance the ability of error resiliency. Consequently, it becomes the focus how to adopt appropriate video coding mode and error control method. Moreover, it is the aim and target of this thesis.
     Nowdays, at home and abroad, Most researches on the wireless transmission of H.264 are on the context of 3G mobile telecommunication network or wireless broadband IP network, and optimize it from the respect of codec and network protocol respectively. During these years, many research institutes and researchers invite the application of cross layer design(CLD) idea to the wireless transmission of video, which solve the problem of supportless between the optimization of codec and network protocol. Here in this thesis we employ the method of cross layer design, aiming directly at the character of WLAN’s MAC layer, utilizing the frame ACK to estimate the error rate condition of the wireless channel. And then direct the latter video coding according to the result above, which achieve the target of self-adaptive adjustment of the codec according to the condition of channel. It is a cross layer design scheme that initiate from MAC layer and application layer(codec) responding to it. We use the mode of network simulation in this experiment with the simulate software of NS2 to construct WLAN for the simulation of video transmission, and then analyze the result according to the simulated experiment.
     In the theory part of this thesis, first of all, the coding characters of H.264 are analyzed, and the changes on network friendly design of H.264 and its significance are also introduced. Then some kinds of error control schemes and video optimization methods of H.264 are analyzed, which mainly focus on the unique error control schemes of H.264, such as flexible macroblock ordering (FMO), rate distortion optimization(RDO) , Parameter Sets and so on. Then in the next part of the thesis, WLAN is simply introduced, including the classification of topology, frame category and the structure of all kinds of frame. The thesis analyzes the characters of IEEE802.11b MAC layer’s protocol of WLAN. These are the theory foundation of the cross layer design proposed in this thesis.
     In the respect of network simulation, besides describing the features, basic structure and basic principle of NS2, the thesis analyzes the code implementatiom of network components involving in the experiments. There are the subject of the introduction of the video stream to the traffic generator in application layer of NS2, the subject of some kinds of timer and the subject of procedures realization of IEEE802.11b MAC layer’s protocol, especially for the last subject. These are the procedure code foundation of the cross layer design proposed in this thesis.
     At last, the network simulation experiment is carried out using NS2. The operating system of the experiment is windows XP+cygwin, and the edition of the codec of H.264 is JM7.2, the transmission mode is point-to point wireless transmission. The experiment utilizes the ACK frames of MAC layer to calculate the received rate of the packet at the MAC layer, and then estimates the channel condition of bit error rate according to the calculation result of the packet received rate. First of all, the experiment is about the homologous relationship between packet received rate at the MAC layer and channel condition of error bit rate. We set the coding parameter SliceArgument=100 and SliceArgument=200 respectively. The experiment carried out under several discrete bit error rate conditions and the same experiment is repeated 10 times each. From the experimental results, it is obvious that under the same channel condition of error rate, the packet received rate at the MAC layer trend to the same. Furthermore, it can distinguish each other under different error rate channel conditions. Then makes all the other coding parameters fixed except for the coding parameter RDO. The experimental results show that the packet received rate in MAC layer are not fluctuate though RDO is changed. It proves that RDO’s change will not disturb the judge of the MAC layer’s estimation of the channel conditions, which is convenient to continuous survey of the channel condition using latter coding frame that is adapted by cross layer design. The explanation of the experiment result is: if the SliceArgument is fixed, the slice length of the H.264 coding is around the value of the SliceArgument. Furthermore, the codec here we use adopt the method of simple packet scheme, which means that one RTP packet load one slice, and in other words, the RTP packet length is fixed by and large. That is the reason why the packet received rate is regular. The next step of the experiment is decoding the video which is transmitted on the WLAN and working out matching schemes. The results of two respects are mainly considered to work out the schemes: the PSNR value of the video decoded and transmission defer. At the premise of the transmission defer be up to standard, we choose the coding scheme whose PSNR value of decoded is the best. At last, we carry out the test of the cross layer design scheme of this thesis. The experimental results show that the scheme can optimize the H.264 video transmission on some channel conditions. Besides implementing optimization by adjusting the parameter of RDO, we also realize the optimization by adjusting quantization step QP. It means adjusting the coding precise extent according to the channel conditions and optimize the video transmission. In this experiment, the optimization extent is tested through adjusting QP value, which is mainly based on the condition of the channel improvement. The experiment process is similar to the RDO adjustment and better expermental results are also obtained.
     At last, we summarize and give some prospect of the thesis. The shortcomings of the experiment are pointed out and further improved schemes are put forward. The cross layer design scheme adopted in this thesis can be utilized together with other optimization methods of video transmission and other cross layer design schemes, but the result is not clear and need further experiments.
引文
[1]B.P.Crow,I..Widjaja,j.g.Kim,P.T.Sakai.”IEEE 802.11 Wireless Local Networks”,IEEE Communications Magazine,September 1997,pp.116-126
    [2] 齐江,“无线局域网(WLAN)发展概述”,中国数据通信,2002 年 7 月
    [3] Z.Hadzi-velkov,B.Spasenocski,”The influence of flat Rayleigh fading channel with hidden terminal and capture over the IEEE 802.11WLANs”,in proc of the 54th IEEE Vehicular Technology Conference,vol.2,pp972-976 Fall 2001
    [4] B.Bing,”Meaturement performance of the IEEE 802.11 wireless LAN in Proc of The Conf On Local Comp Networks,pp 34-42,Fall 1999
    [5]G.Bianchi,”Performance Analysis of the IEEE 802.11 Distributed Coordination Function”,IEEE J.on Sel,Areas in Comm,Vol.18,No.3,(MAR 2000),pp 535-547
    [6] Ad Kamerman,Nedim Erkocevic,”Microwave Oven Interference on Wireless LANs operating in 2.4GHZ ISM Band”,Proc.PIMRC1997,Vol:3,pp:1221-1227,Sept,1997
    [7] M.fainberg,”performance Analysis of the 802.11b Local Area Network in the Presence of Bluetooth personal Area Network”,Master of Science Dissertation,Polytechnic University,2001
    [8] IEEE Std 802.11-1999, “Part11: Wireless LAN Medium Access Control(MAC) and Physical Layer(PHY) Specifications”,August 1999
    [9] 康冠林,王福豹,段渭军,“无线局域网视频传输技术”,微型电脑应用,Vol. 21,No. 8,2005,PP 1-4
    [10] Draft ITU-T Recommendation and Final Draft International Standard of Joint Video Specification(ITU-T Rec.H.264 /ISO/IEC 14496-10 AVC),7th meeting:Pattaya,7~14 March,2003
    [11] 余兆明,查日勇。《图像编码标准 H.264 技术》。人民邮电出版社,2006 年 3 月第 1 版。
    [12] N.Farber,K.W.Stuhlmuller,B.Girod,”Analysis of error propagation in hybird video coding with application to error resilence,” in Proc.IEEE Int.Conf.Image Processing(ICIP), Kobe, Japan, Oct.1999, pp.550-554
    [13] L.A.Larzon,M.Degermark,and S.Pink.”UDP lite for Real Time Multimedia Appications”,In Proceedings of the Sixth IEEE International workshop on Mobile Multimedia Communications,1999
    [14] Yan Zhao,Hexin Chen,Xuefen chi Jesse S.Jin,”Spatial error concealment Using Directional Extrapolation” ,DICTA2005,Cairns,Australia
    [15] Jinghong Zheng,Lap-Pui Chau,“A temporal. error concealment algorithm for H.264 using Lagrange interpolation”Proceedings of the 2004 International Symposium on Circuits and Systems,Volum:2,23-26 May2004.Page:II-133-6 Vol.1
    [16] S.Wenger,M.Horowitz,”FMO:flexible macroblock ording,”in JVT-C089,May 2002.
    [17] J.Chakareski,P.A.Chou,B.Aazhang,”Computing rate-distortion optimized policies for streaming media to wireless clients,”in Proceeding of Data Compression Conferrence,April 2002,pp.53-62
    [18] Qi Qu,Yong Pei,Modestino,J.W.,“Robust H.264 video coding and transmission over bursty packet-loss wireless networks”,IEEE 58th Vehicular Technology conference,2003.VTC 2003.
    [19] S.Wenger,T.Stockhammer,”An overciew on the H.26L NAL concept,”in JVT-B028,Feb 2002
    [20] Rolf Winter,Jochen H.Schiller,Navid Nikaein and Christian Bonnet,”CrossTalk:Cross-Layer Design Support Based on Global Knowledge”IEEE Communication,Jun 2006,pp93-99
    [21] Y.Shan,A.Zakhor,”Cross layer techniques for adaptive video streaming over wireless network”,in Proc.IEEE Int.Conf.on Multimedia&Expo,vol.1,August 2002,pp.277-280.
    [22] Adlen Ksentini and Mohamed Naimi,“Toward an Improment of H.264 video Transmission over IEEE 802.11e through a cross-Layer Architecture” Proceddings of IEEE International Conference on Multimedia and Expo Jan 2006,pp.107-114
    [23] P.Bucciol,G.Davini,E.Masala,E.Filippi,”Cross-Layer Perceptual ARQ for H.264 Video Streaming over 802.11 Wireless Networks”
    [24] 冯锡平,马杰,“WLAN 视频传输中的自适应包长选择方法”,无线电工程Vol.35,No.11,2005,pp26-28
    [25] 邹仕洪,林华生,程时端,“DCF 传输 MPEG-4 视频流的研究”,电子与信息学报,2005年第 1 期。
    [26] Wiegand Thomas, Sullivan Gary J, Bjontegaard Gisle, et al. Overview of the H.264/AVC video coding standard[J]. IEEE Transactions on Circuits and Systems for Video Technology, 2003, 13(7): 560-576.
    [27]H.264/MPEG-4 Part 10 White paper-Vriable-length Coding. www.vcodex.com
    [28]T.Stockhammer, T. Wiegand, T.Oelbaum, and F. Obermeier. “video coding and transport layer techniques for H.264-based transmission over packet-lossy networks, in Proc. ICIP 2003 Barcelona, Spain
    [29] S. Wwnger, T. Stockhammer, and M. M. Hannuksela, “RTP payload format for H.264 video. In Internet Draft, Work in progress, Mar.2003, Draftwenger-avt-rtp-h264-01.txt
    [30] Yves Dhondt, Peter Labert,”Flexible Macroblock ordering:an error resilience tools in H.264/AVC”,Fifth FTW phD.Symposium,1st December 2004,paper 106-108
    [31] S.Wenger, Mhorowitz,”Scattered and concealment of transmission errors in H.26L”,in JVT-B027,Feb 2002
    [32]Tomas Stockhammer, Dimitrios Kontopodis, Thomas Wiegand, “Rate-Distortion Optimization for H.26L Video Coding in Packet Loss Enviroment”,12th International Packet Video Workshop(PV 2002),pittsburg, PY, May 2002
    [33]T. Stockhammer, M. M. Hannuksela, T. Wiegand, “H.264/AVC in wireless enviroments,”IEEE Trans. Circuits Syst. Video Technol. , vol.13,pp.657-673,july 2003
    [34]S.Wenger, “H.264/AVC over IP”,IEEE Trans.Cir.Syst.Video Technol.,vol.13,pp.645-656,July 2003
    [35] T.Wiegand, N.Farber, K.Stuhlmuller, B.Girod, “Error resilient video transmission using long-term memory motion-compensated prediction,” IEEE J.Select.Areas Commun,vol.18 pp.1050-1059,Dec 2000
    [36]Y.Chen, J.C.Ye, “Flexible data partitioning for improved robustness performance,”JVT-C125,May 2002
    [37] J.C.Ye, Y.Chen “Flexible data partitioning mode for streaming video,” JVT-D136,July 2002
    [38] T.Stockhammer, “Independent data Partitions A and B”,in JVT-C132,May 2002
    [39] Yunli C ,Q ing-AnZ ,"Performance analysis and enhancement for IEEE802.11 MAC protocol” Global Telecommunications Conference, 2002. GLOBECOM '02. IEEE, Volume: 2, 17-21 Nov. 2002 ,Pages:1784 – 1788
    [40]Giuseppe Bianchi, “Performance Analysis of the IEEE802.11 Distributed Coordination Function”.
    [41] 刘乃安 《无线局域网(WLAN)原理技术与应用》 人民邮电出版社 2003.10
    [42] http://pel.cis.udel.edu
    [43] 秦冀,姜雪松. 《移动 IP 技术与 NS2 模拟》 机械工业出版社 2006.10
    [44] NS 教学手册.http://www.cublog.cn/u/19786/showart.php?id=191261
    [45]http://140.116.72.80/~smallko
    [46] 徐雷鸣. 《NS 与网络模拟》.人民邮电出版社 . 2003
    [47] 于斌. 《NS2 与网络模拟》.人民邮电出版社 2006.12
    [48] 陈明. 《Linux 基础与应用》清华大学出版社 2005.10
    [49] [美]Christopher Negus. 《Linux 宝典》.电子工业出版社 2005
    [50] Yao Wang,et al. 《视频处理与通信》 候正信等译 电子工业出版社,2003
    [51] 谢希仁. 《计算机网络教程》 人民邮电出版社 2002.5
    [52] 钱能. 《C++程序设计教程》.清华大学出版社
    [53] [美]Brent,B.Welch. 《Tcl/Tk 组合教程》电子工业出版社 2001

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700