live555架设rtsp服务器

来源:互联网 发布:阿里软件的网站 编辑:程序博客网 时间:2024/05/16 15:03


直接下载或是编译live555库

执行下面的命令行,即可以开启流媒体服务

./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.11.51: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).)


将要播的媒体放到 live555MediaServer同级目录下,如

-rw-r--r--@ 1 zzx  staff   730539  5 10 14:00 slamtv10.264

-rw-r--r--@ 1 zzx  staff  5029148  5 10 14:05 slamtv60.264

-rw-r--r--@ 1 zzx  staff  2680806  5 10 14:02 tc10.264

-rw-r--r--@ 1 zzx  staff  5029148  5 10 14:06 test.264

-rw-r--r--@ 1 zzx  staff   748689  5 10 13:59 test.aac

-rw-r--r--@ 1 zzx  staff  5814485  5 10 14:07 wwe.m4e


客户端

使用vlc 打开网络流,如下,即可看下流

rtsp://192.168.11.51:8554/slamtv60.264


0 0
原创粉丝点击