ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?...

在使用ffmpeg 3.2.2进行UDP音频流实时转码为rtmp推送到SRS 2.0release服务器时,经过一段时间后发现只有音频没有视频。SRS的日志显示正常,但客户端播放时视频丢失。问题可能与ffmpeg的转码设置或持续运行稳定性有关,需要进一步排查ffmpeg参数与SRS的兼容性及资源管理情况。
摘要由CSDN通过智能技术生成

环境:

srs: 2.0release,编译参数 ./configure --disable-all --with-hls --with-ssl --with-http-server --prefix=/home/longjing/srs-2.0release/trunk/build --with-transcode

ffmpeg: 3.2.2 static build,推流命令 `ffmpeg -i "udp://@225.0.0.4:49668?overrun_nonfatal=1&buffer_size=1000000" -vcodec libx264 -acodec aac -preset ultrafast -strict -2 -r 25 -s 720x576 -vf w3fdif -y -f flv rtmp://10.10.10.188:2935/live/live49668/index`

刚开始推流都很好,时间一久了,就发现播放时视频没有了,音频还在,srs.log显示:

[2017-03-07 10:26:47.146][trace][138486][100632] HTTP client ip=10.10.10.34

[2017-03-07 10:26:47.146][trace][138486][100632] HTTP GET http://10.10.10.188:8081/live/live49668/index.m3u8, content-length=-1

[2017-03-07 10:26:47.146][trace][138486][100632] http match file=./objs/nginx/html/live/live49668/index.m3u8, pattern=/, upath=/live/live49668/index.m3u8

[2017-03-07 10:26:47.146][trace][138486][100632] client finished.

[2017-03-07 10:26:47.160][trace][138486][100634] HTTP client ip=10.10.10.34

[2017-03-07 10:26:47.160][trace][138486][100634] HTTP GET http://10.10.10.188:8081/live/live49668/index-17193.ts, content-length=-1

[2017-03-07 10:26:47.160][trace][138486][100634] http match file=./objs/nginx/html/live/live49668/index-17193.ts, pattern=/, upath=/live/live49668/index-17193.ts

[2017-03-07 10:26:47.176][trace][138486][100634] client finished.

[2017-03-07 10:26:47.443][trace][138486][100636] HTTP client ip=10.10.10.34

[2017-03-07 10:26:47.443][trace][138486][100636] HTTP GET http://10.10.10.188:8081/live/live49668/index-17194.ts, content-length=-1

[2017-03-07 10:26:47.443][trace][138486][100636] http match file=./objs/nginx/html/live/live49668/index-17194.ts, pattern=/, upath=/live/live49668/index-17194.ts

[2017-03-07 10:26:47.468][trace][138486][100636] client finished.

[2017-03-07 10:26:47.492][trace][138486][100638] HTTP client ip=10.10.10.34

[2017-03-07 10:26:47.492][trace][138486][100638] HTTP GET http://10.10.10.188:8081/live/live49668/index-17195.ts, content-length=-1

[2017-03-07 10:26:47.492][trace][138486][100638] http match file=./objs/nginx/html/live/live49668/index-17195.ts, pattern=/, upath=/live/live49668/index-17195.ts

[2017-03-07 10:26:47.508][trace][138486][100638] client finished.

[2017-03-07 10:26:47.739][trace][138486][44759] -> HLS time=343964630, stream dts=7680238290(85335981ms), sno=17199, ts=index-17198.ts, dur=14.80, dva=0p

[2017-03-07 10:26:48.915][warn][138486][100630][104] client disconnect peer. ret=1004

[2017-03-07 10:26:50.031][trace][138486][44778]

因为同时转码了很多路流,udp本身是没有问题的,其它路也都没有问题.谢谢.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值