基于RTSP的H.264實(shí)時(shí)流媒體傳輸方案的研究與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-03-14 09:05
本文選題:流媒體 切入點(diǎn):Live555 出處:《華南理工大學(xué)》2014年碩士論文 論文類(lèi)型:學(xué)位論文
【摘要】:隨著互聯(lián)網(wǎng)的廣泛普及和多媒體技術(shù)的迅速發(fā)展,基于網(wǎng)絡(luò)的流媒體傳輸技術(shù)得到了廣泛的應(yīng)用。如視頻通話、視頻監(jiān)控、視頻點(diǎn)播、網(wǎng)絡(luò)直播、遠(yuǎn)程醫(yī)療等。但互聯(lián)網(wǎng)只提供一種“盡力而為”的服務(wù),在視頻傳輸?shù)倪^(guò)程中,由于網(wǎng)絡(luò)的延時(shí),帶寬的不穩(wěn)定,編碼效率的低下,很容易造成數(shù)據(jù)包的丟失,從而導(dǎo)致視頻播放的失真等問(wèn)題,因此很有必要研究一個(gè)有效的實(shí)時(shí)流媒體傳輸方案來(lái)解決這些問(wèn)題。本文在對(duì)live555進(jìn)行二次開(kāi)發(fā)的基礎(chǔ)上,利用FFMPEG和H.264的高效編解碼技術(shù)以及RTSP和RTCP/RTP的高效網(wǎng)絡(luò)傳輸策略來(lái)實(shí)現(xiàn)了一個(gè)基于RTSP協(xié)議的H.264實(shí)時(shí)流媒體傳輸方案。 本文先是對(duì)流媒體的相關(guān)技術(shù)進(jìn)行了介紹,對(duì)網(wǎng)絡(luò)傳輸協(xié)議進(jìn)行了深入的研究,選擇了RTSP、RTP、RTCP協(xié)議作為網(wǎng)絡(luò)傳輸和控制協(xié)議,H.264和AAC作為主要的視頻、音頻編解碼標(biāo)準(zhǔn)。 其次對(duì)流媒體方案進(jìn)行了比較,選擇了live555和FFMPEG作為主要的技術(shù)框架。在對(duì)live555庫(kù)、FFMPEG庫(kù)和Android系統(tǒng)的架構(gòu)進(jìn)行了簡(jiǎn)要地分析的基礎(chǔ)上,提出了系統(tǒng)的總體框架,并對(duì)服務(wù)器和客戶端的主要模塊進(jìn)行了簡(jiǎn)要介紹。 接著詳細(xì)地分析了實(shí)時(shí)流媒體傳輸系統(tǒng)的服務(wù)器方案,利用RTCP技術(shù)解決了實(shí)時(shí)傳輸?shù)膿砣刂茊?wèn)題,針對(duì)Live555不支持客戶端上傳、MP4文件下發(fā)、實(shí)時(shí)轉(zhuǎn)發(fā)等問(wèn)題,,對(duì)Live555進(jìn)行了二次開(kāi)發(fā),增加了上述功能模塊,并進(jìn)行了多進(jìn)程擴(kuò)展。 然后對(duì)流媒體客戶端的方案進(jìn)行了詳細(xì)介紹,通過(guò)在Android平臺(tái)上移植FFMPEG,結(jié)合Anroid API開(kāi)發(fā)了一個(gè)既支持RTSP上傳又支持RTSP播放的手機(jī)客戶端,通過(guò)采用緩沖隊(duì)列和時(shí)間戳來(lái)解決音視頻同步和播放等問(wèn)題。此外還介紹了音視頻采集模塊,音視頻編碼模塊,客戶端MP4文件解析模塊、音視頻解碼模塊,音視頻播放模塊、音視頻同步模塊的具體實(shí)現(xiàn)。 最后對(duì)系統(tǒng)的硬件和軟件環(huán)境進(jìn)行了介紹,并對(duì)流媒體服務(wù)器和客戶端進(jìn)行了相關(guān)測(cè)試,對(duì)測(cè)試結(jié)果進(jìn)行分析表明,系統(tǒng)具有較好的實(shí)時(shí)性和傳輸質(zhì)量。
[Abstract]:With the wide popularity of the Internet and the rapid development of multimedia technology, streaming media transmission technology based on network has been widely used. However, the Internet only provides a "best effort" service. In the process of video transmission, due to the delay of the network, the instability of the bandwidth and the low coding efficiency, it is easy to cause the data packet to be lost. Therefore, it is necessary to study an effective real-time streaming media transmission scheme to solve these problems. Using the efficient coding and decoding technology of FFMPEG and H.264 and the efficient network transmission strategy of RTSP and RTCP/RTP, a real-time streaming media transmission scheme of H.264 based on RTSP protocol is implemented. In this paper, the related technologies of streaming media are introduced, and the network transmission protocol is deeply studied. RTSP / RTP / RTCP protocol is chosen as the network transmission and control protocol, H.264 and AAC as the main video and audio coding and decoding standards. Secondly, the streaming media scheme is compared, and live555 and FFMPEG are selected as the main technical framework. Based on the brief analysis of the framework of live555 library FFMPEG library and Android system, the overall framework of the system is put forward. The main modules of server and client are introduced briefly. Then, the server scheme of real-time streaming media transmission system is analyzed in detail, and the congestion control problem of real-time transmission is solved by using RTCP technology. Aiming at the problem that Live555 does not support uploading MP4 files, real-time forwarding, etc. The secondary development of Live555 is carried out, the above function module is added, and the multi-process extension is carried out. Then, the scheme of streaming media client is introduced in detail. By transplanting FFMPEGon on Android platform and combining with Anroid API, a mobile phone client which supports both RTSP upload and RTSP playback is developed. Buffer queue and timestamp are used to solve the problems of audio and video synchronization and playback. In addition, audio and video acquisition module, audio and video coding module, client MP4 file parsing module, audio and video decoding module, audio and video playing module are also introduced. Audio and video synchronization module implementation. Finally, the hardware and software environment of the system are introduced, and the related tests on streaming media server and client are carried out. The analysis of the test results shows that the system has good real-time and transmission quality.
【學(xué)位授予單位】:華南理工大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TN919.8
【參考文獻(xiàn)】
相關(guān)期刊論文 前2條
1 郭超;;IP組播技術(shù)在視頻監(jiān)控系統(tǒng)中的應(yīng)用[J];北方交通;2010年02期
2 杜彬;王淑玲;楊海波;;RTSP流媒體服務(wù)器性能測(cè)試工具[J];計(jì)算機(jī)系統(tǒng)應(yīng)用;2011年03期
本文編號(hào):1610524
本文鏈接:http://sikaile.net/kejilunwen/wltx/1610524.html
最近更新
教材專(zhuān)著