基于H.264的网络视频监控采集系统的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
本课题基于吉林省信息产业厅项目的需求,使用音视频压缩卡设计并实现了一套基于H.264的网络视频监控采集系统。此系统运行后视频画面清晰流畅,视频数据网络传输快,占用网络带宽少,基本满足视频监控的实时性需求。系统结构采用C/S模式(客户端/服务器模式),便于系统的扩展和使用。服务器稳定运行后,以多播的形式通过网络传输视频数据;用户可以随时使用客户端软件通过IP地址动态的连接服务器接收数据流,进行视频图象的显示和文件存储。本文首先介绍了视频监控系统的发展历程、研究现状和发展趋势;并具体介绍了视频压缩标准,尤其是系统所使用的H.264标准;然后重点叙述了系统服务器端、客户端以及播放器的设计与实现,包括系统的功能分析、总体框架设计、服务器端和客户端的总体设计、详细设计以及功能模块的具体实现,并给出了系统使用的主要数据结构和系统优势;最后对系统进行了总结和展望。
It is universally accepted that the vision system is one of the most important organs for human being and 70% of information from the outside world useful for people is acquired by it. Vision information has many advantages such as direct and reliable. Along with the development of economy society, there is a sharp increase of the demand for the safety and spot record alarm system in the fields of bank, electric power, transportation, security, storage, construction and military infrastructure, etc. These requirements accelerate the improvement of video watching and capturing system. And the evolution of the computer which is more and more excellent in its operation speed, capacity and image processing also plays an important role in popularizing video watching and capturing system.
     Traditional analog video watching and capturing system is on its way to digital, networked, and intelligent application, and is gradually replaced by digital system. Digital camera gains abroad utilization due to its performance, low price. And because of the features of flexibility and conveniences, it can be integrated into system. Capture video by using digital camera could greatly decrease the cost of video capture system, and enhance the compatibility and maintainability, and has already been used in PC recently in a large amount with a good effect. In the aspect of network video transferring, the transmission of video and audio through IP networks becomes a tendency. As for it, the association of the monitoring function and the technique of IP networks will be the direction of digital monitoring fields, and with the predominance of the two, it will have a promising future.
     According to the present status and based on the project, the thesis designed network video watching and capturing system run on Windows XP operating system by use of Visual C++. The system deployed client/server mode, and transmitted the image data from server end to client end connected with the server. The thesis, present status and progress tendency of video watching and capturing system were first introduced. And a discussing over the technique of digital video compressing, network transmission was given. Afterwards, the thesis put a focus on the design and analysis of the system, and primary module was realized. What’s more, the system ruuning’s result was also carried out.
     The system was on the platform of Windows XP. Owing to its superiority such as multimedia processing, network function supported by multi-protocol, plug and play of hardware equipment, many application programs are developed based on it.And Visual C++ was adopted as the tool of programming software for the following reasons. First, Visual C++ is the circumstance of C++, and the C++ language is more abroad than other languages in its function and application. Second, Visual C++ is a kind of visible programming tool produced by MicroSoftware, and is not only a compiler but also consists of single modules such as debug and sorts of facilities designed for application program.The system made use of DirectShow which has two primary functions: media replay and media capture to implement network video technology. Therefore it is convenient for any application program which demands the operation of media replay.
     The most important part discussed in the thesis was the detailed design and implement of video watching and capturing system’s server, end, and player. The system was made up of several modules: video capture module from server, H.264 compressing coding module, transmitting module, receiving module of client, H.264 decoding module, display module, information communication module, video playing module, video file cutter file, and video file location module , and so on. Video server included camera and PC. PC took charge of running server software and the registering of former end to video server, and at the same time, it completed the capture, coding, display and storing of local video and packeting it to transmit. The network was LAN and using the RTP and UDP transmition protocol. Client part consisted of computers, client software. By running the software on computers, it provided identity authentication for the former end video server and received compressed video which would be decoded and displayed later from the monitoring system. Video player, which could play the video file, locate the exact frame or time, cut the important parts to files, and make the video file conversion, and so on.
     After that, this paper demonstrated the system's operation and results of the phenomenon by the form of pictures and words and then made the brief introduction about the following advantage:A.good video quality; B.faster network transmission; C.excellent network adaptability and Fault-tolerant ability; D.higher image compression rate.
     To sum up, in this thesis the key technology of video communication was researched, and a deep ananlysis was given to the difficulty of implementing the system. The C/S mode and processing flow of video data stream worked by the thesis will be a reference and have the utility value for the later research. During the develping the project, due to the limited time, complexity of project and the hardware facility, this system is not perfect, and the author will improve it during the afterward work.
引文
[1]孔梁萍.基于 MPEG-4 的网络视频监控系统(客户端),中国知网.2005.7:2-3.
    [2]勒中鑫.数字图像信息处理.北京:国防工业出版社.2003,1.
    [3]沈承东,谭庆平.基于 MPEG4 的数字视频监控系统的设计和实现,计算机工程,2002(8):235-237
    [4]刘甘娜,朱文胜,付先平.多媒体应用基础.北京:高等教育出版社. 2000.6
    [5]姜勇.视频文件的采集与播放,抚顺石油院学报.2001(2):37-40.
    [6]张志芳.基于 MPEG-4 的网络视频监控系统(服务器端),中国知网.2005.7:8-9.
    [7]霍宏涛.数字图像处理.北京:机械工业出版社.2003,5.
    [8]胡栋.静止图像编码的基本方法与国际标准.北京:北京邮电大学出版社,2003.
    [9]ITU-T. Draft ITU-T Recommendation H.263.Jan.1995.
    [10]于洪珍.基于信息融合的工业视频图像压缩编码方法研究,中国图像图形学报.1999(1):21-24
    [11]王见军,毕厚杰.低比特率通信的 H.263 视频编解码.中兴新通讯.1996(2):30-33
    [12]Zhu C. RTP Payloae Format for H.263 Video Streams. Request for Comment2190.ftp://nic.ddn.mil/rfc/rfc2190.txt
    [13]ISO/IEC JTC1/SC29/WG1l Document N4668, Overview of the MPEG-4 Stand-ard. 2002: 556-561.
    [14]陈功,黄祥林,卓力. MPEG4——基于对象的多媒体压缩新标准,测控技术,No.5, 2002: 89-90.
    [15]Lenardo Chiariglione. The MPEG-4 Standard,Joural of Institute of Communication, 1998,19(8)
    [16] Joint Video Team (JVT) of ISO/IEC MPEG and ITU-T VCEG, Document JVT-C167, Joint Committee Draft, May 2002.
    [17]Atul Puri, Xuemin Chen, Ajay Luthra. Video coding using the H.264/MPEG-4 AVC compression standard [J]. Sianal Processing: Image Communication,2004(19): 793-849.
    [18]哈力旦.A. H.264 视频编码的关键技术及算法. 新疆大学学报(自然科学版),2005,22(3): 124-127.
    [19]毕厚杰. 新一代视频压缩编码标准,北京:人民邮电出版社.2005.5.
    [20]lain E.G. Richardson. H.264 and MPEG-4 Video Compression Video Coding for Next-generation Multimedia. Chichester, England: John Wiley & Sons. Ltd, 2003.
    [21]Stephan Wenger. H.264/AVC over IP. IEEE Transactions on circuits and systems for video technology, 2003, 13(7):110-116.
    [22]Thomas wiegand, Gary J. Sullivan, Gisle Bjontegaard, Ajay Luthra. Overview of the H.264/AVC Video Coding Standard. IEEE Transaction on cricuits and systems for video technology, 2003, 13(7): 324-330.
    [23]Joao Ascenso, Fernando Pereira. Drift reduction for a H.264/AVC fine grain scalability with motion compensation architecture. 2004 International Conference on Image Processing (ICIP), 2004, 3(12): 2259-2262.
    [24]牛力,傅韵.VISUAL C++.NET 编程宝典.西安:电子工业出版社。2006.1
    [25]George Shepherd,David Kruglinski.Visual C++ .Net 技术内幕.北京:清华大学出版社.2004.7.
    [26]陈坚,陈伟.Visual C++网络高级编程.北京:人民邮电出版社.2001.12.
    [27]潘爱民著,COM 原理与应用,清华大学出版社,2000.
    [28]Don Box, 潘爱民译.COM 本质论(Essential COM),中国电力出版社,2001,第一版.
    [29]陈孝莲,王萍.环形局域网在网络视频监控中的应用.微型电脑应用, 2002(6):21-23
    [30]朱康辛,李坷,李建华等.利用 IP 多播实现视频监控.计算机工程.2000(10):26-27
    [31]付良,赵鹏.在 Internet 网上提高传输视频实时性的研究.电子技术应用.2000(7):39-57
    [32]张敬辕,谢剑英.基于 Internet 的实时视频信号传输研究进展.通信学报,2001(7):92~99.
    [33]刘严明,李鹏.实用网络编程技术.西安:电子科技大学出版社.1998.6.
    [34]陆其明.DirecShow 开发指南.北京:清华大学出版社.2004.1.
    [35]杭州海康威视数字技术有限公司. DS-40xxHC 卡的 Windows 编程指南 V4.1.2005.3.
    [36]杭州海康威视数字技术有限公司. Hikvision 板卡网络开发包编程手册 V4.6.2005.10.
    [37]杭州海康威视数字技术有限公司. Hikvision H264 播放器编程指南V4.6.2005.10.