環(huán)境
- Mac 10.12
搭建DDS失敗,安裝上之后,網(wǎng)頁打開不開
方案
live555 Media Server
(Mac) VLC(iOS Client)
步驟
-
live555 Media Server
下載 - 變成可執(zhí)行文件
chmod 777 live555MediaServer
- 創(chuàng)建個文件夾,把
live555MediaServer
放進去涝影,執(zhí)行命令,看到一堆信息
? Live55Server ./live555MediaServer
LIVE555 Media Server
version 0.89 (LIVE555 Streaming Media library version 2016.05.16).
Play streams from this server using the URL
rtsp://192.168.123.244:8554/<filename>
where <filename> is a file present in the current directory.
Each file's type is inferred from its name suffix:
".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
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
- 找個.264文件或者其他支持的格式放在跟
live555MediaServer
同目錄下 - iphone打開
VLC
圖標(biāo)是這個
輸入Mac
的ip
地址,地址來源于上邊的Play streams from this server using the URL
之后的地址
打開網(wǎng)絡(luò)串流笛粘,iPhone7
等了大概5-10秒,視頻開始播放远舅。
很多使用第三方或者其他
Demo
生成的h264
裸流后綴是.h264
,記住要改成.264
才能被live555MediaServer
識別闰蛔。