mpromonet / v4l2rtspserver

RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9
The Unlicense
1.86k stars 428 forks source link

latency question #246

Closed TheKerry closed 2 years ago

TheKerry commented 3 years ago

Which settings result in the lowest latency?

Edit: I got the IP address changed

mpromonet commented 3 years ago

Hi @TheKerry

The latency depends on capture, compressing, network transfert and bufferization, uncompressing, display. You probably have lowest latency using small resolution and powerful network. If you are using VLC, you may try to reduce the --network-caching value

Best Regards, Michel.

mpromonet commented 2 years ago

Hi,

Using

 vlc --network-caching=100 rtsp://127.0.0.1:8554/unicast
 ffplay -probesize 32 rtsp://127.0.0.1:8554/unicast

reduce latency to about 500ms (capturing a counter on the screen) With default parameters, it is about 1~2s.

Best Regards, Michel.