live555服务器测试

来源:互联网 发布:上海知楚王琦 编辑:程序博客网 时间:2024/06/08 05:10

系统信息MAC OSX 10.11.6。
从地址http://www.live555.com/liveMedia/public/下载源代码,在命令行进入到源码根目录,执行make install编译安装,安装目录在/usr/local/bin。
和源码下载目录一起的还有一些用来测试的音视频文件,下载test.264到刚才的安装目录下,然后执行live555MediaServer就启动了服务器。

stelladeMacBook-Air:mediaServer stellazhou$ live555MediaServerLIVE555 Media Server    version 0.90 (LIVE555 Streaming Media library version 2017.07.18).Play streams from this server using the URL    rtsp://192.168.0.107: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) fileSee 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).)

然后在VLC中File->Open Network中输入rtsp地址,就可以看到视频了。
这里写图片描述