最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to do low-latency streaming on FFMPEG - Stack Overflow

programmeradmin6浏览0评论

I'm attempting to make video streaming with latency as low as possible at 50ms or lower if possible, assuming that it's streaming over LAN.

The latency is like 200-400ms with the config. I'm not sure what's the problem is.

ffmpeg -init_hw_device d3d11va \
-filter_complex "ddagrab=0:output_fmt=auto:framerate=60" \
-c:v av1_amf -usage ultralowlatency -rc 1 -async_depth 1 -g 60 -fps_mode vfr \
-fflags nobuffer -flags low_delay -strict experimental \
-sdp_file stream.sdp -f rtp rtp://225.0.0.1:55555

stream.sdp

v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 225.0.0.1
t=0 0
a=tool:libavformat 61.9.107
m=video 55555 RTP/AVP 96
a=rtpmap:96 AV1/90000
a=fmtp:96 profile=0;level-idx=14;tier=0

Decided to keep ffplay simple since I tried many options without any tangible benefit.

Run it on different PC

ffplay -hide_banner -protocol_whitelist "file,udp,rtp" -i stream.sdp
发布评论

评论列表(0)

  1. 暂无评论