Obs nvidia encoder crashed, then Pc froze

PaiSand

Active Member
You may try restarting the computer (not just turning it off and on) to see if this helps fixind the issue.
If this not helps, then you may need to clean install the driver. Nvidia installer program have a custom process where you can tell it (click the box) to perfome a correct instalation.
Or you can use a more in depth solution:
 
Last edited:

Sicron

New Member
You may try restarting the computer (not just turning it off and on) to see if this helps fixind the issue.
If this not helps, then you may need to clean install the driver. Nvidia installer program have a custom process where you can tell it (click the box) to perfome a correct instalation.
Or you can use a more in depth solution:
got that program, uninstalled obs, reinstalled the drivers but now it will say the encoder is overloaded and when I view the recording it has like 1 frame every 3-4 seconds here's the log
I have a brand new RTX 4070 Ti and I don't really know the right settings

 

rockbottom

Active Member
After you get the driver situation figured out, disable Game DVR & work on getting your Sample Rates matched up. The mismatches are causing audio to lag really bad.

18:42:59.641: OBS 29.0.2 (64-bit, windows)
18:42:59.641: ---------------------------------
18:42:59.653: ---------------------------------
18:42:59.653: audio settings reset:
18:42:59.653: samples per sec: 48000
18:42:59.653: speakers: 2
18:42:59.653: max buffering: 960 milliseconds
18:42:59.653: buffering type: dynamically increasing

18:43:01.677: WASAPI: Device 'Speakers (Scarlett Solo USB)' [44100 Hz] initialized
18:43:01.678: WASAPI: Device 'Microphone (Scarlett Solo USB)' [44100 Hz] initialized
18:43:01.730: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)

18:52:24.542: WASAPI: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' [48000 Hz] initialized
18:52:24.544: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' invalidated. Retrying (source: Disc)
18:52:24.545: WASAPI: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' [48000 Hz] initialized

19:10:07.652: adding 384 milliseconds of audio buffering, total audio buffering is now 810 milliseconds (source: Jok)
19:10:07.652:
19:15:48.962: Max audio buffering reached!
19:15:48.962: adding 149 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Jok)
19:15:48.962:
19:15:48.984: Source Jok audio is lagging (over by 212.51 ms) at max audio buffering. Restarting source audio.
19:40:43.146: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Raw video/2023-03-25 19-10-01.mp4' stopped
19:40:43.146: Output 'adv_file_output': stopping
19:40:43.146: Output 'adv_file_output': Total frames output: 110369
19:40:43.146: Output 'adv_file_output': Total drawn frames: 103173 (110452 attempted)
19:40:43.146: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 7279 (6.6%)
19:40:43.147: ==== Recording Stop ================================================
19:40:43.147: Video stopped, number of skipped frames due to encoding lag: 127/110451 (0.1%)
19:41:52.677: Settings changed (outputs)
19:41:52.677: ------------------------------------------------
19:42:34.168: Source Jok audio is lagging (over by 147.74 ms) at max audio buffering. Restarting source audio.
 

rockbottom

Active Member
Other than the low bit-rate, these settings are good. Preset can be P6 for 1080p. P7 will also work but you won't see a difference & it will lower the encoder throughput.

19:10:01.877: rate_control: CBR
19:10:01.877: bitrate: 2500
19:10:01.877: cqp: 0
19:10:01.877: keyint: 250
19:10:01.877: preset: p5
19:10:01.877: tuning: hq
19:10:01.877: multipass: qres
19:10:01.877: profile: high
19:10:01.877: width: 1920
19:10:01.877: height: 1080
19:10:01.877: b-frames: 2
19:10:01.877: psycho-aq: 1
19:10:01.877: GPU: 0
 

Sicron

New Member
After you get the driver situation figured out, disable Game DVR & work on getting your Sample Rates matched up. The mismatches are causing audio to lag really bad.

18:42:59.641: OBS 29.0.2 (64-bit, windows)
18:42:59.641: ---------------------------------
18:42:59.653: ---------------------------------
18:42:59.653: audio settings reset:
18:42:59.653: samples per sec: 48000
18:42:59.653: speakers: 2
18:42:59.653: max buffering: 960 milliseconds
18:42:59.653: buffering type: dynamically increasing

18:43:01.677: WASAPI: Device 'Speakers (Scarlett Solo USB)' [44100 Hz] initialized
18:43:01.678: WASAPI: Device 'Microphone (Scarlett Solo USB)' [44100 Hz] initialized
18:43:01.730: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)

18:52:24.542: WASAPI: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' [48000 Hz] initialized
18:52:24.544: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' invalidated. Retrying (source: Disc)
18:52:24.545: WASAPI: Device '[VIRTUAL_AUDIO_DEVICE_PROCESS_LOOPBACK]' [48000 Hz] initialized

19:10:07.652: adding 384 milliseconds of audio buffering, total audio buffering is now 810 milliseconds (source: Jok)
19:10:07.652:
19:15:48.962: Max audio buffering reached!
19:15:48.962: adding 149 milliseconds of audio buffering, total audio buffering is now 960 milliseconds (source: Jok)
19:15:48.962:
19:15:48.984: Source Jok audio is lagging (over by 212.51 ms) at max audio buffering. Restarting source audio.
19:40:43.146: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Raw video/2023-03-25 19-10-01.mp4' stopped
19:40:43.146: Output 'adv_file_output': stopping
19:40:43.146: Output 'adv_file_output': Total frames output: 110369
19:40:43.146: Output 'adv_file_output': Total drawn frames: 103173 (110452 attempted)
19:40:43.146: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 7279 (6.6%)
19:40:43.147: ==== Recording Stop ================================================
19:40:43.147: Video stopped, number of skipped frames due to encoding lag: 127/110451 (0.1%)
19:41:52.677: Settings changed (outputs)
19:41:52.677: ------------------------------------------------
19:42:34.168: Source Jok audio is lagging (over by 147.74 ms) at max audio buffering. Restarting source audio.
I think I manged that... but now it started doing the encoder thing again... And I'm sure my PC can handle it, the first day I got OBS I recorded Apex, playing on a 2K monitor with ultra settings with 165 framerate (vsync on), it it went fine till it started crashing... I am hopeless, Tried some stuff in the past hours but I'm not that computer savy
 

rockbottom

Active Member
Game DVR can be found/disabled in Windows settings.

Cam link is @ 48K.

Driver crashed again. Rollback to the last driver that worked correctly for you.

For your encoder settings, change to Preset P6 & uncheck Look-ahead & Psycho Visual Tuning. The minor encoding lag should go away.
 

rockbottom

Active Member
Looking at too many logs, I just realized you're recording not streaming.

CBR is meant for streaming, for the next test, use VBR or CQP rate control. If you decide to try CQP, set CQ=18 to get started.
 

Sicron

New Member
I
Game DVR can be found/disabled in Windows settings.

Cam link is @ 48K.

Driver crashed again. Rollback to the last driver that worked correctly for you.

For your encoder settings, change to Preset P6 & uncheck Look-ahead & Psycho Visual Tuning. The minor encoding lag should go away.
I disabled DVR, and restored to 2 days ago, that seems to do the trick, now I record in P7 with no problem, hope the issue won't come back, really appreciate everything you guys did for me <3 DO you have any last tips for me as to the settings I should use? I am a bigginer as you figured. Now I record in 1080p 60fps at 12k bit rate and here are my logs: https://obsproject.com/logs/Y376MCYOTSEclfnt
Everything works and looks fine, but I heard you can also increase the bitrate, is that needed?
 

Sicron

New Member
So, after a bit of playing around, I stopped the signal to my capture card (since I'm recording on the same PC as the Capture card is on and after a bit of research it's useless) and started recording in display capture and it works wonders, but the first time I recorded it was throught the capture card and worked fine... no idea why
 
Top