日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

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

發布時間:2025/10/17 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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-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本身是沒有問題的,其它路也都沒有問題.謝謝.

總結

以上是生活随笔為你收集整理的ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。