一、直接下载live555MediaServer可执行程序
二、Live555在linux平台上编译:
下载源码包:http://www.live555.com/liveMedia/
live555-latest.tar.gz
1. 解压。
2. 生成Makefile 文件。
./genMakefiles linux
3. 编译。在live/mediaServer 目录下生成live555MediaServer可执行程序
Make
三、运行:
./live555MediaServer
LIVE555 Media Server
version 0.78(LIVE555 Streaming Media library version 2013.08.16).
Play streams from this server using the URL
rtsp://192.168.190.128:8554/<filename>
where <filename> is a file present in the currentdirectory.
Each file's type is inferred from its name suffix:
".264" => a H.264 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
".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 additionaldocumentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, orfor HTTP live streaming (for indexed Transport Stream files only).)
四、测试:
1、rtsp://10.148.6.83:8554/123.mp3可以播放MP3音频
2. rtsp://10.148.6.83:8554/video_mpeg2.ts 可以播放mpeg2 纯视频流
3. rtsp://10.148.6.83:8554/mpeg2_aac.ts 可以播mpeg2+aac 的ts流
4.测试h264的视频都播放不了,用vlc最新的版本2.0.8也是一样,不知道是狸窝转码器的问题还是live555的问题?
5. rtsp://10.148.6.83:8554/mpeg4_aac.mkv mkv播放也不行