A
A
Alex Goncharov2017-07-22 12:19:59
Nginx
Alex Goncharov, 2017-07-22 12:19:59

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

2 answer(s)
Y
Yuri Udovichenko, 2017-07-22
@Aquary

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.

P
Paul Nice, 2017-07-24
@Paul_Nice

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 question

Ask a Question

731 491 924 answers to any question