Question / Help Lag on OBS with 20.97 mbps upload speeds

Jeramie

New Member
Hey all...

I have been using OBS for youtube live streams for about 3 months. It was just plug and play for me. About a week ago I noticed there was a lag on my streams. Not on my recorded videos though. Last night I went to stream and my lost fps was at 90%!

After researching videos, forums and everything on the internet I cant find a solution. Any help would be great!

Here is what I have done so far!

Call ATT an increased internet speeds.
Ethernet cable right into computer
Adjusted settings to all set ups known to internet!
Did the recent update (problem happened before update)

As of right now I cant seem to keep the FPS percentage down. Any ideas?
 

EconomyDuckling

New Member
Try reducing your Quality to 720p 60fps. I had something similar happen awhile back.

I was streaming 1080p 60fps pre-20.0.1 with an up-speed of 40mbps with Zero dramas.

When 20.0.1 hit, I was spiking with losing frames. I dropped the quality from 1080p 60fps to 720p 60fps and it seemed to have handled it well, and I have had no dropped frames.

I have not tried to go back an increase the quality yet as I don't want the dropped frame's to happen again as well.

Lastly, just note down what your CPU % usage is before you drop the quality and after. It could be a matter of memory also. I don't record whilst I stream, I purely broadcast. By recording at the same time as broadcasting, this could also affect your stream stability.
 

Narcogen

Active Member
Posting a log would help.

Frames can be dropped because of rendering lag, encoding lag, or network lag. The status window and the log should indicate which is happening to you so you can decide what to do to try and fix it.
 

Jeramie

New Member
Try reducing your Quality to 720p 60fps. I had something similar happen awhile back.

I was streaming 1080p 60fps pre-20.0.1 with an up-speed of 40mbps with Zero dramas.

When 20.0.1 hit, I was spiking with losing frames. I dropped the quality from 1080p 60fps to 720p 60fps and it seemed to have handled it well, and I have had no dropped frames.

I have not tried to go back an increase the quality yet as I don't want the dropped frame's to happen again as well.

Lastly, just note down what your CPU % usage is before you drop the quality and after. It could be a matter of memory also. I don't record whilst I stream, I purely broadcast. By recording at the same time as broadcasting, this could also affect your stream stability.

Thank you for your reply. Sorry I am new to this forum and its rules.

So I am streaming at 720p at 30fps. I was never at 1080p. I am worried to drop it down further than that for quality. But my stats should be good enough right? My CPU usage was 14.9%. I am not sure what that means though...
 

Narcogen

Active Member
According to the log, the problem is network.

From the log:

20:40:45.946: Output 'test_stream': Total frames output: 44 (818 attempted)
20:40:45.946: Output 'test_stream': Total drawn frames: 1003 (1006 attempted)
20:40:45.946: Output 'test_stream': Number of lagged frames due to rendering lag/stalls: 3 (0.3%)
20:40:45.946: Output 'test_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 774 (94.6%)

20:42:12.324: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 12 (0.7%)
20:42:12.324: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 522 (34.0%)​

You've selected a relatively high bitrate, (10000) higher than YouTube suggests for your resolution and framerate:

https://support.google.com/youtube/answer/2853702?hl=en

1080p @60fps
  • When you schedule Events, make sure to check the 60fps box in the Ingestion Settings tab. Stream now will auto-detect the frame rate and resolution.
  • Resolution: 1920x1080
  • Video Bitrate Range: 4,500 - 9,000 Kbps
Try reducing bitrate until you can hold the stream. If you start to get lag due to encoding, you can increase the speed of your CPU preset to compensate.
 

Jeramie

New Member
According to the log, the problem is network.

From the log:

20:40:45.946: Output 'test_stream': Total frames output: 44 (818 attempted)
20:40:45.946: Output 'test_stream': Total drawn frames: 1003 (1006 attempted)
20:40:45.946: Output 'test_stream': Number of lagged frames due to rendering lag/stalls: 3 (0.3%)
20:40:45.946: Output 'test_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 774 (94.6%)

20:42:12.324: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 12 (0.7%)
20:42:12.324: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 522 (34.0%)​

You've selected a relatively high bitrate, (10000) higher than YouTube suggests for your resolution and framerate:

https://support.google.com/youtube/answer/2853702?hl=en

1080p @60fps
  • When you schedule Events, make sure to check the 60fps box in the Ingestion Settings tab. Stream now will auto-detect the frame rate and resolution.
  • Resolution: 1920x1080
  • Video Bitrate Range: 4,500 - 9,000 Kbps
Try reducing bitrate until you can hold the stream. If you start to get lag due to encoding, you can increase the speed of your CPU preset to compensate.

Whoa! Thank you for the information. You are amazing!

I have always just used the "stream now" option on Youtube rather than set up an event. It doesnt ask the ingestion rate when I do that but I was just playing with it and I was able to select my bitrate that I wanted to use. Since I was using the "Stream now" option is that why it is showing that 10,000 number or is that a setting I must change in OBS itself? I do not this I have ever typed that number in the settings myself.

I also discovered the Auto Configuration. Would you suggest just using that each time I prepare for a stream? Seems like it detects and tests for me.

Thank you for the help.
 

Narcogen

Active Member
The setting is in OBS itself. Auto Config is a new feature and may not work perfectly for everyone.

Settings > Output

Streaming tab

With the Simple output mode, the bitrate is right there.
 

Jeramie

New Member
The setting is in OBS itself. Auto Config is a new feature and may not work perfectly for everyone.

Settings > Output

Streaming tab

With the Simple output mode, the bitrate is right there.

Oh ok... Thank you on the Auto Config Answer...

Sorry I wasnt clear before and if you dont know then its ok. I was trying to say that I never set my bitrate to more than 5000. Ever. Even for that log you viewed for me. Why would the log show 10000 bit rate when I manually (in advanced output) set it to 2500-4000? I am wondering if that is the reason I am having issues with this.
 

Narcogen

Active Member
Not sure. Perhaps the auto-configure overrode that if you used it?

Try making a new profile, set up your youtube ingest again, then start a stream, run for awhile, and stop it. Then check the log to see what the bitrate is again, and if frames are being dropped because of network disconnects.

The "status" window should also show when frames are being dropped and for which reason-- rendering, compression, or network.
 
Top