Bug Report OBS 25.0.3-1: "Failed to open NVENC codec"

Fabian

Member
Until yesterday I was able to record just fine in OBS, using my NVidia GPU. Then I installed updates and now I get this error message:
"Starting the output failed. Please check the log for details.
Note: If you are using the NVENC or AMD encoders, make sure your video drivers are up to date."
OBS was updated from 25.0.1-1 to 25.0.3-1, FFMPEG from 1:4.2.2-3 to 1:4.2.2-4 and a bunch of other programs and libraries, but not my graphics driver, that is still "video-hybrid-intel-nvidia-440xx-prime". I tried downgrading both packages (and "dav1d"), but I still get the same error message. A list of all updates that were done today is attached.
Here is the relevant log line (rest attached):
Code:
[NVENC encoder: 'streaming_h264'] Failed to open NVENC codec: Unknown error occurred
OBS still detects NVENC and also VAAPI and lets me select both, but only with x264 recording actually works (which is really slow and usually can't keep up well on my computer).
Since nothing graphics/OBS related changed on my computer except for updates, I assume this is a bug in either OBS or a library that OBS uses. Please tell me if there is a workaround (other than recording with CPU) or if this is a bug in a library (and in that case, where to report it).

GPU: NVIDIA GeForce GTX 1050
System: Manjaro 19.0.2
Graphics driver: video-hybrid-intel-nvidia-440xx-prime
OBS version: 25.0.3-1
FFMPEG version: 1:4.2.2-4
 

Attachments

Tuna

Member
Code:
17:08:14.951: Loading up OpenGL on adapter Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)
OBS loads on your intel card. I guess nvidia then does really want to work.
 

Fabian

Member
Here is the log when running "prime-run obs". It says "Loading up OpenGL on adapter NVIDIA Corporation GeForce GTX 1050/PCIe/SSE2" instead. But the error message at the end is the same.
 

Attachments

Fabian

Member
I installed the snap version (without uninstalling the other one, that shouldn't matter) and it's worse, it doesn't even start:

Code:
fabian@laptop ~]$ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/obs-studio_obs-studio.desktop /var/lib/snapd/snap/bin/obs-studio
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /snap/obs-studio/1042/usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Simple            :    VAEntrypointEncSlice
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointEncSliceLP
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSlice
      VAProfileH264High               :    VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :    VAEntrypointVLD
      VAProfileH264MultiviewHigh      :    VAEntrypointEncSlice
      VAProfileH264StereoHigh         :    VAEntrypointVLD
      VAProfileH264StereoHigh         :    VAEntrypointEncSlice
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileNone                   :    VAEntrypointVideoProc
      VAProfileJPEGBaseline           :    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointEncPicture
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileVP8Version0_3          :    VAEntrypointEncSlice
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointEncSlice
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointEncSlice
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileVP9Profile0            :    VAEntrypointEncSlice
      VAProfileVP9Profile2            :    VAEntrypointVLD
/snap/obs-studio/1042/usr/sbin:/snap/obs-studio/1042/usr/bin:/snap/obs-studio/1042/sbin:/snap/obs-studio/1042/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Qt: Session management error: None of the authentication protocols specified are supported
Attempted path: ../../data/obs-studio/locale/en-US.ini
Attempted path: ../../data/obs-studio/locale.ini
Attempted path: ../../data/obs-studio/themes/Dark.qss
info: CPU Name: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
info: CPU Speed: 2063.491MHz
info: Physical Cores: 4, Logical Cores: 8
info: Physical Memory: 15900MB Total, 10515MB Free
info: Kernel Version: Linux 5.5.13-1-MANJARO
info: Distribution: "Ubuntu Core" "18"
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.7
info: Portable mode: false
Fontconfig warning: FcPattern object weight does not accept value [40 210)
Segmentation fault (core dumped)
 

Fabian

Member
I did almost nothing with my system since my last comment, except making a backup of it and updating the Minecraft launcher, but now recording with the GPU works again. Magic, I guess? My uptime is currently 29 hours, I hope that's not required for GPU recording. :D
Is there something to do for closing such a thread as "cannot reproduce anymore", like on a bug tracker?
BTW, @catalyst1987: Your error message says "function not implemented", that's different from my error. I've found a bunch of websites about your problem when researching mine, so maybe you can find an explanation why it happened reasonably easily.
 

Harold

Active Member
Neither the snap nor the flatpak versions are provided by us. We can't guarantee ANY functionality with either of them.
 
Top