【正文】
密級(jí): 保密期限: 工程碩士研究生學(xué)位論文 題目: 基于 Android 設(shè)備的音視頻實(shí)時(shí) 監(jiān)控系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn) 學(xué) 號(hào): 08R5328 姓 名: 張紹起 專 業(yè): 軟件工程 導(dǎo) 師: 林秀琴 學(xué) 院: 計(jì)算機(jī)學(xué)院 年 月 獨(dú)創(chuàng)性(或創(chuàng)新性)聲明 本人聲明所呈交的論文是本人在導(dǎo)師指導(dǎo)下進(jìn)行的研究工作及取得的研究成果。盡我所知,除了文中特別加以標(biāo)注和致謝中所羅列的內(nèi)容以外,論文中不包含其他人已經(jīng)發(fā)表或撰寫過的研究成果,也不包含為獲得北京郵電大學(xué)或其他教育機(jī)構(gòu)的學(xué)位或證書而使用過的材料。與我一同工作的同志對(duì)本研究所做的任何貢獻(xiàn)均已在論文中作了明確的說明并表示了謝意。 申請學(xué)位論文與資料若有不實(shí)之處,本人承擔(dān)一切相關(guān)責(zé)任。 本人簽名: 日期: 關(guān)于論文使用授權(quán)的說明 本人完全了解北京郵電大學(xué)有關(guān)保留和使用學(xué)位論文的規(guī)定,即:研究生在校攻讀學(xué)位期間論文工作的知識(shí)產(chǎn)權(quán)單位屬北京郵電大學(xué)。學(xué)校有權(quán)保留并向國家有關(guān)部門或機(jī)構(gòu)送交論文的復(fù)印件和磁盤,允許學(xué)位論文被查閱和借閱;學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容,可以允許采用影印、縮印或其它復(fù)制手段保存、匯編學(xué)位論文。 本學(xué)位論文不屬于保密范圍,適用本授權(quán)書。 本人簽名: 日期: 導(dǎo)師簽名: 日期: 基于 Android 設(shè)備的音視頻實(shí)時(shí)監(jiān)控系統(tǒng) 的設(shè)計(jì)與實(shí)現(xiàn) 摘 要 出于安全等方面考慮,日常生活中有很多需要用到監(jiān)控的地方,如交通、電力、通信、金融、廠礦、場館、森林防火、遠(yuǎn)程指揮,甚至是家庭安防。傳統(tǒng)的監(jiān)控系統(tǒng)一般需要安裝專門的傳輸設(shè)備和網(wǎng)絡(luò) , 價(jià)格昂貴,難以實(shí)現(xiàn)遠(yuǎn)距離傳輸。 另一方面,隨著我國 3G 通信網(wǎng)絡(luò)的全面普及,通信網(wǎng)絡(luò)數(shù)據(jù)承載能力取得了重大進(jìn)展。在此基礎(chǔ)上,各 種智能手機(jī)、平板電腦等設(shè)備迅速得到了普及。尤其是以 Android 作為操作系統(tǒng)的智能設(shè)備,如雨后春筍般一夜之間遍地開花。 Android 系統(tǒng)具有廉價(jià)、開放、兼容性強(qiáng)、高效等特點(diǎn),特別適合作為民用智能終端設(shè)備的操作系統(tǒng)。 本文所述內(nèi)容,是研究并實(shí)現(xiàn)一種使用 Android 系統(tǒng)作為監(jiān)控設(shè)備、通過 互聯(lián)網(wǎng)和 3G 通信網(wǎng)絡(luò)進(jìn)行數(shù)據(jù)傳送的音視頻實(shí)時(shí)監(jiān)控系統(tǒng)。這個(gè)系統(tǒng)具有廉價(jià)、方便遠(yuǎn)程監(jiān)控、安裝簡單、無需安裝專用設(shè)備網(wǎng)絡(luò)等特點(diǎn),它可以在某些對(duì)圖像清晰度要求不是很高的民用領(lǐng)域內(nèi)替代傳統(tǒng)監(jiān)控系統(tǒng)。 本文通過分析系統(tǒng)應(yīng)用場景,明確技術(shù) 目標(biāo)和關(guān)鍵技術(shù)參數(shù),對(duì)本監(jiān)控系統(tǒng)所涉及的技術(shù)層次進(jìn)行劃分,選定技術(shù)模型,確定層次間接口,然后自下而上逐步進(jìn)行研究和開發(fā)。在此過程中,為了使系統(tǒng)具有較強(qiáng)的兼容性和可擴(kuò)展性,力求遵循相關(guān)國際標(biāo)準(zhǔn),采用眾所周知的編碼格式和傳輸協(xié)議。本文所設(shè)計(jì)的系統(tǒng)主要由 Android 音視頻受監(jiān)控端和流媒體服務(wù)器端兩部分構(gòu)成,主監(jiān)控端可以使用 Real Player等支持 RTSP 協(xié)議的通用流媒體播放器,也可以使用專門進(jìn)行開發(fā)的客戶端進(jìn)行監(jiān)控。系統(tǒng)涉及到的技術(shù)包括 FFmpeg 移植、 Android 音視頻采集、 編碼、 編 碼、 RTP/RTCP(實(shí)時(shí)傳輸協(xié)議 /實(shí)時(shí)控制協(xié)議)、 RTSP/SDP(實(shí)時(shí)流協(xié)議 /會(huì)話描述協(xié)議) UPnP(通用即插即用協(xié)議)等。 關(guān)鍵詞: Android 音視頻編解碼 實(shí)時(shí)監(jiān)控 流媒體服務(wù)器 DESIGN AND IMPLEMENTATION OF AUDIO AND VIDEO REALTIME MONITORING SYSTEM BASED ON ANDROID DEVICES ABSTRACT Due to security issues, there are many monitoring systems in our life. They are widely used in many fields, such as triffic, power, munication, banking, factory, mine, venues, forest fire prevention, long distance mand, and even family security. Generally, special transport equipments and work must be deployed for traditional monitoring systems. It costs much and is hard to transport to a long distance. On the other hand, since 3G bees overall popular in China, datacarrying capacity of the munication work has made significant progress. As a result, a variety of smart phones, tablet puters and other equipments quickly get the popularization. Android devices are the most typical case. They quickly occupied the market in every corner. Android is much suitable for being civil intelligent terminal device39。s operating system as it is lowpriced, open, patible and efficient. This paper studies on a monitoring system which captures media by Androiddevice and transports them over inter and 3G munication work. This system features as inexpensive, remote control, simple installation and independent from exclusive work devices. If the image quality is not the most important factor, traditional civil monitoring system can absolutely be replaced with this system. In this paper, the application scenarios of the system is analyzed, technical objectives and norms are given and the system is planned to develop with a hierarchical model. It is developed bottomup after technical model is chosen and interfaces between layers are defined. International standards are used and wellknown codecs and transport protocols are implemented overall to make the system patible and flexible. This system is posed of both Androidbased monitoring terminal and streaming server. To monitor, one can simply use a streaming player which support RTSP, . Real Player. As well, a customized client can be developed for this. This system uses many technologies, such as FFmpeg transplant, audio and video capture on Android, codec, codec, RTP/RTCP (Realtime Transport Protocol/Real Time Control Protocol), RTSP/SDP (RealTime Streaming Protocol/Session Description Protocol), UPnP (Universal Plug and Play), etc. KEY WORDS: Android, Codec, Realtime monitoring, Streaming server i 目 錄 第一章 引言 .................................................................................................................... 1 課題背景 ............................................................................................................... 1 課題任務(wù) ............................................................................................................... 2 論文結(jié)構(gòu) ............................................................................................................... 2 第二章 相關(guān)技術(shù) ............................................................................................................. 4 音頻編碼 ............................................................................................................... 4 視頻編碼 ............................................................................................................... 5 媒體傳輸協(xié)議 ........................................................................................................ 6 媒體傳輸控制協(xié)議 ................................................................................................. 7 RTSP 協(xié)議 ....................................................................................................... 7 SDP 協(xié)議 ......................................................................................................... 8 媒體存儲(chǔ) ............................................................................................................... 8 本章小結(jié) ............................................................................................................... 9 第三章 需求分析與架構(gòu)設(shè)計(jì) ...........................................................................................10 需求分析 ..