srs使用中问题

博客主要讨论了在使用SRS时遇到的两个问题:一是使用185摄像机推流拉流时出现断开连接的错误,通过设置标志跳过错误的metadata推送解决了此问题;二是发现延时过大的现象,通过将av_interleaved_write_frame替换为av_write_frame降低了延迟。
摘要由CSDN通过智能技术生成

用185摄像机推流拉流问题

用ffmpeg代码编写的推摄像机rtsp流的程序,会导致和srs断开,srs报错

[2020-10-27 09:58:29.995][Trace][17272][265] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2020-10-27 09:58:30.080][Trace][17272][265] client identified, type=fmle-publish, vhost=192.168.20.41, app=live, stream=stream, param=, duration=0ms
[2020-10-27 09:58:30.080][Trace][17272][265] connected stream, tcUrl=rtmp://192.168.20.41:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=stream, param=, args=null
[2020-10-27 09:58:30.080][Trace][17272][265] source url=/live/stream, ip=192.168.20.41, cache=0, is_edge=0, source_id=-1[-1]
[2020-10-27 09:58:30.168][Trace][17272][265] ignore disabled exec for vhost=__defaultVhost__
[2020-10-27 09:58:30.168][Trace][17272][265] http: mount flv stream for sid=/live/stream, mount=/live/stream.flv
[2020-10-27 09:58:30.168][Trace][17272][265] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2020-10-27 09:58:30.261][Trace][17272][265] got metadata, width=640, height=360, vcodec=7, acodec=8
[2020-10-27 09:58:30.261][Trace][17272][265] 43B video sh,  codec(7, profile=Main, level=3, 640x368, 0kbps, 0.0fps, 0.0s)
[2020-10-27 09:58:39.062][Trace][17272][265] cleanup when unpublish
[2020-10-27 09:58:39.062][Error][17272][265][4] serve error code=2003 : service cycle : rtmp: stream service : rtmp: receive thread : handle publish message : rtmp: consume message : rtmp: decode message : decode message : decode command name : String invalid marker=0x3c
thread [17272][265]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:210][errno=4]
thread [17272][265]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:399][errno=4]
thread [17272][265]: do_publishing() [src/app/srs_app_rtmp_conn.cpp:891][errno=11]
thread [17
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值