Question / Help NVENC H.264 Not working

wdysffs

New Member
Hi, I'm having issues with the NVENC. It doesn't seem to work, always ending to the same error;
[NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Generic error in an external library.

And this problem only appears, when I use the "GPU" setting above 0. Can someone explain, what exactly does it do?


I have the latest drivers.


Code:
17:29:09.291: CPU Name: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
17:29:09.292: CPU Speed: 4200MHz
17:29:09.292: Physical Cores: 4, Logical Cores: 8
17:29:09.292: Physical Memory: 16348MB Total, 12892MB Free
17:29:09.292: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
17:29:09.292: Running as administrator: false
17:29:09.292: Aero is Enabled (Aero is always on for windows 8 and above)
17:29:09.292: Portable mode: false
17:29:09.297: OBS 19.0.3 (64bit, windows)
17:29:09.297: ---------------------------------
17:29:09.298: ---------------------------------
17:29:09.298: audio settings reset:
17:29:09.298:     samples per sec: 48000
17:29:09.298:     speakers:        2
17:29:09.298: ---------------------------------
17:29:09.298: Initializing D3D11...
17:29:09.298: Available Video Adapters:
17:29:09.299:     Adapter 1: NVIDIA GeForce GTX 1080 Ti
17:29:09.299:       Dedicated VRAM: 3067084800
17:29:09.299:       Shared VRAM:    4276441088
17:29:09.299:       output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:29:09.300: Loading up D3D11 on adapter NVIDIA GeForce GTX 1080 Ti (0)
17:29:09.706: D3D11 loaded successfully, feature level used: 45056
17:29:10.186: ---------------------------------
17:29:10.186: video settings reset:
17:29:10.186:     base resolution:   1920x1080
17:29:10.186:     output resolution: 1920x1080
17:29:10.186:     downscale filter:  Bilinear
17:29:10.186:     fps:               48/1
17:29:10.186:     format:            NV12
17:29:10.187: Audio monitoring device:
17:29:10.187:     name: Oletusarvo
17:29:10.187:     id: default
17:29:10.187: ---------------------------------
17:29:10.188: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
17:29:10.188: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:29:10.189: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
17:29:10.189: Failed to initialize module 'enc-amf.dll'
17:29:10.193: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
17:29:10.193: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
17:29:10.193: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
17:29:10.193: Failed to load 'en-US' text for module: 'obs-browser.dll'
17:29:10.193: [browser_source: 'Version: 1.29.0']
17:29:10.195: NVENC supported
17:29:10.216: Couldn't find VLC installation, VLC video source disabled
17:29:10.219: No blackmagic support
17:29:10.246: ---------------------------------
17:29:10.246:   Loaded Modules:
17:29:10.246:     win-wasapi.dll
17:29:10.246:     win-mf.dll
17:29:10.246:     win-dshow.dll
17:29:10.246:     win-decklink.dll
17:29:10.246:     win-capture.dll
17:29:10.246:     vlc-video.dll
17:29:10.246:     text-freetype2.dll
17:29:10.246:     rtmp-services.dll
17:29:10.246:     obs-x264.dll
17:29:10.246:     obs-vst.dll
17:29:10.246:     obs-transitions.dll
17:29:10.246:     obs-text.dll
17:29:10.246:     obs-qsv11.dll
17:29:10.246:     obs-outputs.dll
17:29:10.246:     obs-filters.dll
17:29:10.246:     obs-ffmpeg.dll
17:29:10.246:     obs-browser.dll
17:29:10.246:     image-source.dll
17:29:10.246:     frontend-tools.dll
17:29:10.246:     enc-amf.dll
17:29:10.246:     coreaudio-encoder.dll
17:29:10.246: ==== Startup complete ===============================================
17:29:10.247: All scene data cleared
17:29:10.247: ------------------------------------------------
17:29:10.268: WASAPI: Device 'Kaiuttimet (Logitech G430 Gaming Headset)' initialized
17:29:10.270: WASAPI: Device 'Mikrofoni (Logitech G430 Gaming Headset)' initialized
17:29:10.273: Switched to scene 'Skene'
17:29:10.273: ------------------------------------------------
17:29:10.273: Loaded scenes:
17:29:10.273: - scene 'Skene':
17:29:10.273:     - source: 'Monitori' (monitor_capture)
17:29:10.273: ------------------------------------------------
17:29:10.304: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
17:29:11.207: ---------------------------------
17:29:11.207: [NVENC encoder: 'streaming_h264'] settings:
17:29:11.207:     rate_control: CBR
17:29:11.207:     bitrate:      5000
17:29:11.207:     cqp:          0
17:29:11.207:     keyint:       96
17:29:11.207:     preset:       hq
17:29:11.207:     profile:      main
17:29:11.207:     level:        auto
17:29:11.207:     width:        1920
17:29:11.207:     height:       1080
17:29:11.207:     2-pass:       true
17:29:11.207:     b-frames:     0
17:29:11.207:     GPU:          1
17:29:11.207:
17:29:11.375: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Generic error in an external library
17:30:15.176: ---------------------------------
17:30:15.176: [NVENC encoder: 'streaming_h264'] settings:
17:30:15.176:     rate_control: CBR
17:30:15.176:     bitrate:      5000
17:30:15.176:     cqp:          0
17:30:15.176:     keyint:       96
17:30:15.176:     preset:       hq
17:30:15.176:     profile:      main
17:30:15.176:     level:        auto
17:30:15.176:     width:        1920
17:30:15.176:     height:       1080
17:30:15.176:     2-pass:       true
17:30:15.176:     b-frames:     0
17:30:15.176:     GPU:          1
17:30:15.176:
17:30:15.177: [NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Generic error in an external library
 

BK-Morpheus

Active Member
Just an idea:
"17:30:15.176: GPU: 1"
Isn't this usually set to GPU: 0?
Maybe you can try it again with GPU: 0
 

wdysffs

New Member
Just an idea:
"17:30:15.176: GPU: 1"
Isn't this usually set to GPU: 0?
Maybe you can try it again with GPU: 0

Yeah, it works while it's in 0. But why exactly doesn't it work with it? And what are those settings?

A) GPU (x)?
B) B-Frames (x)?
 
Last edited:

BK-Morpheus

Active Member
I think the GPU value is only needed when you have more than one graphics card installed (SLI).
Maybe it starts at 0 (like the CPU cores in the taskmanager affinity setting).
For detailed information about encoding features like b-frames, you could use google for more details.
Basically more b-frames = better compression, but more load on GPU/CPU.
 
Top