android-vlc for rtsp build OK

來源:互聯網
上載者:User

標籤:des   android   style   http   tar   com   

最近研究 rtsp http stream 流擷取方式 

vlc over live555  是個非常不錯的選擇,當然了 andorid framework av也是支援rtsp http的,同樣不錯的選擇

1.編譯

https://wiki.videolan.org/AndroidCompile

我是ubuntu 12.04 可能是環境安裝的一些東西比較好的緣故吧,呃,貌似還有一個必備條件,網路。如果沒有這個你會遇到

莫名奇妙的問題的。我以前編譯這個就不支援rtsp很費解

直接按照上面的步驟就可以完美編譯,有些下載死活不走的tar包可以自己下載了放到vlc/contrib/tarballs/ 裡面,下次再啟動

./compile 它自然就不再下載了

2.測試

live555 有個mediaserver 直接支援很多封包流的rtsp服務,

".264" => a H.264 Video Elementary Stream file
".265" => a H.265 Video Elementary Stream file
".aac" => an AAC Audio (ADTS format) file
".ac3" => an AC-3 Audio file
".amr" => an AMR Audio file
".dv" => a DV Video file
".m4e" => a MPEG-4 Video Elementary Stream file
".mkv" => a Matroska audio+video+(optional)subtitles file
".mp3" => a MPEG-1 or 2 Audio file
".mpg" => a MPEG-1 or 2 Program Stream (audio+video) file
".ogg" or ".ogv" or ".opus" => an Ogg audio and/or video file
".ts" => a MPEG Transport Stream file
(a ".tsx" index file - if present - provides server ‘trick play‘ support)
".vob" => a VOB (MPEG-2 video with AC-3 audio) file
".wav" => a WAV Audio file
".webm" => a WebM audio(Vorbis)+video(VP8) file

如果你是在沒有 可以使用ffmpeg或者  avconv 轉化一個,非常簡單

avconv -i 你的檔案 你輸出的檔案.副檔名

安裝VLC-debug.apk 到手機上

使用wireshark 抓包分析,mediaserver確實是走的rtsp over tcp

3.VLC-debug.apk,收了點分大家見諒

http://download.csdn.net/detail/green369258/7504483

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.