Help with error: Failed to open NVENC codec: Generic error in an external library

deepee415

New Member
Trying to stream HDR content to my YouTube account with OBS v28.0.0 beta2 (64-bit) but receiving the following error:

Failed to open NVENC codec: Generic error in an external library

I retrieved the logs and see a few other warnings:
16:17:22.527: warning: The selected preset is deprecated. Use p1 to p7 + -tune or fast/medium/slow.
16:17:22.817: warning: 10 bit encode not supported

Unclear of next steps to resolve the error and warnings but hopefully the following adds more data points:
-Using HDR video content as a source to stream to YouTube
-Adjusted the settings for Color Format: P010 and Color Space: Rec. 2100 (PQ)
-Computer graphics info:
NVIDIA GeForce GTX 960
Driver Version 516.94
Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
15.94 GB RAM
1920x1080, 60Hz

Below is the link to the last log retrieved:

Any help would be greatly appreciated!
 

koala

Active Member
You cannot use hdr content with nvenc on that GPU, because the 5th Gen nvenc on that GPU is too old to support hdr. It's not in the hardware.
For creating hdr output with the nvenc encoder, you have to use hevc (h.265) as encoder instead of h.264, and at least a 6th Gen Nvenc (GTX 10x0 and above).
 
Top