Rendering crash: Cannot load libcuda.so.1

I’m trying to convert a mkv file into a mp4 one.
I downloaded the mkv video like this:

$ yt-dlp -f bv+ba https://www.youtube.com/watch?v=fh4lAQyl_Mw

Then I just place it in the kdenlive timeline and ask it to render with the hardware accelerated nvenc H265 VBR Nvidia codec and I get this error message in the Job Queue tab:

Rendering of /home/cpn/Temp/Video/x/Pernambucanas.mp4 crashed

libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
[hevc_nvenc @ 0x7f9c00201a00] Cannot load libcuda.so.1

And this system notification:

We're sorry, it looks like “melt-7” crashed. Please contact the developer if you want to report the issue. 
Kdenlive: 25.04.3
MLT: 7.32.0
FFmpeg
KDE Frameworks: 6.13.0
Qt: Using 6.9.0 and built against 6.9.0
KDE Flatpak runtime (Wayland)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.15.8-200.fc42.x86_64

The video card is Nvidia 3080 Ti:

$ dnf list \*nvidia\*
Updating and loading repositories:
Repositories loaded.
Installed packages
akmod-nvidia.x86_64                                 3:575.64.05-2.fc42   rpmfusion-nonfree-updates
kmod-nvidia-6.15.3-200.fc42.x86_64.x86_64           3:575.64-2.fc42      @commandline
kmod-nvidia-6.15.4-200.fc42.x86_64.x86_64           3:575.64-2.fc42      @commandline
kmod-nvidia-6.15.5-200.fc42.x86_64.x86_64           3:575.64.03-2.fc42   @commandline
kmod-nvidia-6.15.6-200.fc42.x86_64.x86_64           3:575.64.03-2.fc42   @commandline
kmod-nvidia-6.15.7-200.fc42.x86_64.x86_64           3:575.64.03-2.fc42   @commandline
kmod-nvidia-6.15.8-200.fc42.x86_64.x86_64           3:575.64.05-2.fc42   @commandline
nvidia-gpu-firmware.noarch                          20250708-1.fc42      updates
nvidia-modprobe.x86_64                              3:575.64.05-1.fc42   rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                          3:575.64.05-1.fc42   rpmfusion-nonfree-updates
nvidia-settings.x86_64                              3:575.64.05-1.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                          3:575.64.05-2.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                     3:575.64.05-2.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:575.64.05-2.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:575.64.05-2.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                     3:575.64.05-2.fc42   rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                    3:575.64.05-2.fc42   rpmfusion-nonfree-updates
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.8-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 32 GiB of RAM (31,2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3080 Ti
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550M DS3H

Any ideas?

libcuda.so.1 is indeed installed

# ll /usr/lib64/libcuda.so*
lrwxrwxrwx. 1 root root       20 Jul 23 21:00 /usr/lib64/libcuda.so -> libcuda.so.575.64.05
lrwxrwxrwx. 1 root root       20 Jul 23 21:00 /usr/lib64/libcuda.so.1 -> libcuda.so.575.64.05
-rwxr-xr-x. 1 root root 92316728 Jul 18 13:27 /usr/lib64/libcuda.so.575.64.05

Sure, set up your yt-dlp with some abbreviations maybe…

From your URL I’d go with this to list available formats: yt-dlp -F "https://www.youtube.com/watch?v=fh4lAQyl_Mw"

You can choose the mp4 at 352x288 (240p) at 30fps from there…

However, you can go straight for mp4 download like this:

yt-dlp -f "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" "https://www.youtube.com/watch?v=fh4lAQyl_Mw"

The difference between mkv and mp4 is just the container - so you could really just copy the file you already have:

ffmpeg -i input.mkv -c copy output.mp4
1 Like

Thank you for the workaround although it is not the solution to the problem.

As soon as I upgraded the Flatpak install of org.freedesktop.Platform.GL.nvidia to 575-64-05 it worked