RTX 4090 encoder Problems while streaming

ZenneX313

New Member
first of all the recent log: https://obsproject.com/logs/BDDS0maPSFdYyBYZ

I have huge Encoder problems. When I'm 30-40 minutes into the Stream my whole pc starts to lag because of what I think is a gpu encoder overload. I drop massive frames for like 5-10 seconds. In the task manager you can see the gpu is nearly at 0% usage this time: https://imgur.com/a/pzNXIPX It's like the whole gpu shuts down for 5 seconds.

Tried it with especially Planet Zoo. The gpu load is around 85-90% all the time so not even 100%.

I got a NV_ENC_ERR_INVALID_DEVICE 3 days ago aswell.

Here are my settings.
Driver are unistalled with DDU and the latest driver is installed, didn't help.

Ryzen 7 7800X3D
Palit RTX 4090
32GB DDR5 Ram
 

qhobbes

Active Member
1. At least one of your audio devices has a sample rate that doesn't match the rest. This can result in audio drift over time or sound distortion. Check your audio devices in Windows settings (both Playback and Recording) and ensure the Default Format (under Advanced) is consistent. 48000 Hz is recommended.
OBS Sample Rate: 48000 Hz
Microphone (Scarlett 2i2 USB): 44100 Hz
Lautsprecher (Scarlett 2i2 USB): 44100 Hz
[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]: 48000 Hz
2. In Windows, we recommend that "Game Mode" be enabled. Game Mode can be enabled via the Windows "Settings" app, under Gaming > Game Mode.
3. Please do not ignore service bitrate limits and change your bitrate to 6000.
4. Contact StreamElements to resolve all of their errors in your log.
4. Your GPU is maxed out and OBS can't render scenes and encode frames fast enough (1.2% of the time). Running a game without vertical/G-sync or a frame rate limiter will frequently cause performance issues with OBS because your GPU will be maxed out. OBS requires a little GPU to render your scene.

Enable V/G-sync or set a reasonable frame rate limit (120, 90, 60, 30) that your GPU can handle without hitting 100% usage.

If that's not enough you may also need to turn down some of the video quality options in the game. If you are experiencing issues in general while using OBS, your GPU may be overloaded for the settings you are trying to use.

Multipass, Look-ahead and Adaptive Quantization all use additional GPU. Disable those in the Output settings.

Please check our guide for ideas why this may be happening, and steps you can take to correct it: GPU Overload Issues.

You may also want to try the Studio Driver. If still having issues, post a new log.
 

ZenneX313

New Member
Hey I tried nearly everything and I had sessions from 3 hours+ without Problems, thanks for that!

Until today: 20 minutes into stream and my whole PC froze and I had to manually restart him.
The log: https://obsproject.com/logs/7oCW7YE7jZqwlb63

I did stress test my gpu but everything is fine, temps are perfect, PSU delivers enough Power. I honestly don't know what to do anymore
 

FabioElizeu

New Member
Hey I tried nearly everything and I had sessions from 3 hours+ without Problems, thanks for that!

Until today: 20 minutes into stream and my whole PC froze and I had to manually restart him.
The log: https://obsproject.com/logs/7oCW7YE7jZqwlb63

I did stress test my gpu but everything is fine, temps are perfect, PSU delivers enough Power. I honestly don't know what to do anymore

Try disable Browser Hardware Acceleration.
 

rockbottom

Active Member
To add some more info to the above suggestions:

From your 1st log, the 2nd log is incomplete/worthless.

Rendering Lag is GPU overload. Load reduction is in order. Clean up the rendering lag & most if not all of the encoding lag will stop too. Your encoding settings are good to go. See link below for more info.

20:04:37.105: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1081 (0.8%)
20:04:37.105: Video stopped, number of skipped frames due to encoding lag: 1592/131212 (1.2%)

To save resources, run that LG @ 120HZ & the Asus @ 60. The other 2 monitors are good to go.

Next, disable HDR on the LG to save even more resources.

Test

19:25:40.702: output 0:
19:25:40.702: name=LG ULTRAGEAR+
19:25:40.702: pos={0, 0}
19:25:40.702: size={2560, 1440}
19:25:40.702: attached=true
19:25:40.702: refresh=240
19:25:40.702: bits_per_color=10
19:25:40.702: space=RGB_FULL_G2084_NONE_P2020

19:25:40.702: primaries=[r=(0.676758, 0.321289), g=(0.249023, 0.684570), b=(0.146484, 0.056641), wp=(0.313477, 0.329102)]
19:25:40.702: relative_gamut_area=[709=1.364737, P3=1.006045, 2020=0.721770]
19:25:40.702: sdr_white_nits=240
19:25:40.702: nit_range=[min=0.000000, max=603.698425, max_full_frame=276.793701]
19:25:40.702: dpi=96 (100%)
19:25:40.702: id=\\?\DISPLAY#GSM5C7C#5&335611a6&1&UID4353#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
19:25:40.702: alt_id=\\.\DISPLAY1
19:25:40.703: output 1:
19:25:40.703: name=ASUS MG279
19:25:40.703: pos={2560, -1344}
19:25:40.703: size={2560, 1440}
19:25:40.703: attached=true
19:25:40.703: refresh=144
19:25:40.703: bits_per_color=8
19:25:40.703: space=RGB_FULL_G22_NONE_P709
19:25:40.703: primaries=[r=(0.659180, 0.332031), g=(0.306641, 0.632812), b=(0.151367, 0.050781), wp=(0.313477, 0.329102)]
19:25:40.703: relative_gamut_area=[709=1.124016, P3=0.828592, 2020=0.594459]
19:25:40.703: sdr_white_nits=80
19:25:40.703: nit_range=[min=0.500000, max=270.000000, max_full_frame=270.000000]
19:25:40.703: dpi=96 (100%)
19:25:40.703: id=\\?\DISPLAY#ACI27A7#5&335611a6&1&UID4357#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}
19:25:40.703: alt_id=\\.\DISPLAY2

 
Top