Skip to content

DeliveryRTMP

winlin edited this page Mar 10, 2014 · 20 revisions

分发RTMP流

SRS(Simple RTMP Server)分发RTMP是核心功能,srs的主要定位就是分发RTMP低延时流媒体,同时支持分发HLS流。

配置RTMP流

SRS只需要配置vhost就可以支持RTMP(vhost内容参考vhost):

# srs.conf
vhost __defaultVhost__ {
}

启动服务器:./objs/srs -c srs.conf

推送RTMP流

可以使用支持RTMP输出的编码器,譬如FMLE。在FMS URL中输入vhost/app,在Stream中输入流名称。譬如:

# 譬如RTMP流:rtmp://192.168.1.170/live/livestream
FMS URL: rtmp://192.168.1.170/live
Stream: livestream

RTMP的URL规则,Vhost规则,参考:RTMP URL&Vhost

部署分发RTMP流的实例,参考:Usage: RTMP

如下图所示: FMLE推流到SRS

观看RTMP流

可以使用支持RTMP流的播放器播放,譬如vlc/flash player,播放地址:rtmp://192.168.1.170/live/livestream

RTMP流的低延时配置

RTMP流的延时在1-3秒,比HLS的延时更靠谱,低延时的配置参考:低延时

Winlin

Welcome to SRS wiki!

SRS 5.0 wiki

Please select your language:

SRS 4.0 wiki

Please select your language:

SRS 3.0 wiki

Please select your language:

SRS 2.0 wiki

Please select your language:

SRS 1.0 wiki

Please select your language:

Clone this wiki locally