APP下载

基于RTMFP协议的视频监控系统设计与实现

2016-04-11陆莉莉裴斌张向通孙延鹏季一木

电脑知识与技术 2016年4期

陆莉莉+裴斌+张向通+孙延鹏+季一木

摘要:RTMFP(RealTime Media Flow Protocol,实时媒体流协议)是一种基于UDP的支持P2P安全协议。为了更好地满足视频监控流的安全性和实时性,文中设计一种基于RTMFP的视频监控系统服务端和客户端,并重点介绍了平台的配置搭建、视频流编解码、视频流发布流程和视频流文件控制等模块的设计和实现。

关键词:对等计算;视频监控;流媒体

中图分类号:TP37 文献标识码:A 文章编号:1009-3044(2016)04-0208-03

Research of the Application and Analysis for Flash P2P Protocol

LU Li-li1,PEI Bing1,SUN Yan-peng2,ZHANG Xiang-dong1,JI Yi-mu2

(1.College of Software, Nanjing College of Information Technology, Nanjing 210046, China; 2.College of Computer, Nanjing University of Posts and Telecommunications, Nanjing 210023, China)

Abstract:RTMFP (Media Flow Protocol RealTime) was a kind of security protocol based on UDP and supported for P2P. In order to better meet the requirements of the safety and real-time of video monitoring, a video monitoring system server and client based on RTMFP was designed, and introduced the design and implementation of modules in the system, such as the configuration and building of the platform, video stream encoding and decoding, video streaming delivery process, video stream file control, and so on.

Key words:Peer to Peer; video control; flow media

1 背景

RTMFP使用UDP传输数据以提高数据传输速度,并采用类似TCP的连接建立方式,保证连接的可靠性[1]。FLASH P2P是由Adobe公司开发的基于Flash平台实现的P2P技术,该技术基于RTMFP [2],RTMFP协议为直播和实时通信程序提供了高质量通信解决方案。

目前,RTMFP协议用在视频流通信中,主要是用于视频播放系统和视频点播系统[3]。但是视频监控是当前物流、交通、智慧小区和公安等应用必备支撑技术之一,无线技术、P2P技术和EPON等[4-6]技术都应用到视频监控系统中,但是这些监控系统还是基于传统的RTMP(RealTime Media Protocol,实时媒体流协议),由于视频监控内容涉及用户隐私,而RTMFP协议在传统P2P和RTMP协议基础上引入了安全机制[7],所以基于RTMFP协议搭建视频监控平台具有很好的创新性和应用价值。在FLASH P2P 技术中,两个节点经过服务器验证后可以彼此直接通信,降低了服务器端的带宽需求。所以此方案很适合于大范围的部署应用,例如企业私有视频点播(VOD)系统、实时视频监控、音视频聊天和多人游戏等。RTMFP因为使用UDP封装,在提升传输速度的同时,也需要通过两个功能提高连接的可靠性。……

登录APP查看全文