Question / Help OBS High CPU usage error on minimalist settings all of a sudden

dunno when it started happening exactly, maybe about a month or so ago? but for some reason i'll be streaming perfectly fine, for about 2-3 hours with my elgato Gamecapture HD, and then all of a sudden i'll get a massive spike in CPU usage and sudden lag, with an error at the bottom of my OBS saying "High CPU Usage"

now, im only running on Veryfast, 2200 kbps, 720P with 60 FPS, and im using an external capture card so this really shouldn't be an issue...

here are my pc settings.

Core i7-4790k @4.0Ghz stock w/ decent aftermarket cooler
8GB ddr3-1600 memory
gtx 760 videocard

and my obs settings are included with the post. any help you could supply would be great as i get this almost every day now after the 2-3 hour mark. and a 4ghz i7 should have no issues with even 1080P encoding.
 

Attachments

  • obs settings.png
    obs settings.png
    74.2 KB · Views: 8

Boildown

Active Member
09:35:28: RTMPPublisher::SocketLoop: Stalled for 7166 ms to write 297773 bytes (buffer: 0 / 297984), unstable connection?
09:35:32: RTMPPublisher::SocketLoop: Stalled for 3918 ms to write 295727 bytes (buffer: 0 / 297984), unstable connection?
09:35:37: RTMPPublisher::SocketLoop: Stalled for 4689 ms to write 296372 bytes (buffer: 0 / 297984), unstable connection?
09:35:47: RTMPPublisher::SocketLoop: Stalled for 10557 ms to write 297835 bytes (buffer: 0 / 297984), unstable connection?
09:35:53: RTMPPublisher::SocketLoop: Stalled for 5312 ms to write 297784 bytes (buffer: 0 / 297984), unstable connection?
09:36:03: RTMPPublisher::SocketLoop: Stalled for 10894 ms to write 295976 bytes (buffer: 0 / 297984), unstable connection?
09:36:09: RTMPPublisher::SocketLoop: Stalled for 5755 ms to write 297975 bytes (buffer: 0 / 297984), unstable connection?

10:27:34: Total frames encoded: 240575, total frames duplicated: 19345 (8.04%)
10:27:34: Total frames rendered: 240035, number of late frames: 736 (0.31%) (it's okay for some frames to be late)

Unstable connection and 8% duplicated frames. Did you forget and leave some torrent software running? Watching your stream while you streamed it? The other long session in that log is less than 1% duplicated frames and no unstable connection warnings, which is good. No idea why the disparity, unless your source content was vastly different and you had ISP problems at the same time. Are you gaming on the same PC you're streaming from? You're using Faster preset so you might consider going to Very Fast instead.
 
yeah, the beginning of the strema was ass cause my wife left vuze open (our torrent software), i cought that in the first 5 minutes though.

the stream went fine, until about 2 hours and 30 minutes in. but yes, i do watch my own stream preview on twitch.tv, i've never really had many issues, but i like knowing how my stream looks in realtime in case there are other issues.

if this is gonna be an issue though i'll turn it off. the other thing i may not have mentioned is that i was streaming + recording to file, does this essentually incode harder?
 

Harold

Active Member
If you're going to watch your own stream, it's recommended to use another device.

Recording with a different encoder than the stream encoder WILL use more cpu time..
 

Boildown

Active Member
OBS Classic only has one encode option though, and you choose to either stream it, record it, or do both. Shouldn't use much if any extra CPU cycles to do both I'd imagine, but I don't use it myself. I find that at the bitrate that is streamed, the local recording isn't worth very much to me. But the same output is going two places instead of one, and that should basically be free on the CPU / GPU side.
 
Top