Random high stream delay (possible bug)

lostbacon

New Member
I don't know how the internals of OBS works if/where there are queues; I'm looking for a technical explanation of why OBS (may) be delaying streaming?

I'm posting this in the developer forum because I'm not looking for technical support. I'm looking for an understanding and to find out if this is a bug or not.

I have OBS 21.1 for Windows configured the following way:
  • Software H264
  • CBR: 4000k
  • Custom buffer size: 1000k
  • Encode: Ultrafast
  • Tune: ZeroLatecy
  • Binid to IP
  • New Networking Code
  • Low Latency Mode
  • WAN has Traffic Shaping allocating 5 Mb/s dedicated to the broadcaster

Usually the RTMP to RTMP stream delay is around (player buffer size) + (500ms)
Usually the RTMP to HLS stream delay is around (3500ms)

For about 14 hours the HLS delay held at ~3s until it jumped up to ~7s. Since I have control of the server and am one of the developers on the server; I don't think this has anything to do with the server design as there is no way a stream can be delayed like that.

At first I thought the clock was messed up; ultimately it took stopping and starting the stream again to fix the issue. I have yet been able to reproduce the issue.

I am wondering a couple of things:
  1. What components in the pipeline could cause such a delay?
  2. Shouldn't Low Latency Mode be very aggressive to curb said components from causing the delay?
 
Top