OBS Studio giving error : Failed to open NVENC codec: Unknown error occurred

info: CPU Name: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx
info: CPU Speed: 2321.955MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 5885MB Total, 2138MB Free
info: Kernel Version: Linux 5.4.89-1-MANJARO
info: Distribution: "Manjaro Linux" Unknown
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.10
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
QMetaObject::connectSlotsByName: No matching signal for on_transitionRemove_clicked()
info: OBS 26.1.0-2 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 48000
	speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter AMD AMD Radeon(TM) Vega 8 Graphics (RAVEN, DRM 3.35.0, 5.4.89-1-MANJARO, LLVM 11.0.1)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 20.3.3, shading language 4.60
info: ---------------------------------
info: video settings reset:
	base resolution:   1920x1080
	output resolution: 1280x720
	downscale filter:  Bicubic
	fps:               10/1
	format:            NV12
	YUV mode:          709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
	name: Default
	id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
info: No blackmagic support
warning: v4l2loopback not installed, virtual camera disabled
info: NVENC supported
info: FFMPEG VAAPI supported
info: VLC found, VLC video source enabled
info: ---------------------------------
info:   Loaded Modules:
info:     vlc-video.so
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-jack.so
info:     linux-decklink.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-ouput-ui.so
info:     decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 14.2'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'bluez_sink.F0_A9_68_05_3E_4F.a2dp_sink.monitor'
info: pulse-am: Prevented feedback-loop in 'default'
info: [Loaded global audio device]: 'Desktop Audio'
info:     - monitoring: monitor and output
info: pulse-input: Server name: 'pulseaudio 14.2'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'bluez_sink.F0_A9_68_05_3E_4F.a2dp_sink.monitor'
info: pulse-am: Prevented feedback-loop in 'bluez_sink.F0_A9_68_05_3E_4F.a2dp_sink.monitor'
info: [Loaded global audio device]: 'Desktop Audio 2'
info:     - monitoring: monitor and output
info: pulse-input: Server name: 'pulseaudio 14.2'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_05_00.6.analog-stereo'
info: pulse-am: Server name: 'pulseaudio 14.2'
info: pulse-am: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-am: Started Monitoring in 'bluez_sink.F0_A9_68_05_3E_4F.a2dp_sink.monitor'
info: [Loaded global audio device]: 'Mic/Aux'
info:     - monitoring: monitor and output
info: xshm-input: Geometry 1920x1080 @ 0,0
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Screen Capture (XSHM)' (xshm_input)
info:     - source: 'Zoom meeting' (xcomposite_input)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Desktop Audio)
QObject::connect: No such signal QLineEdit::editingFinished(const QString &)
QObject::connect:  (sender name:   'customServer')
QObject::connect:  (receiver name: 'OBSBasicSettings')
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/
Attempted path: /usr/share/obs/obs-studio/themes/
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
	GPU:          0
[h264_nvenc @ 0x559b8736f8c0] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
warning: [NVENC encoder: 'simple_h264_recording'] Failed to open NVENC codec: Unknown error occurred 

How do I get OBS working ?
thanks in advance

Hello, you have an AMD Vega GPU, no way you can use nvenc which is for nvidia

1 Like

how do I use AMD Vega gpu instead of NVENC . There is no option to select it

How to compile Nvidia 340xx drivers manually ?

You have an AMD GPU, you don’t need and don’t need to have installed Nvidia drivers

OBS output from my pc with AMD GPU

info: Initializing OpenGL...
info: Loading up OpenGL on adapter AMD AMD Radeon (TM) Pro WX 4100 (POLARIS11, DRM 3.35.0, 5.4.89-1-MANJARO, LLVM 11.0.1)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 20.3.3, shading language 4.60
info: ---------------------------------
info: video settings reset:
	base resolution:   1920x1080
	output resolution: 1920x1080
	downscale filter:  Bicubic
	fps:               60/1
	format:            NV12
	YUV mode:          709/Partial
info: NV12 texture support not available
info: Audio monitoring device:
	name: Default
	id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
info: No blackmagic support
warning: v4l2loopback not installed, virtual camera disabled
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory

info: FFMPEG VAAPI supported
info: VLC found, VLC video source enabled
info: ---------------------------------

How do I use AMD gpu .
There is no option to select it

Use Software x264 instead of NVENC.