基于RTMP協(xié)議的輕量級視頻服務(wù)器的設(shè)計與實現(xiàn)
發(fā)布時間:2018-05-27 00:01
本文選題:流媒體 + 視頻 ; 參考:《電子科技大學(xué)》2015年碩士論文
【摘要】:計算機(jī)技術(shù)和互聯(lián)網(wǎng)技術(shù)歷經(jīng)幾十年的飛速發(fā)展,現(xiàn)在已經(jīng)深入到了每一個普通民眾的生活之中,使得人們逐步習(xí)慣用互聯(lián)網(wǎng)進(jìn)行彼此聯(lián)絡(luò)。在這樣的大背景下,計算機(jī)和互聯(lián)網(wǎng)技術(shù)交織而產(chǎn)生的流媒體技術(shù)也步入了人們的視野之中,并逐漸獲得廣泛的應(yīng)用。流媒體服務(wù)器的優(yōu)化和研究對流媒體技術(shù)發(fā)展起到至關(guān)重要的作用。與此同時,隨著社會的進(jìn)步,便攜性也成為了服務(wù)器需要滿足的要求。針對目前普通的流媒體服務(wù)器所存在的不足,本課題經(jīng)過認(rèn)真地研究和分析,設(shè)計并實現(xiàn)了一款基于RTMP協(xié)議的輕量級視頻服務(wù)器。本文首先介紹了該課題目前的研究背景,闡述了該研究的必要性,介紹了當(dāng)前國內(nèi)外對該課題各種研究的現(xiàn)狀和進(jìn)度。接下來對流媒體服務(wù)器開發(fā)中要使用到的協(xié)議與技術(shù)進(jìn)行了調(diào)研,其中包括TCP、RTMP協(xié)議,流媒體的傳輸方式和視頻的壓縮編碼技術(shù)。根據(jù)以上重要的技術(shù),本論文提出了一個系統(tǒng)設(shè)計方案。系統(tǒng)主要分為三個層次:數(shù)據(jù)層、控制層、處理層。在提出設(shè)計方案之后,按照既定方案,分模塊、分步對系統(tǒng)中的三層進(jìn)行了具體實現(xiàn),同時對關(guān)鍵的實現(xiàn)部分進(jìn)行了闡述:對關(guān)鍵部分的實現(xiàn)原理部分按照RTMP協(xié)議規(guī)范的內(nèi)容進(jìn)行了分析和說明。在論文的最后,對系統(tǒng)的功能進(jìn)行了全面的測試,主要針對系統(tǒng)的功能測試和性能參數(shù)測試兩個方面來進(jìn)行。本論文經(jīng)過對現(xiàn)行的主流的流媒體技術(shù)進(jìn)行分析和比較,決定采用較為普遍的RTMP協(xié)議作為傳輸協(xié)議,并基于該協(xié)議的RTMP庫,按照B/S模式設(shè)計了系統(tǒng)。視頻采集運用了ffmpeg程序,客戶端登錄使用了MVC模式進(jìn)行開發(fā),登錄認(rèn)證中運用到了SHA1技術(shù)對密碼進(jìn)行單向散列處理之后進(jìn)行保存,解碼播放使用了jwplayer。該系統(tǒng)的主要功能是進(jìn)行小范圍的流媒體分享,以及利用瀏覽器進(jìn)行即時的在線播放。在視頻采集模塊的加入下,還可以應(yīng)用于家庭安全監(jiān)控,實時圖像直播。經(jīng)過多次全面的測試,該系統(tǒng)的傳輸碼率在可以接受的范圍中較為穩(wěn)定,服務(wù)器的CPU占用率在為其設(shè)計的運用場景中也能夠令人滿意,可以保證系統(tǒng)的穩(wěn)定運行。
[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.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2015
【分類號】:TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前1條
1 王嫣;張志強(qiáng);;基于B/S軟件分層體系結(jié)構(gòu)的研究[J];煤炭技術(shù);2012年10期
相關(guān)碩士學(xué)位論文 前1條
1 楊帆;基于J2EE的物流信息管理系統(tǒng)的設(shè)計與實現(xiàn)[D];北京郵電大學(xué);2013年
,本文編號:1939491
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1939491.html
最近更新
教材專著