多实例srs:srs-srs-dolphin

转载 2016年08月31日 10:38:43

原文地址:https://github.com/ossrs/srs-dolphin


复制黏贴用法


srs-dolphin

The dolphin is a MultipleProcess SRS SRS container, which start multiple SRS in edge mode in seperate process.

About

The dolphin is the most simple MultipleProcess arch for RTMP/HTTP-FLV of SRS.

The srs-sharp is a similar project, but srs-sharp is a HTTP FLV reverse proxy, its performance is great and is's ok for HTTP FLV stream. The bellow table is a comparation between srs-sharp and srs-dolphin:

Project Goal Protocol Performance Deploy
srs-sharp HTTP-FLV HTTP 10k, 300%CPU Manual(*)
srs-dolphin RTMP/HTTP-FLV TCP 20k, 320%CPU Auto(*)

Remark:

  1. Manual Deploy of srs-sharp: User should manually deply the SRS edge, then start srs-sharp to proxy the ports of SRS.
  2. Auto Deploy of srs-dolphin: User only need to start srs-dophin, which will auto manage the SRS.

Usage

Step 1: Prepare SRS:

cd ~ && git clone https://github.com/simple-rtmp-server/srs.git &&
cd ~/srs/trunk && ./configure --with-ffmpeg && make && ./objs/srs -c conf/srs.conf

Remark: We clone the SRS and Dolphin to user home, user can specify others.

Step 2: Clone the srs-dolphin:

cd ~ && git clone https://github.com/simple-rtmp-server/srs-dolphin.git

Step 3: Build and run the srs-dolphin:

cd ~/srs-dolphin/trunk && make && 
./objs/srs_dolphin -w 4 -p 19350 -x 8088 \
    -b ~/srs/trunk/objs/srs -c conf/dolphin.conf \
    -s 1936,1937,1938,1939 -y 8081,8082,8083,8084

Remark: User can specifies the SRS in other valid path.
Remark: The conf/dolphin.conf is a default conf for SRS by dolphin, user can use others.
Remark: Use the command to test your config for SRS in dolphin mode ~/srs/trunk/objs/srs -c conf/dolphin.conf -p 19350 -x 8088, it's ok when your SRS start normally.

Step 4: Publish stream

cd ~/srs/trunk &&
for ((;;)); do
    ./objs/ffmpeg/bin/ffmpeg -re -i ./doc/source.200kbps.768x320.flv \
        -vcodec copy -acodec copy -f flv -y rtmp://127.0.0.1:1935/live/livestream
done

Step 5: Play stream

Origin SRS RTMP stream: rtmp://127.0.0.1:1935/live/livestream
Edge Dolphin RTMP stream: rtmp://127.0.0.1:19350/live/livestream
Edge Dolphin HTTP-FLV stream: http://127.0.0.1:8088/live/livestream.flv

Remark: User can use SB to do the benchmark.

Features

  1. Multiple Processes for SRS edge.
  2. Delivery stream in RTMP.
  3. Delivery stream in HTTP FLV.
  4. [dev] Support HTTP API for Multiple Processes.
  5. [dev] Muktiple Processes for SRS origin.
  6. [dev] Auto fork new process when worker or SRS exit.
  7. [dev] Load balance proxy for RTMP and HTTP-FLV.

Winlin 2015.5


相关文章推荐

SRS进入20K时代,不仅仅是并发

SRS进入20K时代,不仅仅是并发 2015-05-29 winlin SRS 单进程SRS支持7.5k并发,如果单机需要单机100K并发,可以使用多进程SRS,即SRS-DO...

srs代码学习(5)--一些与运营相关的技术点

和大规模运营相关的技术点。我想到的有下面四个 1)vhost 2) edge  3) forword 4) log trace  5)reload 下面来一个一个具体分析...
  • ddr77
  • ddr77
  • 2016年08月31日 10:33
  • 1567

srs之2.0对纯音频的流进行HLS,苹果系统播放卡顿伴有杂音的问题

https://github.com/ossrs/srs/issues/512 lewang321 commented on 26 Oct 2015 拓扑是 RTM...

SRS Launches Comprehensive Suite of Loudness Management Solutions for Broadcast Industry

Tue, 29 Nov 2011 13:00:00 GMT Business Wire English (c) 2011 Business Wire. All Rights Reserved. ...

CRtmpServer转推流到Nginx Rtmp及SRS(SimpleRtmpServer)的经历

本人一直用的是CRtmpServer服务,在CRtmpServer服务中根据自已的想法也加入了许多功能,如通过http接口来加载配置等,苦于不支持HLS,自已添加ts分片水平又有限,思来想去决定借助S...

[.Net Crack]SRS HD Audio Lab Gold 1.1.25.0

前段时间想起来这款音效软件,下载下来使用,音效效果的确提升很多,当然,肯定没有硬件来的好,毕竟只是通过软件优化而已。 下载的是15天试用版本的,网上找了找,没什么好的破解,倒是找到一个导入的注册表,...

SRS流媒体服务器压测RTMP&HLS

在测试音视频直播的时候,往往都是只能对几台设备进行直播,很难做到对流媒体造成压力,下面就介绍一下针对SRS流媒体服务器进行压测的工具: ...

[转] 吴雯:SRS要做3D时代音频标准建立者

CES2011早已落下帷幕,回顾此次展会,SRS技术所推出的世界闻名的音频专利技术受到了与会者广泛关注,特别是针对3D设备加入的3D音效技术更是备受瞩目,在展会上,来自SRS的亚太区市场总监吴雯为天极...

srs 如何集成rannet

编译的问题上一篇已经解决了。 这篇主要解决如何在代码层面来整合。只是大概的框架。还没有完全成熟。 1)增加属于udp的listener类 代码为: struct IRakListenerHan...
  • ddr77
  • ddr77
  • 2016年10月19日 15:19
  • 460

SRS + ffmpeg 推即时视频流

srs: Simple-Rtmp-Server 同类服务器还有,nginx,Red5等等。 项目地址在:https://github.com/ossrs/srs (具体查看官方文档) 获取: git ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:多实例srs:srs-srs-dolphin
举报原因:
原因补充:

(最多只允许输入30个字)