rtsp2rtmp程序,从rtsp摄像机获取流,转换为rtmp push到FMS

软件功能:
1、从rtsp摄像机(rtsp server)获取流,然后转换为rtmp协议,将流推送到FMS(Flash Media Server)上面。
2、支持2000路以上rtsp摄像机(受限于CPU能力),只需要编辑rtsp2rtmp.conf文件即可,如下:
[0]
rtsp_url=rtsp://192.168.2.10:554/stream/1
rtmp_url=rtmp://192.168.2.9/live/720P
;rtsp_url=rtsp://username:password@192.168.2.10:554/stream/1


;[1]
;rtsp_url=rtsp://192.168.2.10:554/stream/2
;rtmp_url=rtmp://192.168.2.9/live/CIF
3、可运行于windows or linux平台。
4、可根据用户要求提供操作界面。


应用场景:
1、幼儿园等小型商业客户,将N台rtsp摄像机数据通过一台rtmp服务器推送到FMS进行直播。

2、openwrt路由器,将N台wifi ipcam收敛后传送给FMS作为直播。

调试过程,用一台hi3518E摄像机作为流,用srs作为FMS。用ubuntu虚拟机作为运行环境。
先把srs跑起来,srs就是Flash Media Server。
binaries @see: https://github.com/simple-rtmp-server/srs/wiki/v1_CN_Build
you can:
      ./objs/srs -c conf/srs.conf
                  to start the srs server, with config conf/srs.conf.
make[1]: Leaving directory `/home/srs/trunk'
root@freeman-desktop:/home/srs/trunk# vi run.sh
root@freeman-desktop:/home/srs/trunk# chmod +x run.sh 
root@freeman-desktop:/home/srs/trunk# ./run.sh 
[2015-10-10 19:57:13.976][trace][3130][0] config parse complete
[2015-10-10 19:57:13.976][trace][3130][0] write log to file ./objs/srs.log
[2015-10-10 19:57:13.976][trace][3130][0] you can: tailf ./objs/srs.log
[2015-10-10 19:57:13.976][trace][3130][0] @see: https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SrsLog
root@freeman-desktop:/home/srs/trunk# ps
  PID TTY          TIME CMD
 2433 pts/0    00:00:00 su
 2443 pts/0    00:00:00 bash
 3132 pts/0    00:00:00 srs
 3133 pts/0    00:00:00 ps


运行rtsp2rtmp&时,总是发生Segmentation fault的现象。
./rtsp2rtmp &
[1] 2234
root@freeman-desktop:/home/rtsp2rtmp/master/src# 
[1]+  Segmentation fault      ./rtsp2rtmp


查明原因:srs编译时使用了--without-ssl。在srs/objs/下面,有一些第三方lib,包括http-parser-2.1, gtest-1.6.0,openssl-1.0.1f,st-1.9。
把它们重新配置编译一下就可以。


http://www.ossrs.net/srs.release/trunk/research/players/srs_player.html?
填入:rtmp://192.168.2.9/live/main就可以播放了。



  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

草根大哥

进军大神程序员路上,谢谢支持!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值