h265web.js icon indicating copy to clipboard operation
h265web.js copied to clipboard

Howto reduce latency on flv live?

Open DLLDev opened this issue 2 years ago • 3 comments

If opening the same player in two browsers, there are already diff from each other. Also the latency is different everytime when playing a stream.

How to get a true live stream with no buffering done with this player? so every "client" will basically see the "same" and with as less latency as possible?

DLLDev avatar Oct 12 '22 10:10 DLLDev

Codec is HEVC?

We support hard-decoding with newest chrome now.

You can try it (newest clone)

numberwolf avatar Oct 23 '22 15:10 numberwolf

Hi,

codec is libx264 (ffmpeg) -> flv (http/ws)

I try to get a stream playing with less as delay as possible. Also beside the latency of over 1-2 seconds the next problem is, that the delay is always completely random.

There seems to be no consistency between clients. One might have a second delay, one 2-5 seconds.

I expect a latency from about 4-12ms, like I actually get it with another player.

PS: Tried it on FF and Chrome.

DLLDev avatar Oct 26 '22 08:10 DLLDev

Maybe I know the problem with your case.

If u make sure about codec is H.264. You can init player with option: hevc:false.

{ 
    ...
    extInfo: {
                ...
                hevc: false
        }
}

numberwolf avatar Oct 27 '22 09:10 numberwolf