Question / Help Failed to open NVENC codec: Function not implemented

alexanderzhirov

New Member
I'm trying to run OBS with the ability to use the NVENC encoder. But the program gave me an error. I don’t quite understand why? I use the distribution kit Solus OS. I have the Nvidia driver installed.

Logfile OBS:

Code:
21:35:04.663: CPU Name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
21:35:04.663: CPU Speed: 2046.716MHz
21:35:04.664: Physical Cores: 4, Logical Cores: 8
21:35:04.664: Physical Memory: 16040MB Total, 10030MB Free
21:35:04.664: Kernel Version: Linux 5.6.4-152.current
21:35:04.664: Distribution: "Solus" "4.1"
21:35:04.664: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.7
21:35:04.665: Portable mode: false
21:35:04.710: OBS 25.0.8 (linux)
21:35:04.710: ---------------------------------
21:35:04.710: ---------------------------------
21:35:04.710: audio settings reset:
21:35:04.710:     samples per sec: 44100
21:35:04.710:     speakers:        2
21:35:04.715: ---------------------------------
21:35:04.715: Initializing OpenGL...
21:35:04.777: Loading up OpenGL on adapter NVIDIA Corporation GeForce GTX 1050 Ti/PCIe/SSE2
21:35:04.777: OpenGL loaded successfully, version 3.3.0 NVIDIA 390.132, shading language 3.30 NVIDIA via Cg compiler
21:35:04.786: ---------------------------------
21:35:04.786: video settings reset:
21:35:04.786:     base resolution:   1280x1024
21:35:04.786:     output resolution: 1280x1024
21:35:04.786:     downscale filter:  Bicubic
21:35:04.786:     fps:               60/1
21:35:04.786:     format:            NV12
21:35:04.786:     YUV mode:          601/Partial
21:35:04.786: NV12 texture support not available
21:35:04.787: Audio monitoring device:
21:35:04.787:     name: По умолчанию
21:35:04.787:     id: default
21:35:04.787: ---------------------------------
21:35:04.788: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
21:35:04.850: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
21:35:04.850: No blackmagic support
21:35:04.855: NVENC supported
21:35:04.855: FFMPEG VAAPI supported
21:35:04.859: ---------------------------------
21:35:04.859:   Loaded Modules:
21:35:04.859:     text-freetype2.so
21:35:04.859:     rtmp-services.so
21:35:04.859:     obs-x264.so
21:35:04.859:     obs-transitions.so
21:35:04.859:     obs-outputs.so
21:35:04.859:     obs-filters.so
21:35:04.859:     obs-ffmpeg.so
21:35:04.859:     linux-v4l2.so
21:35:04.859:     linux-pulseaudio.so
21:35:04.859:     linux-decklink.so
21:35:04.859:     linux-capture.so
21:35:04.859:     linux-alsa.so
21:35:04.859:     image-source.so
21:35:04.859:     frontend-tools.so
21:35:04.859:     decklink-ouput-ui.so
21:35:04.859: ---------------------------------
21:35:04.859: ==== Startup complete ===============================================
21:35:04.860: Service '' not found
21:35:04.861: All scene data cleared
21:35:04.861: ------------------------------------------------
21:35:04.863: pulse-input: Server name: 'pulseaudio 12.2-rebootstrapped'
21:35:04.864: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
21:35:04.864: pulse-input: Started recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
21:35:04.864: [Loaded global audio device]: 'Устройство воспроизведения'
21:35:04.864: pulse-input: Server name: 'pulseaudio 12.2-rebootstrapped'
21:35:04.865: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
21:35:04.865: pulse-input: Started recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
21:35:04.865: [Loaded global audio device]: 'Mic/Aux'
21:35:04.866: xshm-input: Geometry 2560x1080 @ 0,0
21:35:04.866: Switched to scene 'Сцена'
21:35:04.866: ------------------------------------------------
21:35:04.866: Loaded scenes:
21:35:04.866: - scene 'Сцена':
21:35:04.866:     - source: 'Захват экрана (XSHM)' (xshm_input)
21:35:04.866: ------------------------------------------------
21:35:05.380: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds (source: Mic/Aux)
21:35:05.380:
21:35:10.529: ---------------------------------
21:35:10.529: [NVENC encoder: 'simple_h264_recording'] settings:
21:35:10.529:     rate_control: CQP
21:35:10.529:     bitrate:      0
21:35:10.529:     cqp:          15
21:35:10.529:     keyint:       250
21:35:10.529:     preset:       hq
21:35:10.529:     profile:      high
21:35:10.529:     width:        1280
21:35:10.529:     height:       1024
21:35:10.529:     2-pass:       false
21:35:10.529:     b-frames:     2
21:35:10.529:     GPU:          0
21:35:10.529:
21:35:10.531: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec: Функция не реализована
21:35:13.019: ==== Shutting down ==================================================
21:35:13.022: Switched to scene '(null)'
21:35:13.033: pulse-input: Stopped recording from 'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
21:35:13.033: pulse-input: Got 1391 packets with 363629 frames
21:35:13.033: pulse-input: Stopped recording from 'alsa_input.pci-0000_00_1b.0.analog-stereo'
21:35:13.033: pulse-input: Got 822 packets with 365448 frames
21:35:13.034: All scene data cleared
21:35:13.034: ------------------------------------------------
21:35:13.042: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8452
21:35:13.042: Failed to make context current.
21:35:13.043: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8454
21:35:13.043: Failed to make context current.
21:35:13.043: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8456
21:35:13.043: Failed to make context current.
21:35:13.043: Failed to fetch parent window geometry!
21:35:13.043: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: BadLength (poly request too large or internal Xlib length error), Serial: 8458
21:35:13.043: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: BadAlloc (insufficient resources for operation), Serial: 8459
21:35:13.043: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8461
21:35:13.043: Failed to make context current.
21:35:13.047: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8463
21:35:13.047: Failed to make context current.
21:35:13.047: X Error: GLXBadDrawable, Major opcode: 154, Minor opcode: 26, Serial: 8465
21:35:13.047: Failed to make context current.
21:35:13.092: Freeing OBS context data
21:35:13.105: [Scripting] Total detached callbacks: 0
21:35:13.110: == Profiler Results =============================
21:35:13.110: run_program_init: 410,298 ms
21:35:13.110:  ┣OBSApp::AppInit: 3,048 ms
21:35:13.110:  ┃ ┗OBSApp::InitLocale: 2,231 ms
21:35:13.110:  ┗OBSApp::OBSInit: 326,549 ms
21:35:13.110:    ┣obs_startup: 13,544 ms
21:35:13.110:    ┗OBSBasic::OBSInit: 267,9 ms
21:35:13.110:      ┣OBSBasic::InitBasicConfig: 0,076 ms
21:35:13.110:      ┣OBSBasic::ResetAudio: 0,153 ms
21:35:13.110:      ┣OBSBasic::ResetVideo: 76,328 ms
21:35:13.110:      ┣OBSBasic::InitOBSCallbacks: 0,003 ms
21:35:13.110:      ┣OBSBasic::InitHotkeys: 0,029 ms
21:35:13.110:      ┣obs_load_all_modules: 72,517 ms
21:35:13.110:      ┃ ┣obs_init_module(decklink-ouput-ui.so): 0,452 ms
21:35:13.110:      ┃ ┣obs_init_module(frontend-tools.so): 55,247 ms
21:35:13.110:      ┃ ┣obs_init_module(image-source.so): 0,004 ms
21:35:13.110:      ┃ ┣obs_init_module(linux-alsa.so): 0,001 ms
21:35:13.110:      ┃ ┣obs_init_module(linux-capture.so): 0,402 ms
21:35:13.110:      ┃ ┣obs_init_module(linux-decklink.so): 0,102 ms
21:35:13.110:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0,001 ms
21:35:13.110:      ┃ ┣obs_init_module(linux-v4l2.so): 0,001 ms
21:35:13.110:      ┃ ┣obs_init_module(obs-ffmpeg.so): 0,669 ms
21:35:13.110:      ┃ ┃ ┗nvenc_check: 0,602 ms
21:35:13.110:      ┃ ┣obs_init_module(obs-filters.so): 0,018 ms
21:35:13.110:      ┃ ┣obs_init_module(obs-outputs.so): 0,001 ms
21:35:13.110:      ┃ ┣obs_init_module(obs-transitions.so): 0,003 ms
21:35:13.110:      ┃ ┣obs_init_module(obs-x264.so): 0,001 ms
21:35:13.110:      ┃ ┣obs_init_module(rtmp-services.so): 0,089 ms
21:35:13.110:      ┃ ┗obs_init_module(text-freetype2.so): 0,005 ms
21:35:13.110:      ┣OBSBasic::ResetOutputs: 0,091 ms
21:35:13.110:      ┣OBSBasic::CreateHotkeys: 0,025 ms
21:35:13.110:      ┣OBSBasic::InitService: 1,107 ms
21:35:13.110:      ┣OBSBasic::InitPrimitives: 0,123 ms
21:35:13.110:      ┗OBSBasic::Load: 7,639 ms
21:35:13.110: obs_hotkey_thread(25 ms): min=0,074 ms, median=0,349 ms, max=5,648 ms, 99th percentile=3,097 ms, 100% below 25 ms
21:35:13.110: audio_thread(Audio): min=0 ms, median=0,071 ms, max=0,27 ms, 99th percentile=0,177 ms
21:35:13.110: obs_graphics_thread(16,6667 ms): min=0,503 ms, median=7,212 ms, max=38,355 ms, 99th percentile=10,278 ms, 99,5968% below 16,667 ms
21:35:13.110:  ┣tick_sources: min=0,001 ms, median=5,427 ms, max=35,517 ms, 99th percentile=6,757 ms
21:35:13.110:  ┣output_frame: min=0,207 ms, median=0,605 ms, max=3,673 ms, 99th percentile=2,102 ms
21:35:13.111:  ┃ ┗gs_context(video->graphics): min=0,206 ms, median=0,604 ms, max=3,673 ms, 99th percentile=2,101 ms
21:35:13.111:  ┃   ┣render_video: min=0,016 ms, median=0,274 ms, max=1,814 ms, 99th percentile=0,385 ms
21:35:13.111:  ┃   ┃ ┗render_main_texture: min=0,005 ms, median=0,247 ms, max=1,79 ms, 99th percentile=0,356 ms
21:35:13.111:  ┃   ┗gs_flush: min=0 ms, median=0,02 ms, max=3,409 ms, 99th percentile=0,089 ms
21:35:13.111:  ┗render_displays: min=0,062 ms, median=0,848 ms, max=9,886 ms, 99th percentile=1,552 ms
21:35:13.111: =================================================
21:35:13.111: == Profiler Time Between Calls ==================
21:35:13.111: obs_hotkey_thread(25 ms): min=25,144 ms, median=25,432 ms, max=30,727 ms, 66,055% within ±2% of 25 ms (0% lower, 33,945% higher)
21:35:13.111: obs_graphics_thread(16,6667 ms): min=11,646 ms, median=16,667 ms, max=38,359 ms, 99,1919% within ±2% of 16,667 ms (0,40404% lower, 0,40404% higher)
21:35:13.111: =================================================
21:35:13.114: Number of memory leaks: 0
 

alexanderzhirov

New Member
You were right. A very strange situation. I had driver version 390 installed from the standard “Hardware Drivers” application. For all the time I used Solus, I never went there again. I thought that the driver itself is updated, with every new update Solus. Now I went into the “Hardware Drivers” and saw that i can install the update. After installing this update, I got support for the NVENC codec.

2020-05-22_13-27.png
 
Top