下载
此乃开源软件,故github上开源,此项目亦有主站,资源颇多,文档详细透彻,
安装
git clone https://github.com/xanview/live555
cd live555
./genMakefiles linux
make -j4
测试
live555MediaServer
./live555MediaServer
LIVE555 Media Server
version 0.88 (LIVE555 Streaming Media library version 2016.01.29).
Play streams from this server using the URL
//推送的rtsp流
rtsp://115.28.158.166/<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.
//默认80端口,否则被占用
(We use port 80 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
此时可接收试试
其它测试
在testProgs
文件夹中,有诸多生成的文件