視頻轉(zhuǎn)碼傳輸系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-01-04 20:31
本文關(guān)鍵詞:視頻轉(zhuǎn)碼傳輸系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 出處:《西安電子科技大學(xué)》2014年碩士論文 論文類型:學(xué)位論文
更多相關(guān)文章: FFMPEG 視頻轉(zhuǎn)碼 AVS RTP Web Service
【摘要】:隨著多媒體通信技術(shù)的日新月異,視頻編解碼技術(shù)、視頻網(wǎng)絡(luò)傳輸技術(shù)和網(wǎng)絡(luò)視頻監(jiān)控技術(shù)得到了飛速發(fā)展,根據(jù)各種設(shè)備和播放軟件的不同,人們對(duì)于網(wǎng)絡(luò)視頻的實(shí)時(shí)轉(zhuǎn)碼傳輸播放,包括格式、分辨率、碼率、幀率等的轉(zhuǎn)換都有不同需求,這就需要一種完善的視頻處理系統(tǒng),同時(shí)隨著平安社會(huì)的建立,隨時(shí)、隨地的實(shí)時(shí)監(jiān)控成為了現(xiàn)階段發(fā)展的一個(gè)重點(diǎn)。本文從以上實(shí)際出發(fā),在編解碼理論和Web服務(wù)的支撐下,研究和開發(fā)了基于Windows平臺(tái)的視頻轉(zhuǎn)碼傳輸系統(tǒng)。本文首先分析了FFMPEG源碼庫的結(jié)構(gòu),通過FFMPEG提供的編解碼模塊和接口函數(shù)設(shè)計(jì)了本文所需的轉(zhuǎn)碼模塊。由于FFMPEG不支持H.264和AVS(Audio Video Coding Standard)的編碼,因此通過數(shù)據(jù)結(jié)構(gòu)的建立實(shí)現(xiàn)了H.264和AVS外部編碼庫在FFMPEG中的擴(kuò)展。同時(shí)FFMPEG不支持AVS的封裝與解封裝,所以本文基于RTP(Real-time Transport Protocol)協(xié)議設(shè)計(jì)了AVS視頻流的封裝和解封裝模塊,并通過數(shù)據(jù)結(jié)構(gòu)的建立和接口函數(shù)的調(diào)用實(shí)現(xiàn)了AVS解封裝模塊在FFMPEG中的擴(kuò)展。然后設(shè)計(jì)了通用轉(zhuǎn)碼接口函數(shù),為后續(xù)Web服務(wù)的建立提供方便。通過對(duì)上述模塊的測試,結(jié)果表明:轉(zhuǎn)碼模塊支持H.264、H.263、MPEG-4和AVS四種視頻流的格式、碼率、幀率及分辨率之間的相互轉(zhuǎn)換。最后,基于上述通用轉(zhuǎn)碼接口函數(shù),采用Web服務(wù)的方式,本文創(chuàng)建了源端和轉(zhuǎn)碼端業(yè)務(wù)模塊,利用gSOAP工具對(duì)源端服務(wù)和轉(zhuǎn)碼端服務(wù)進(jìn)行了部署,設(shè)計(jì)了客戶端的控制程序,通過TCP(Transmission Control Protocol)協(xié)議的socket編程實(shí)現(xiàn)了消息傳輸,同時(shí)通過python語言創(chuàng)建了客戶端用戶界面,完成了基于Windows平臺(tái)的視頻轉(zhuǎn)碼傳輸系統(tǒng)的總體設(shè)計(jì),并對(duì)各個(gè)模塊的實(shí)現(xiàn)進(jìn)行了詳細(xì)的介紹和說明。本客戶端軟件能夠提供簡單、友好、易用的操作界面。系統(tǒng)經(jīng)過實(shí)際測試,在客戶機(jī)的控制下,源端對(duì)本地視頻流文件或者監(jiān)控視頻進(jìn)行實(shí)時(shí)播放和傳輸,轉(zhuǎn)碼端實(shí)時(shí)接收、轉(zhuǎn)碼和傳輸,客戶機(jī)進(jìn)行實(shí)時(shí)播放,具有隨時(shí)開啟和隨時(shí)停止的功能。分析表明:在無誤碼環(huán)境下,支持高清視頻流25fps的轉(zhuǎn)碼和流暢播放,并且分辨率為720P以下的延時(shí)小于1s,分辨率為720P和1080P的時(shí)延在1.5s以內(nèi),同時(shí)整個(gè)視頻轉(zhuǎn)碼傳輸系統(tǒng)運(yùn)行穩(wěn)定。
[Abstract]:With the development of multimedia communication technology change rapidly, video codec technology, video transmission technology and video surveillance technology has been rapid development, according to a variety of devices and playback software, people in the network video transmission and playback of real-time transcoding, including format, resolution, frame rate conversion rate, etc. have different needs, which requires a perfect video processing system, and with the establishment of the peace society, at any time, anywhere real-time monitoring has become a focus of the present stage of development. This article starts from the reality, in the coding and decoding theory and Web service support, research and development of video transcoding transmission system based on Windows platform. This paper first analysis the structure of the FFMPEG source library, provided by FFMPEG codec module and interface function module design transcoding needed in this paper. Because the FFMPEG does not support H.264 and AV S (Audio Video Coding Standard) encoding, so the data structure to realize the expansion of external H.264 and AVS encoding Library in FFMPEG. At the same time, FFMPEG does not support AVS encapsulation and de encapsulation, so this paper is based on RTP (Real-time Transport Protocol) protocol to design the encapsulating module of AVS video stream, and realize the extended AVS solution package module in FFMPEG through the establishment of data structure and interface function call. Then the design of the general transcoding interface function, established for the subsequent Web service to provide convenient. Based on the module test results show that the transcoding module supports H.264, H.263, MPEG-4 and AVS four video streams format, rate, conversion between frame rate and resolution. Finally, the universal transcoding interface function based on using Web services, this paper creates the source and end transcoding service module, using gSOAP The tool service source and transcoding end services were deployed, the control program was designed by the client, TCP (Transmission Control Protocol) protocol socket to realize message transmission, at the same time through the python language to create a client user interface, complete the overall design of video transcoding transmission system based on Windows platform, and the realization of each module is introduced and explained. The client software can provide a simple, friendly, easy to use interface system. After the actual test, under control of the client, the source of the video stream files or video playback and real-time transmission, the receiving end real time transcoding, transcoding and transmission of customer for real-time playback, and is open at any time at any time to stop function. Analysis shows that in the error free environment, support 25FPS HD video stream transcoding and smooth playback, and And the delay of the resolution is below 720P is less than 1s, the time delay of 720P and 1080P is within 1.5s, and the whole video transcoding system is stable.
【學(xué)位授予單位】:西安電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TN919.81
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 遠(yuǎn)渡重洋;;手機(jī)視頻轉(zhuǎn)碼也要門當(dāng)戶對(duì)[J];電腦迷;2011年18期
2 王],
本文編號(hào):1379997
本文鏈接:http://sikaile.net/kejilunwen/wltx/1379997.html
最近更新
教材專著