標籤: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