Bug ID 1189829
Summary OBS Studio (Open Broadcaster) cannot record with NVidia GPU due to NVENC
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware 64bit
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component X11 3rd Party Driver
Assignee gfx-bugs@suse.de
Reporter jebin12raj@gmail.com
QA Contact sndirsch@suse.com
Found By ---
Blocker ---

Created attachment 852065 [details]
Error in OBS Studio

Issue:


OBS-studio installed from Repo fails to record or stream with NVidia GPU
enabled. The following error is thrown in the window

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

Check your video drivers are up to date. Try closing other recording software
which might be using NVENC such as NVIDIA Shadowplay or Windows 10 Game DVR.
```

In the konsole, the following errors appear. 

```
warning: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec:
Generic error in an external library
warning: [NVENC encoder] nvenc_create_internal failed, trying again without
Psycho Visual Tuning
info: ---------------------------------
info: [NVENC encoder: 'simple_h264_recording'] settings:
        rate_control: CQP
        bitrate:      0
        cqp:          21
        keyint:       250
        preset:       hq
        profile:      high
        width:        1280
        height:       720
        2-pass:       false
        b-frames:     2
        psycho-aq:    0
        GPU:          0

[h264_nvenc @ 0x55bdb5db4480] OpenEncodeSessionEx failed: unsupported device
(2): (no details)
[h264_nvenc @ 0x55bdb5db4480] No capable devices found
warning: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec:
Generic error in an external library
```

I have the related codecs installed as the following came up when I ran "ffmpeg
-codecs | grep nvenc"

```
DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
(decoders: h264 h264_v4l2m2m h264_qsv h264_cuvid ) (encoders: libx264
libx264rgb h264_nvenc h264_qsv h264_v4l2m2m h264_vaapi nvenc nvenc_h264 )
 DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding)
(decoders: hevc hevc_qsv hevc_v4l2m2m hevc_cuvid ) (encoders: libx265
nvenc_hevc hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi )
```

My issue is similar to what can be seen in this thread -
https://plus.diolinux.com.br/t/obs-studio-falha-ao-abrir-o-codec-nvenc-unknown-error-occurred/25340/19

Hence, I believe it is related to NVidia or the OBS studio build in the repo.

System Information:

Operating System: openSUSE Tumbleweed 20210824
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Kernel Version: 5.13.12-2-default (64-bit)
Graphics Platform: X11
Processors: 4 ������ Intel������ Core��������� i7-5500U CPU @ 2.40GHz
Memory: 7.7 GiB of RAM
Graphics Processor: NVIDIA GeForce 840M/PCIe/SSE2


You are receiving this mail because: