srs之ingest

1.使用ingest功能之前必须编译开启ingest

[root@localhost trunk]# ./configure --disable-all --with-ssl --with-hls --with-nginx --with-ffmpeg --with-transcode --with-dvr --with-ingest && make

2.配置ingest.conf

listen              1935;
max_connections     1000;
vhost __defaultVhost__ {
    ingest 540_10 {
        enabled      on;
        input {
            type    stream;
            url     http://streaming.hrbtv.net/live/6425a58c205b4665b320dfb52572ccca?fmt=h264_500k_flv;

        }
        ffmpeg      /home/srs/srs-2.0release/trunk/objs/ffmpeg/bin/ffmpeg;
        engine l0{
            enabled         on;
vfilter {
   v quiet;
}
vcodec libx264;
vbitrate 500;
vfps 25;
vwidth 640;
vheight 480;
vthreads 2;
vprofile main;
vpreset medium;
vparams {
   g 10;
}
acodec libfdk_aac;
abitrate 70;
asample_rate 44100;
achannels 2;
aparams {
}
            output          rtmp://114.215.121.106/live/540_10;
        }
    }
}

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
SRS SRS/3.0,OuXuli,是一个流媒体集群,支持RTMP/HLS/WebRTC/SRT/GB28181,高效、稳定、易用,简单而快乐。 SRS is a RTMP/HLS/WebRTC/SRT/GB28181 streaming cluster, high efficiency, stable and simple. Remark: Although SRS is licenced under MIT, but there are some depended libraries which are distributed using their own licenses, please read License Mixing. Usage >>> Step 1: Get SRS. git clone https://gitee.com/winlinvip/srs.oschina.git srs && cd srs/trunk && git remote set-url origin https://github.com/ossrs/srs.git && git pull Note: We use mirrors(gitee) here, but it's also ok to directly clone by git clone https://github.com/ossrs/srs.git && cd srs/trunk >>> Step 2: Build SRS. ./configure && make Remark: Recommend to use Centos7 64bits, please read wiki(CN,EN). Note: You can also build SRS in docker, please read docker. Step 3: Run SRS ./objs/srs -c conf/srs.conf >>> Whatever, you can also directly run SRS in docker: docker run -p 1935:1935 -p 1985:1985 -p 8080:8080 \ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:3 Note: Again, we use ACR here, you can directly run in docker hub by docker run -p 1935:1935 -p 1985:1985 -p 8080:8080 ossrs/srs:3 >>> From here, strongly recommend to read bellow wikis: Usage: How to delivery RTMP?(CN, EN) Usage: How to delivery RTMP Edge Cluster?(CN, EN) Usage: How to create a RTMP Origin Cluster?(CN, EN) Usage: How to delivery HTTP FLV Live Streaming?(CN, EN) Usage: How to delivery HTTP FLV Live Streaming Cluster?(CN, EN) Usage: How to delivery HLS?(CN, EN) Usage: How to delivery HLS for other codec?(CN, EN) Usage: How to transode RTMP stream by FFMPEG?(CN, EN) Usage: How to forward stream to other servers?(CN, EN) Usage: How to deploy in low lantency mode?(CN, EN) Usage: How to ingest file/stream/device to RTMP?(CN, EN) Usage: How to delivery HLS by SRS HTTP server?(CN, EN) Usage: How to publish h.264 raw stream as RTMP? (CN, EN) Usage: How to improve edge performance by multiple CPUs? (CN, EN) Usage: Why choose SRS? About the milestone and product

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值