Answer the question
In order to leave comments, you need to log in
How to reduce hls.js RTMP live stream latency?
The media server runs on ngnix-rtmp + hls.js. Now the delay is around 10 seconds, is it really possible to make it even less?
Answer the question
In order to leave comments, you need to log in
If you broadcast via HLS, then try to reduce the length of the chunks to 2-3 seconds, and also reduce the number of chunks in the playlist - to 3-4.
If we are talking about the delay from real time (and not from the request of the stream), then there are several points:
1. the interval between key frames - we reduce
2. the duration of a group of frames (GOP) - we reduce
Reducing the interval between key frames will also give a faster start , and the duration to a greater extent affects the lag from real time.
If I remember correctly, on the server, when requesting a stream, it will only be given after pumping 60 frames after the first key - this is what else affects the delay.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question