ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?...
环境:srs: 2.0release,编译参数 ./configure --disable-all --with-hls --with-ssl --with-http-server --prefix=/home/longjing/srs-2.0release/trunk/build --with-transcodeffmpeg: 3.2.2 static build,推流命令`ffmpeg -..
环境:
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本身是没有问题的,其它路也都没有问题.谢谢.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)