High encoding when i get viewer spike?

Ladydisturbed

New Member
Hi! I've used obs for the last 5 years to stream and know pretty well how it works. I stream on facebook and on there I've gotten so many more views often in the thousands when I'm live but when that happens obs sends out a high cpu warning and my stream is completely unwatchable because the fps is all over the place. It's usually when I'm steadily holding over 1k viewers. I'll peak to that number a lot but only for a short time and it goes back to the lower hundreds and everything is great.
This stream today I held over 1k viewers for about 10 minutes until I had to end it because the hig CPU warning didnt go away. I restarted stream changing nothing and perfectly smooth. Peaked at 1k and it went down quickly back to normal views and no quality issues
 
it makes no difference if you have 0 or a million viewers for OBS. Whatever causes it is something different. Maybe you have some widgets or so active like streamlabs or so that get triggered with a high viewer count?
Anyways not OBS related.
 
it makes no difference if you have 0 or a million viewers for OBS. Whatever causes it is something different. Maybe you have some widgets or so active like streamlabs or so that get triggered with a high viewer count?
Anyways not OBS related.

Maybe all the people downloading to watch my stream the servers on Facebook glitch out? I swear I change nothing.. have no special alerts or anything to tax my PC when I have big streams like that I usually even turn alerts off because they're just on all the time. On my end everything is fine just wherever its uploading the amount of views definitely does something
 
Maybe all the people downloading to watch my stream the servers on Facebook glitch out?
If their servers glitch out you get dropped frames but not CPU overload.
Could you post a log so we could maybe identify a scene which could cause it?
 
If their servers glitch out you get dropped frames but not CPU overload.
Could you post a log so we could maybe identify a scene which could cause it?

I was streaming warzone and we all know that game is just shit for optimization. I have a great build too and it runs just fine. Before I upgraded my cpu would max out 100 percent and cause stream issues really bad and look just like it looks now and say high cpu encoding. But I checked in task manager and my cpu was total of 50 percent and warzone only using 20 something percent when it did the warning with the view spike.

How do I post a log? Sorry I don't know how to do that :( I streamed a couple times after does that matter for the log?
 
Code:
14:25:42.901: Max audio buffering reached!
14:25:42.901: adding 896 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: CAM)
that is worrisome, but since you don't use the audio from the camlink I'm not sure if that matters. I don't have a camlink myself to test that, so maybe somebody else can share their experience with it here?
Code:
14:23:45.535: YUV mode:          709/Full
Change to partial YUV mode, most if not all streaming services and players don't handle that well.
Settings -> Advanced -> Color Range
Beside that nothing which would be a obvious fail.
Could you change the Color Space and launch OBS as Admin and try again. If it still fails a new log file with the new settings would be helpfull.
 
Code:
14:25:42.901: Max audio buffering reached!
14:25:42.901: adding 896 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: CAM)
that is worrisome, but since you don't use the audio from the camlink I'm not sure if that matters. I don't have a camlink myself to test that, so maybe somebody else can share their experience with it here?
Code:
14:23:45.535: YUV mode:          709/Full
Change to partial YUV mode, most if not all streaming services and players don't handle that well.
Settings -> Advanced -> Color Range
Beside that nothing which would be a obvious fail.
Could you change the Color Space and launch OBS as Admin and try again. If it still fails a new log file with the new settings would be helpfull.

Yeah I'm not sure why the cam link still shows up on the audio part but it's muted.. mine used to be partial I only changed it to full when I saw a video of how to optimize obs. I don't think it made any difference so I turned it back. Do you think this could just be on Facebook's end? I asked my partner manager but she wouldn't know unless she reached out to engineering which she hasn't yet. I've just heard so many times "it's not our end.. our servers can handle it all even the new streamers that came from mixer in july" which, funny enough, I had stream quality issues the day mixer shut down and hundreds of streamers came to FB. I know I have to upload to get all this out and fb viewers are downloading my streams to watch them live but why would that interfere? It's obviously not obs like you said.
 
It is not Facebook and not OBS. You stream with NVENC so it makes no sense that you see the high CPU usage and if facebook would have problems you would not see a high CPU usage warning but instead dropped frames. I would actually say that ModernWarfare is causing problems here. But getting that fixed is not in your hands so we can only see if we could find a workaround that works for you.
 
It is not Facebook and not OBS. You stream with NVENC so it makes no sense that you see the high CPU usage and if facebook would have problems you would not see a high CPU usage warning but instead dropped frames. I would actually say that ModernWarfare is causing problems here. But getting that fixed is not in your hands so we can only see if we could find a workaround that works for you.

That's what I was thinking... it just doesnt make sense to me it was running perfect for almost the whole stream then I spike in views and everything goes to hell. It's hard to say though if it was just a one off coincidence with views and it actually is warzone. I remember my gta streams averaged thousands of live viewers before my upgrade (I had an i7 4790 and encoded off a 970 and streams were fine).
Warzone isnt optimized what so ever. I did my first 1080p stream with that stream maybe staying at 720p for warzone? Just sucks when I find a game I like and always gives good views so I can look good as a fb partner and then this happens. Stream problems are so upsetting when it's your job and you're useless fixing it because you don't know why things are happening.

I did notice when it said high encoding obs in the bottom right said around 5 to 6 percent cpu instead of the usual 1 to 2 percent since the upgrade. Total cpu in task manager was less than 80 percent when it was constantly 100 percent before the new cpu. I've also noticed ALT tabbing out of cod makes the encoding read high and lags my stream out for a second... maybe too many of those that stream messed things up too
 
Why are all of you so jaded and not paying attention to the story being told. All I heard was people saying blah blah blah I know it all, but none of you accounted in a viewer spike being a chat spike, which means increased CPU activity in your browser. Then no one factored in how much memory and cpu the live comments refreshing takes compared to a twitch stream, plus all the other facebook nonsense loading and refreshing. This isn't even factoring the facebook creator dashboard or the notifications etc. Simply put you avoided half the details to just make claims of it can't be connected.
 
Why are all of you so jaded and not paying attention to the story being told. All I heard was people saying blah blah blah I know it all, but none of you accounted in a viewer spike being a chat spike, which means increased CPU activity in your browser. Then no one factored in how much memory and cpu the live comments refreshing takes compared to a twitch stream, plus all the other facebook nonsense loading and refreshing. This isn't even factoring the facebook creator dashboard or the notifications etc. Simply put you avoided half the details to just make claims of it can't be connected.

I don't personally believe the high view spikes are real unless no one talks that's new. I'll get a lot of follows hundreds if not 1k follows a stream if it's that big but really I got a 45 min stream with that log, 31k total views, reached 70k people and peaked at 2k live viewers and only got about 400 reactions (which is usually on every stream I do averaging wayyyy less people usually less than 100 live viewers if I'm not on warzone) also my number of comments was only about 400 which is pretty average for about an hour of streaming (I average 800 to 1.5k comments in 2.5 hours of streaming ) so it's not new comments and stuff messing with things.. also.. stonemountain and other huge streamers are on there holding 15k live viewers and thousands of comments and they're fine. I'm just not sure what to really do unless I disable all alerts? Facebook has been amazing for growth and money but I swear it seems most of the time when I'm doing great I just run into problem after problem vs small streams
 
I don't personally believe the high view spikes are real unless no one talks that's new. I'll get a lot of follows hundreds if not 1k follows a stream if it's that big but really I got a 45 min stream with that log, 31k total views, reached 70k people and peaked at 2k live viewers and only got about 400 reactions (which is usually on every stream I do averaging wayyyy less people usually less than 100 live viewers if I'm not on warzone) also my number of comments was only about 400 which is pretty average for about an hour of streaming (I average 800 to 1.5k comments in 2.5 hours of streaming ) so it's not new comments and stuff messing with things.. also.. stonemountain and other huge streamers are on there holding 15k live viewers and thousands of comments and they're fine. I'm just not sure what to really do unless I disable all alerts? Facebook has been amazing for growth and money but I swear it seems most of the time when I'm doing great I just run into problem after problem vs small streams

I also only have streamlabs and then the fb dashboard for tabs. Sometimes I have stream labels up for small streams so I can personally thank each follow/ like when i can but for warzone and algo heavy games i dont open that browser because it's not worth trying to keep track because its follow after follow... I guess that could be an issue? I do have a lot of sources but not many are used just there if I want to toggle on/off. But yes.. it usually only is with warzone and warzone is the game that often gives me massive views. But gta didn't do the high encoding I don't believe and I remember averaging 1k live views the whole stream.
 
TryHD already recommended running OBS as admin and changing colour range but I have a few additional recommendations.

Your log shows the following:

15:37:24.050: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 5148 (2.4%)
15:37:24.050: Video stopped, number of skipped frames due to encoding lag: 18990/214951 (8.8%)

These are strictly GPU overload issues.

Try the following, so most common issues are covered/solved:

1) Under encoder settings, you're already using NVENC but use "Quality" preset then disable "Lookahead" and "Psycho Visual Tuning";
2) If you still get stalls/lags, cap frame rate to 120FPS and/or lower ingame settings until these are resolved;
3) Disable Windows 10 GameDVR and enable Windows 10 Game Mode;
4) Disable Hardware Acceleration on your browser of choice.

These are the only issues related to OBS in your log. I haven't tested Windows 10 2009 for any potential issues it may have introduced though.

After all these and if you still have issues, post a new logfile of a streaming or recording session with all these changes implemented.
 
TryHD already recommended running OBS as admin and changing colour range but I have a few additional recommendations.

Your log shows the following:

15:37:24.050: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 5148 (2.4%)
15:37:24.050: Video stopped, number of skipped frames due to encoding lag: 18990/214951 (8.8%)

These are strictly GPU overload issues.

Try the following, so most common issues are covered/solved:

1) Under encoder settings, you're already using NVENC but use "Quality" preset then disable "Lookahead" and "Psycho Visual Tuning";
2) If you still get stalls/lags, cap frame rate to 120FPS and/or lower ingame settings until these are resolved;
3) Disable Windows 10 GameDVR and enable Windows 10 Game Mode;
4) Disable Hardware Acceleration on your browser of choice.

These are the only issues related to OBS in your log. I haven't tested Windows 10 2009 for any potential issues it may have introduced though.

After all these and if you still have issues, post a new logfile of a streaming or recording session with all these changes implemented.

Hi thanks for the reply! Obs is running as administrator and windows game mode is on. Also preset is already set to high and psycho visual is now off. I wonder if it has more issues if it's full screen. I used to use fullscreen borderless and it may have had less issues but nvidia optimized it and it put it back to full screen. Do you think my bitrate might be too high? I have my upload speed capped at 40 and use 3400. I also just turned off the game bar
 
Last edited:
Back
Top