NVENC Codec problem

Vexrell

New Member
I am trying to use a webcam to record something. I can preview the webcam feed without issue, but when I click record I get an error that says "Failed to open NVENC codec: Unknown error occurred. Try installing the latest NVIDIA driver."

Log file: https://obsproject.com/logs/zrPl39j1UDB1yqxs

Linux MATE 1.26.2 release 24.04.2
NVIDIA Geforce 960 graphics card w/ Nvidia 550 driver, though have had the same error with 570 driver
OpenGL 4.6.0

Asked initially on Linux Mate forums and was directed here:

Is there anything I can do to correct this?
 
Looks promising here:

Code:
19:14:59.898: NVENC supported

And here:

Code:
19:15:14.892: [FFmpeg NVENC encoder: 'simple_video_recording'] settings:
19:15:14.892:     encoder:      NVIDIA NVENC H.264 (FFmpeg)
19:15:14.892:     rate_control: CQP
19:15:14.892:     bitrate:      0
19:15:14.892:     cqp:          21
19:15:14.892:     keyint:       250
19:15:14.892:     preset:       p5
19:15:14.892:     tuning:       hq
19:15:14.892:     multipass:    qres
19:15:14.892:     profile:      high
19:15:14.892:     width:        1272
19:15:14.892:     height:       720
19:15:14.892:     b-frames:     2
19:15:14.892:     psycho-aq:    0
19:15:14.892:     GPU:          0
19:15:14.892:

But then the log looks like it's missing when the error occurs? There's nothing between 19:28:18.137 and 20:35:13.252:

Code:
19:28:18.137: 
20:35:13.252: QXcbConnection: XCB error: 3 (BadWindow), sequence: 37954, resource id: 12110731, major code: 40 (TranslateCoords), minor code: 0

Unless the error _is_ the XCB error - which doesn't seem all that related to NVENC, but OBS could be reporting the problem in a weird way.
 

Vexrell

New Member
Looks promising here:

Code:
19:14:59.898: NVENC supported

And here:

Code:
19:15:14.892: [FFmpeg NVENC encoder: 'simple_video_recording'] settings:
19:15:14.892:     encoder:      NVIDIA NVENC H.264 (FFmpeg)
19:15:14.892:     rate_control: CQP
19:15:14.892:     bitrate:      0
19:15:14.892:     cqp:          21
19:15:14.892:     keyint:       250
19:15:14.892:     preset:       p5
19:15:14.892:     tuning:       hq
19:15:14.892:     multipass:    qres
19:15:14.892:     profile:      high
19:15:14.892:     width:        1272
19:15:14.892:     height:       720
19:15:14.892:     b-frames:     2
19:15:14.892:     psycho-aq:    0
19:15:14.892:     GPU:          0
19:15:14.892:

But then the log looks like it's missing when the error occurs? There's nothing between 19:28:18.137 and 20:35:13.252:

Code:
19:28:18.137:
20:35:13.252: QXcbConnection: XCB error: 3 (BadWindow), sequence: 37954, resource id: 12110731, major code: 40 (TranslateCoords), minor code: 0

Unless the error _is_ the XCB error - which doesn't seem all that related to NVENC, but OBS could be reporting the problem in a weird way.
So what's that mean exactly?
Does is give some indication for what's wrong?
 
If NVENC is supported, and you can see NVENC options when you go to OBS -> Settings, then that means OBS is seeing all the right things - except when you start to record which is when it goes to actually _use_ the encoder.

As I mentioned, it seemed like the log was incomplete. After it reported encoder selection, there's a 13 minute gap before an empty log message, then another hour before the XCB error. Maybe try a fresh OBS session (you could also 'restart in safe mode') and try recording - then upload the log?
 
Top