nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Severe lag for live streams

Open hoonkai opened this issue 3 years ago • 0 comments

Hi

I'm experiencing very high lag when pulling a stream. Here's the very simple config:

rtmp {
       server {
               listen 1935;
               chunk_size 4096;

               application Test {
                       live on;
                       record off;
               }
       }
}

ffmpeg -i rtsp://192.168.100.60:554/stream1 -c:v copy -c:a copy -f flv rtmp://localhost/Test

VLC gives about a 6 sec lag when viewing rtmp://localhost/Test. It gives no lag at all when viewing the original RTSP stream (rtsp://192.168.100.60:554/stream1). Does anyone know why the lag is so severe?

hoonkai avatar Apr 01 '22 14:04 hoonkai