3 second delay live stream

PauSwimz

New Member
Hello all,

I am using OBS Studio 27.0.1 and it works but there is about a 3 second delay on live stream. I have ethernet running directly from internet modem.
I have attempted to go into Settings > Advanced > Stream Delay
and take the duration down to "1s" and unchecked the boxes

Does anyone have any other suggestions?

Thanks
 

Lawrence_SoCal

Active Member
If you mean a delay from the time you do something to time it appears on CDN stream, you are NOT going to be faster than the speed of light. And most CDN re-encode video for more efficient streaming (which also takes time).
For providers like YouTube and Facebook, 15-30+ seconds is a normal lag (and lots of articles technically on why this is the case)

Or are you talking about the time from when you do something on your PC to its display in OBS preview window?
 

PauSwimz

New Member
If you mean a delay from the time you do something to time it appears on CDN stream, you are NOT going to be faster than the speed of light. And most CDN re-encode video for more efficient streaming (which also takes time).
For providers like YouTube and Facebook, 15-30+ seconds is a normal lag (and lots of articles technically on why this is the case)

Or are you talking about the time from when you do something on your PC to its display in OBS preview window?

In example, from the time you do something (throw hands up) and when it appears on OBS Studio preview window (you throwing hands up)
3 second delay

using this style of camera







Amcrest.PNG
 

Lawrence_SoCal

Active Member
Ah, super cheap security camera being used in a way it is not designed for
And have you matched the camera output resolution and frame rate? or is that a cheap 15fps camera, having to be adjusted to your screen and or stream fps?

Does the camera have NDI output, or are your doing something to capture RTSP, or a web page scrape, or a HTML H.264 feed, or ??
Realize the camera has to process and compress the video, then send it, your computer to uncompress the video, process and display it. hopefully you aren't making the situation worse by using WiFi anywhere between camera and OBS PC
And a cheap camera is going to have a lower end processing ability (and usually firmware quality that is lacking, or at least not optimized for your use case)
And then is your computer powerful enough for BOTH real-time video encoding, and the stream decoding from the camera? plus whatever else it is doing? my point is that there are lots of considerations

I'd recommend you start with researching the camera and its video output, and how to optimize that for live video as you are using it. I would recommend against posting that in this thread, as you subject line and that question are different. If you desired OBS user input, To get the most response, a dedicated post/question on video protocol would make more sense after you do your research. Determine what the camera offers, and research feedback, best practices related to those protocol options. Something like the camera having its own web page, and you are doing something like a window capture of a browser pointed at the video feed is going to be the worst resolution/image clarity and poor latency

Good luck
 

PauSwimz

New Member
Ah, super cheap security camera being used in a way it is not designed for
And have you matched the camera output resolution and frame rate? or is that a cheap 15fps camera, having to be adjusted to your screen and or stream fps?

Does the camera have NDI output, or are your doing something to capture RTSP, or a web page scrape, or a HTML H.264 feed, or ??
Realize the camera has to process and compress the video, then send it, your computer to uncompress the video, process and display it. hopefully you aren't making the situation worse by using WiFi anywhere between camera and OBS PC
And a cheap camera is going to have a lower end processing ability (and usually firmware quality that is lacking, or at least not optimized for your use case)
And then is your computer powerful enough for BOTH real-time video encoding, and the stream decoding from the camera? plus whatever else it is doing? my point is that there are lots of considerations

I'd recommend you start with researching the camera and its video output, and how to optimize that for live video as you are using it. I would recommend against posting that in this thread, as you subject line and that question are different. If you desired OBS user input, To get the most response, a dedicated post/question on video protocol would make more sense after you do your research. Determine what the camera offers, and research feedback, best practices related to those protocol options. Something like the camera having its own web page, and you are doing something like a window capture of a browser pointed at the video feed is going to be the worst resolution/image clarity and poor latency

Good luck

appreciate your input. Who's to say that this camera is not to be designed to be used in this manner?

Camera's console page indicates camera can get up to 20 FPS. On the website's console page, the delay is just about a second in comparison to the 3 second from OBS Studio. RTSP is being captured through media source with a output such as:

rtsp:username:password@ipaddress:portnumber/

No wifi being used, direct connection
 

konsolenritter

Active Member
Each protocol used brings in additional delay due to "security" buffers at sending and receiving end. So it is with the rtsp stream. Maybe that the suppliers web console makes use of a (risky) small buffer size at the receiving side (in the browser).

If you google for something like "amcrest low lag" the search hits are full of people and postings moaning about slow ip cam responses (in generic).

Fast (low lag) cameras are directly streamlined by HDMI or even better SDI and captured at the computer. As Lawrance already wrote only few network protocols like NDI were developed with small lag in mind.
 
Last edited:
Top