Encoding Overload on i9-9900k / 2080 Super

Hey guys,

So I'm trying for the life of me to figure out why/how I'm getting encoding overload and resultingly having my elgato camlink skip around below 60 FPS. I'm using NVIDIA's encoder at 7,000 bitrate. The CPU usage is never normally anywhere above 10-20% on OBS when the encoding overload is happening, too, but yet it's definitely happening and very visible on stream.

I've looked at the sticky and can't really figure out anything that could be potentially causing issues. I even downscaled the resolution tonight to 1600x900 and it was still happening frequently. I was under the impression that my rig would be able to handle 60 FPS 1080 streaming easily, so I'm not sure where the trouble is coming from. Maybe something in the log can show some clues as to what's going on.

Here's the log file: https://obsproject.com/logs/tM17B-mdEe5NzxF4
 
try to set the main display refresh rate to 120 so he can grab every second frame perfect

try to update to newest OBs version works on my 9900K like a charm

look that you have set the energy savin settings at fullspeed !
Do you mean my main gaming monitor? I have that at 144hz but I'm not sure why that would cause my camlink cam to stutter or the encoding overload?

Just updated to the newest version.

I have my power setting at high performance, if that's what you mean.
 

Kraezy

Member
Didn't have chance to go through it thoroughly as heading off to bed but at a quick glance, suggest the following;
  • Run OBS as Admin
  • Set Audio Sample rate to 48hz (You're running OBS Audio Sample Rate at 44hz yet your Astro A50 and mic are running at 48hz)
  • Never have 2 Capture sources in the same scene (you have Display & Capture)
  • Set OBS priority to HIGH (settings > advanced > priority) or use ProcessLasso (free) to force it to High
  • IF running through NDI ensure both Network cards are running at 1.0 gbps (1000/1000 Mbps)
  • Also when using NDI - Display Capture works better (on Gaming PC)
  • Suggest to also create a NEW scene with nothing in it but Display OR Game Capture and test.
 
Thanks!

  • Will be running as admin testing tonight.
  • Fixed the audio sample so everything is 48hz.
  • I had a game capture and a window capture in the same scene, so I deleted the window capture.
  • Priority was already set as high.
  • While I do use NDI often, for this last test and problem occurrence, NDI wasn't active at all. But good info to look out for, thanks.
  • If this doesn't work, I'll try and create a new scene with just game capture. Should I also include the camlink or are we just trying to make sure game capture is fine and rule that out?
 
Actually, I just realized that the window capture I deleted (that was in the same scene as the game capture) needs to be active too. There's no way to get around that? I kinda need to have both running in that scene.
 
So I went ahead and did the recommended things that the analyzer said, but tonight's stream was more of the same. Encoding overload messages all night. I noticed in task manager my CPU usage overall was about 70%, but I don't necessarily think that's bad?

Really lost on how I can fix this.

Here's latest log: https://obsproject.com/logs/r4ATcbVPcHcuQUTP
 

carlmmii

Active Member
You're still not running OBS as admin. Make sure to right-click -> Run as Administrator every time you launch OBS. If you want to make this easier, pin OBS to the taskbar, right-click on the icon, right-click on obs64.exe, go to properties -> Advanced -> Run as administrator.

It's important because it adds OBS to the GPU priority list so it can get the resources necessary when you have other things using your GPU (like any game), and primarily is the first step to combat rendering and encoding lag.

For encoding options, make sure to turn off Look Ahead and Psychovisual Tuning (and have something other than Max Quality, as you already have). These options all use CUDA, which can cause encoding issues while gaming.

Past that, I notice you added game capture for a DX12 game (modern warfare). DX12 may cause issues with the Game Capture method if GPU usage is too high, and cause frame out-of-order capture. If you notice this, try window or display capture instead.
 
You're still not running OBS as admin. Make sure to right-click -> Run as Administrator every time you launch OBS. If you want to make this easier, pin OBS to the taskbar, right-click on the icon, right-click on obs64.exe, go to properties -> Advanced -> Run as administrator.

It's important because it adds OBS to the GPU priority list so it can get the resources necessary when you have other things using your GPU (like any game), and primarily is the first step to combat rendering and encoding lag.

For encoding options, make sure to turn off Look Ahead and Psychovisual Tuning (and have something other than Max Quality, as you already have). These options all use CUDA, which can cause encoding issues while gaming.

Past that, I notice you added game capture for a DX12 game (modern warfare). DX12 may cause issues with the Game Capture method if GPU usage is too high, and cause frame out-of-order capture. If you notice this, try window or display capture instead.

Totally forgot to run as admin, I was intending to. Just went into file properties and made sure to check run as admin so it should run that way every time now. I just turned off look ahead and psychovisual. I actually had quality on, not max quality.

Gotcha. I was thinking about trying window capture, but then I have that yellow border around my game the entire time that I can't get rid of because of Windows. I avoided display capture because it's the worst performer of the captures - I'll try them if the above doesn't help.
 
Top