crtmpserver流媒体服务学习(二)
转自:http://blog.csdn.net/wutong_login/article/details/7612477有所修改
源码下载:http://pan.baidu.com/s/1mggCkOC 注:下载后请在linux下执行 tar -xzvf 下载文件名 进行解压
前言
- 支持推送给它的rtmp流的接收与播放器请求的分发;
- rtmp流媒体服务器树状网络集群的构建;
- 支持iPhone,Android。
下面是官网首页的功能与应用介绍(http://www.rtmpd.com/)
crtmpserver it is a high performance streaming server able to stream (live or recorded) in the following technologies:
- To and from Flash (RTMP,RTMPE, RTMPS, RTMPT, RTMPTE)
- To and from embedded devices: iPhone, Android
- From surveillance cameras
- IP-TV using MPEG-TS and RTSP/RTCP/RTP protocols
Also, crtmpserver can be used as a high performance rendes-vous server. For example, it enables you to do:
- Audio/Video conferencing
- Online gaming
- Online collaboration
- Simple/complex chat applications
- #tar -zxvf cmake-2.8.7.tar.gz
- #cd cmake-2.8.7
- #./bootstrap
- #gmake
- #make install
- #tar -zxvf openssl-0.9.8t.tar.gz
- #cd openssl-0.9.8t
- #./Configure
- #make .
- #make install
- #svn co --username anonymous --password "" https://svn.rtmpd.com/crtmpserver/branches/1.0 crtmpserver
- #cd crtmpserver
- #sh ./cleanup.sh
- #cd builders/cmake
- #cmake .
- #make
- #./crtmpserver/crtmpserver ./crtmpserver/crtmpserver.lua
default=true,
acceptors =
{
{
ip="0.0.0.0",
port=80,
protocol="inboundRtmp"
},
{
ip="0.0.0.0",
port=1935,
protocol="inboundRtmp"
},
... }
}
问题:
目前下载的crtmpserver基本不能通过编译,我代码做了一点修改同时修改了配置,支持接收udp的ts流
注:ts的访问地址:当发送组播流后,见crtmpserver的输出有ts_x_xxx_xxx,访问地址为rtmp://yourip/flvplayback/ts_x_xxx_xxx
第一个x代表ts中的流的数量,后面的是视频音频的pid
浙公网安备 33010602011771号