Failed to open NVENC codec: Unknown error occurred

nicolasdumitru

New Member
Hello! I am trying to use OBS on NixOS to record my screen and I get the following error when:

screenshot-2024-05-07-22-07-54.png


Context: I have a laptop with an Nvidia GPU and I use NixOS unstable on it. My system configuration (in use at the time of writing) can be found here.
I have just checked my Nvidia driver version and it's the currently the latest on Nvidia's (550.78), so the error message seems to be slightly off. I've also tested OBS on Arch, with the same driver version and the same version of OBS (30.1.2) and it worked. Thus, I figured there must be something that I've done wrong setting things up. I can't figure it out, though (I must mention that I am a complete beginner when it comes to recording video on my computer). I have attached a log file to this post. Please help me fix this issue. Thank you!
 

Attachments

  • obs-log.txt
    11 KB · Views: 16

csaltos

New Member
I've got the same error and after installing the nVidia drivers correctly, I have to run:

sudo apt-get install libffmpeg-nvenc-dev

And now everything works like a charm.

Optionally you can choose the Advance settings for the Output section and select ffmpeg instead of nvenc but just as a workaround.

I'm using Debian 12 Linux with Gnome, Wayland and OBS 29.0.2.1 and nVidia drivers 555.42.06-1 with a chip nVidia GeForce RTX 2070 Mobile / Max-Q Refresh
 
Top