ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?...
環(huán)境:
srs: 2.0release,編譯參數(shù) ./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`
剛開(kāi)始推流都很好,時(shí)間一久了,就發(fā)現(xiàn)播放時(shí)視頻沒(méi)有了,音頻還在,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]
因?yàn)橥瑫r(shí)轉(zhuǎn)碼了很多路流,udp本身是沒(méi)有問(wèn)題的,其它路也都沒(méi)有問(wèn)題.謝謝.
總結(jié)
以上是生活随笔為你收集整理的ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 2 s锁是什么_innodb存储引擎读书
- 下一篇: 处理器仿存带宽_linux服务器CPU内