日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

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

發(fā)布時間:2025/10/17 编程问答 16 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ffmpeg 怎么处理udp音频_STREAM: srs 2.0release,ffmpeg实时转码udp流,出现只有音频没有视频的问题?... 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

環(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`

剛開始推流都很好,時間一久了,就發(fā)現(xiàn)播放時視頻沒有了,音頻還在,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]

因為同時轉(zhuǎn)碼了很多路流,udp本身是沒有問題的,其它路也都沒有問題.謝謝.

總結(jié)

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

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。