基于RTMP协议的轻量级视频服务器的设计与实现
发布时间:2018-05-27 00:01
本文选题:流媒体 + 视频 ; 参考:《电子科技大学》2015年硕士论文
【摘要】:计算机技术和互联网技术历经几十年的飞速发展,现在已经深入到了每一个普通民众的生活之中,使得人们逐步习惯用互联网进行彼此联络。在这样的大背景下,计算机和互联网技术交织而产生的流媒体技术也步入了人们的视野之中,并逐渐获得广泛的应用。流媒体服务器的优化和研究对流媒体技术发展起到至关重要的作用。与此同时,随着社会的进步,便携性也成为了服务器需要满足的要求。针对目前普通的流媒体服务器所存在的不足,本课题经过认真地研究和分析,设计并实现了一款基于RTMP协议的轻量级视频服务器。本文首先介绍了该课题目前的研究背景,阐述了该研究的必要性,介绍了当前国内外对该课题各种研究的现状和进度。接下来对流媒体服务器开发中要使用到的协议与技术进行了调研,其中包括TCP、RTMP协议,流媒体的传输方式和视频的压缩编码技术。根据以上重要的技术,本论文提出了一个系统设计方案。系统主要分为三个层次:数据层、控制层、处理层。在提出设计方案之后,按照既定方案,分模块、分步对系统中的三层进行了具体实现,同时对关键的实现部分进行了阐述:对关键部分的实现原理部分按照RTMP协议规范的内容进行了分析和说明。在论文的最后,对系统的功能进行了全面的测试,主要针对系统的功能测试和性能参数测试两个方面来进行。本论文经过对现行的主流的流媒体技术进行分析和比较,决定采用较为普遍的RTMP协议作为传输协议,并基于该协议的RTMP库,按照B/S模式设计了系统。视频采集运用了ffmpeg程序,客户端登录使用了MVC模式进行开发,登录认证中运用到了SHA1技术对密码进行单向散列处理之后进行保存,解码播放使用了jwplayer。该系统的主要功能是进行小范围的流媒体分享,以及利用浏览器进行即时的在线播放。在视频采集模块的加入下,还可以应用于家庭安全监控,实时图像直播。经过多次全面的测试,该系统的传输码率在可以接受的范围中较为稳定,服务器的CPU占用率在为其设计的运用场景中也能够令人满意,可以保证系统的稳定运行。
[Abstract]:After decades of rapid development of computer technology and Internet technology, it has now penetrated into the lives of every ordinary people, making people gradually used to use the Internet to communicate with each other. Under this background, streaming media technology, which is produced by the interweaving of computer and Internet technology, has also stepped into people's field of vision, and has gradually been widely used. The optimization and research of streaming media server plays an important role in the development of streaming media technology. At the same time, with the progress of society, portability has become the requirement of server. Aiming at the shortcomings of the current streaming media server, a lightweight video server based on RTMP protocol is designed and implemented after careful research and analysis. This paper first introduces the research background of the subject, expounds the necessity of the research, and introduces the current situation and progress of various researches on the subject at home and abroad. Then, the protocols and technologies used in the development of streaming media server are investigated, including TCP / RTMP protocol, streaming media transmission mode and video compression and coding technology. According to the above important technology, this paper puts forward a system design scheme. The system is divided into three levels: data layer, control layer and processing layer. After putting forward the design scheme, according to the established scheme, the three layers of the system are realized step by step. At the same time, the key implementation part is described. The implementation principle of the key part is analyzed and explained according to the content of RTMP protocol specification. At the end of the thesis, the function of the system is tested, which is mainly aimed at the function test and the performance parameter test. Through the analysis and comparison of the current mainstream streaming media technology, this paper decides to adopt the more general RTMP protocol as the transmission protocol, and based on the RTMP library of the protocol, designs the system according to the B / S mode. The ffmpeg program is used in video collection, the client login is developed in MVC mode, the SHA1 technology is applied to the one-way hash processing of password in login authentication, and the jwplayer is used to decode and play. The main function of the system is to share streaming media on a small scale, and to use the browser for real-time online playback. With the addition of video capture module, it can also be used in home security monitoring and real-time image broadcast. After many comprehensive tests, the transmission rate of the system is stable in the acceptable range, and the CPU occupancy rate of the server can be satisfied in the application scenario designed for the system, which can ensure the stable operation of the system.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2015
【分类号】:TP393.09
【参考文献】
相关期刊论文 前1条
1 王嫣;张志强;;基于B/S软件分层体系结构的研究[J];煤炭技术;2012年10期
相关硕士学位论文 前1条
1 杨帆;基于J2EE的物流信息管理系统的设计与实现[D];北京邮电大学;2013年
,本文编号:1939491
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1939491.html