Very High Power usage while streming

Jacon

Member
Hi, while streaming Space Marine 2 on Twitch the "Electric Consumpion" of OBS goes very high. (Also with Dragon's Dogma 2) And destroy the stream. Already lowered the graphic for the game, don't solve the problem. (Can play at ultra without OBS)
Preset already on low quality, (as OBS message suggested), same issue.

My PC spec
CPU: Intel Core i9 10900K @ 3.70GHz
RAM: 16,0GB Dual-Channel
Motherboard: Micro-Star International Co. Ltd. MPG Z490 GAMING PLUS (MS-7C75) (U3E1)
GPU:ASUS MG279 (2560x1440@144Hz) 4095MB NVIDIA GeForce RTX 3070 (MSI)
Running on a SSD

Any suggestion? Thanks.
 

Attachments

  • 2024-09-13 11-36-42.txt
    20 KB · Views: 16
  • 2024-09-13 11-40-26.txt
    19.3 KB · Views: 17
  • 2024-09-13 09-38-15.txt
    40.6 KB · Views: 11

rockbottom

Active Member
Took a look at your logs, 1 & 3 are worthless but 2 looks ugly. There's sample rate mis-matches that need to be corrected. Lots of Rendering lag too, your GPU is overloaded along with some dropped frames & encoding lag. Audio is lagging too, looks like the entire system may be overloaded. Avast may be causing issues too & one of the logs had SE/Java Script errors, check the bottom of the Encoding Performance page for more info on them.

10:36:28.397: Output 'adv_stream': Total frames output: 165335 (165712 attempted)
10:36:28.397: Output 'adv_stream': Total drawn frames: 157625 (166229 attempted)
10:36:28.397: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 8604 (5.2%)
10:36:28.397: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 377 (0.2%)
10:36:28.398: Video stopped, number of skipped frames due to encoding lag: 11464/166138 (6.9%)

10:36:32.245: audio_thread(Audio): min=0.009 ms, median=1.876 ms, max=15031 ms, 99th percentile=27.051 ms
10:36:32.245: ┗receive_audio: min=0.003 ms, median=1.908 ms, max=76.878 ms, 99th percentile=5.285 ms, 0.794069 calls per parent call
10:36:32.245: ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.537 ms, 99th percentile=0.005 ms
10:36:32.245: ┗do_encode: min=0.018 ms, median=1.904 ms, max=76.829 ms, 99th percentile=5.28 ms
10:36:32.245: ┣encode(Track1): min=0.235 ms, median=1.926 ms, max=6.171 ms, 99th percentile=4.371 ms, 0.00183308 calls per parent call
10:36:32.245: ┣send_packet: min=0 ms, median=0.009 ms, max=1.596 ms, 99th percentile=0.052 ms
10:36:32.245: ┗encode(adv_stream_audio): min=0.014 ms, median=1.892 ms, max=76.821 ms, 99th percentile=5.27 ms


 

Jacon

Member
Never had problem with Java and Avast before. Yes, I had also audio lag while streaming SM2 after like 20min of smooth gaming.
Sample rate mis-matches?
I tried something with the setting and run SM2 while recording on OBS for like 10 min, no problem (but are only 10 min) I'll attach the log

I have 850w power source, maybe it's not enough?!
 

Attachments

  • 2024-09-13 15-53-05.txt
    17.7 KB · Views: 17

Jacon

Member
Also some of my OBS setting rn
 

Attachments

  • stream.jpg
    stream.jpg
    118.7 KB · Views: 22
  • video.jpg
    video.jpg
    52.1 KB · Views: 23
  • advance.jpg
    advance.jpg
    165.5 KB · Views: 23

rockbottom

Active Member
You need to reduce load, plain & simple. Run your monitor @ 60 or 120HZ. Reduce game quality, cap frame-rates, remove java script errors, ect.

OBS was @ 44k in the first 3 logs. Fixed in last log but the log ends when you started recording.
 

Jacon

Member
You need to reduce load, plain & simple. Run your monitor @ 60 or 120HZ. Reduce game quality, cap frame-rates, remove java script errors, ect.

OBS was @ 44k in the first 3 logs. Fixed in last log but the log ends when you started recording.
Game quality already reduced, framerate capped. Don't know about Java script error and how to remove it.

The outpur resolution in video can be also an issue?

Maybe this is the correct one
 

Attachments

  • 2024-09-13 16-45-53.txt
    18.6 KB · Views: 12

rockbottom

Active Member
There's no rendering lag, it looks good now but no streaming just a recording. Try these for your recording.

16:49:34.206: codec: H264
16:49:34.206: rate_control: CBR > CQP
16:49:34.206: bitrate: 4500
16:49:34.206: cqp: 20 > 15-18
16:49:34.206: keyint: 120
16:49:34.206: preset: p2 > p4 or p5
16:49:34.206: tuning: hq
16:49:34.206: multipass: qres
16:49:34.206: profile: main > High
16:49:34.206: width: 2560
16:49:34.206: height: 1440
16:49:34.206: b-frames: 2 > 0
16:49:34.206: lookahead: false
16:49:34.206: psycho_aq: true > False
 

rockbottom

Active Member
I breezed right over this one, better update it. I already checked Nvidia broadcast, that's good but double check any other plugins'.

16:45:54.304: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.12)
16:45:54.304: [obs-backgroundremoval] Failed to open config file C:\Users\GamingRig\AppData\Roaming\obs-studio/plugin_config/obs-backgroundremoval/config.ini
16:45:54.304: [obs-backgroundremoval] Failed to open config file C:\Users\GamingRig\AppData\Roaming\obs-studio/plugin_config/obs-backgroundremoval/config.ini
16:45:54.816: [obs-backgroundremoval] Latest release is 1.1.13
 

rockbottom

Active Member
FYI, the java script errors are your alerts. (browser source). Webcam audio (also 44k), not being used but buffering?

11:36:46.951: [obs-browser: 'Alert'] Error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://streamlabs.com'). (https://www.youtube.com/s/player/e38bb6de/www-widgetapi.vflset/www-widgetapi.js:212)
11:36:47.153: [obs-browser: 'Alert'] Error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://streamlabs.com'). (https://www.youtube.com/s/player/e38bb6de/www-widgetapi.vflset/www-widgetapi.js:212)

11:36:47.168: adding 116 milliseconds of audio buffering, total audio buffering is now 116 milliseconds (source: Webcam)
 

Jacon

Member
FYI, the java script errors are your alerts. (browser source). Webcam audio (also 44k), not being used but buffering?

11:36:46.951: [obs-browser: 'Alert'] Error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://streamlabs.com'). (https://www.youtube.com/s/player/e38bb6de/www-widgetapi.vflset/www-widgetapi.js:212)
11:36:47.153: [obs-browser: 'Alert'] Error: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://streamlabs.com'). (https://www.youtube.com/s/player/e38bb6de/www-widgetapi.vflset/www-widgetapi.js:212)

11:36:47.168: adding 116 milliseconds of audio buffering, total audio buffering is now 116 milliseconds (source: Webcam)
Followed some changes, also rest the java scrip via cmd. "regsvr32 jscript.dll"

Don't know what this is and what it means: [obs-backgroundremoval] Failed to open config file C:\Users\GamingRig\AppData\Roaming\obs-studio/plugin_config/obs-backgroundremoval/config.ini

My only browse source are linked to streamlabs for the alert. With some image/gif. Default sound.

The audio of my webcam is diabled on OBS, and also in general.


Edit: Removed all the gif from streamlabs, for sub bits etc. Only one it's follower, wich is a pic and an audio I made, no linked to some browser.
 
Last edited:

rockbottom

Active Member
A plugin you installed. Yep, it's in the log. Errors are errors, fix them, remove them or leave them, just be aware that they can be wasting resources.

 

Jacon

Member
A plugin you installed. Yep, it's in the log. Errors are errors, fix them, remove them or leave them, just be aware that they can be wasting resources.

I use nvidia broadcast for the webcam and back ground removal. Even if I don't use it nothing change.

I know, but I don't know the errors. Where are they? I can't fix/remove something I don't even know where to look at.

Maybe I have not enough knoledge of the topic, but I have no Idea what this means: [obs-backgroundremoval] Failed to open config file C:\Users\GamingRig\AppData\Roaming\obs-studio/plugin_config/obs-backgroundremoval/config.ini

Not clear. And no idea of what to do.
 

rockbottom

Active Member
That is/was the location of the configuration file.

Most plugins install & are removed the same as any other app. Check All Settings > Apps

Release notes for v1.1.13.

We've fixed the potential lags and discrepancy between image and mask, and upgraded the ONNXRuntime to 1.17.1 - better performance and robustness!
 

Jacon

Member
That is/was the location of the configuration file.

Most plugins install & are removed the same as any other app. Check All Settings > Apps

Release notes for v1.1.13.

We've fixed the potential lags and discrepancy between image and mask, and upgraded the ONNXRuntime to 1.17.1 - better performance and robustness!
I don't use them. I've tried them and then discarded. Why OBS try to open them? There aren't on my filter setting.

????: We've fixed the potential lags and discrepancy between image and mask, and upgraded the ONNXRuntime to 1.17.1 - better performance and robustness!
 

rockbottom

Active Member
Not sure.

They're Just release notes for Background Removal plugin v1.1.13. I thought you were using the plugin since it was installed but evidently that's not the case. If I'm not using a plugin on my set-up anymore, it's removed.
 

Jacon

Member
Not sure.

They're Just release notes for Background Removal plugin v1.1.13. I thought you were using the plugin since it was installed but evidently that's not the case. If I'm not using a plugin on my set-up anymore, it's removed.
I've removed them from the folder now. And that's done.

What other problems? How do I resolve them?
 

rockbottom

Active Member
No rendering or encoding lag in that last log but you only recorded, no streaming. Did you address the dropped frames? A link to the stream connection troubleshooting guide was provided above,
 

Jacon

Member
No rendering or encoding lag in that last log but you only recorded, no streaming. Did you address the dropped frames? A link to the stream connection troubleshooting guide was provided above,
I have no idea how to adress the dropped frames problem. That's why I'm here. The guide don't help at all, becouse I have no idea what the problem is, that's why I ask here.
 

rockbottom

Active Member
Your LAN looks OK, you're using ethernet connected @ 1G, nothing to see here. Your problems appear to be between you & the CDN. Perhaps not enough bandwidth to support the stream to start or something else in the path.

09:50:17.912: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://mil02.contribute.live-video.net/app...
09:50:17.972: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe 2.5GbE Family Controller (ethernet, 1000↓/1000↑ mbps)
09:50:19.406: [rtmp stream: 'adv_stream'] Connection to rtmp://mil02.contribute.live-video.net/app (52.223.203.237) successful
09:50:19.406: [rtmp stream: 'adv_stream'] Socket send buffer is 65536 bytes
 
Top