No hardware acceleration in Kdenlive Flatpak with h264_nvenc

Hi there,

the problem is: I can use h264_nvenc with the standalone version of kdenlive but not with the flatpak version.

Here comes the error:

[h264_nvenc @ 0x7f8120001a40] Driver does not support the required nvenc API version. Required: 13.0 Found: 12.2 [h264_nvenc @ 0x7f8120001a40] The minimum required Nvidia driver for nvenc is (unknown) or newer

I’m running standalone Kdenlive with version 24.12.3 and I tried the flatpak version of Kdenlive 24.12.3. They should be the same.

My Hardware-Configuration:

GPU Nvidia Geforce GTX 960

Here is the output of nvidia-smi:

Mon Mar 24 13:03:06 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.144.03             Driver Version: 550.144.03     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 960         Off |   00000000:01:00.0  On |                  N/A |
| 45%   27C    P5             19W /  208W |     241MiB /   4096MiB |     16%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      1167      G   /usr/lib/Xorg                                 107MiB |
|    0   N/A  N/A      1724      G   ...ures=SpareRendererForSitePerProcess         16MiB |
|    0   N/A  N/A      2011      G   ...seed-version=20250321-130127.532000         75MiB |
+-----------------------------------------------------------------------------------------+

On the cli there is no problem with ´ffmpeg -encoders | grep nv´ :

 V....D av1_nvenc            NVIDIA NVENC av1 encoder (codec av1)
 V....D h264_nvenc           NVIDIA NVENC H.264 encoder (codec h264)
 V....D hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)

What can I do?

greetings,
flatjoke

What is the nvidia driver version that you have on Flatpak? I suspect Flatpak is using the wrong or older driver somehow from this message

Driver does not support the required nvenc API version. Required: 13.0 Found: 12.2

Ok, this ist the output of ´flatpak list´:

OBS Studio                        com.obsproject.Studio                                    31.0.2                            stable              system
Steam                             com.valvesoftware.Steam                                  1.0.0.81                          stable              system
TAP-plugins                       org.freedesktop.LinuxAudio.Plugins.TAP                   1.0.1                             24.08               system
SWH                               org.freedesktop.LinuxAudio.Plugins.swh                   0.4.17                            24.08               system
Freedesktop Platform              org.freedesktop.Platform                                 freedesktop-sdk-23.08.29          23.08               system
Freedesktop Platform              org.freedesktop.Platform                                 freedesktop-sdk-24.08.16          24.08               system
i386                              org.freedesktop.Platform.Compat.i386                                                       23.08               system
i386                              org.freedesktop.Platform.Compat.i386                                                       24.08               system
Mesa                              org.freedesktop.Platform.GL.default                      24.3.4                            23.08               system
Mesa (Extra)                      org.freedesktop.Platform.GL.default                      24.3.4                            23.08-extra         system
Mesa                              org.freedesktop.Platform.GL.default                      24.3.4                            24.08               system
Mesa (Extra)                      org.freedesktop.Platform.GL.default                      24.3.4                            24.08extra          system
nvidia-570-133-07                 org.freedesktop.Platform.GL.nvidia-570-133-07                                              1.4                 system
Mesa                              org.freedesktop.Platform.GL32.default                    24.3.4                            23.08               system
Mesa (Extra)                      org.freedesktop.Platform.GL32.default                    24.3.4                            23.08-extra         system
Mesa                              org.freedesktop.Platform.GL32.default                    24.3.4                            24.08               system
Mesa (Extra)                      org.freedesktop.Platform.GL32.default                    24.3.4                            24.08extra          system
nvidia-570-133-07                 org.freedesktop.Platform.GL32.nvidia-570-133-07                                            1.4                 system
Intel VAAPI driver                org.freedesktop.Platform.VAAPI.Intel                                                       23.08               system
Intel VAAPI driver                org.freedesktop.Platform.VAAPI.Intel                                                       24.08               system
i386                              org.freedesktop.Platform.VAAPI.Intel.i386                                                  23.08               system
i386                              org.freedesktop.Platform.VAAPI.Intel.i386                                                  24.08               system
openh264                          org.freedesktop.Platform.openh264                        2.1.0                             2.2.0               system
openh264                          org.freedesktop.Platform.openh264                        2.4.1                             2.4.1               system
openh264                          org.freedesktop.Platform.openh264                        2.5.1                             2.5.1               system
Adwaita theme                     org.kde.KStyle.Adwaita                                                                     6.6                 system
Adwaita theme                     org.kde.KStyle.Adwaita                                                                     6.8                 system
KDE Application Platform          org.kde.Platform                                                                           6.6                 system
KDE Application Platform          org.kde.Platform                                                                           6.8                 system
Kdenlive                          org.kde.kdenlive                                         24.12.3                           stable              system
Lingot                            org.nongnu.lingot                                        1.1.1                             stable              system
Yamagi Quake II                   org.yamagi.YamagiQ2                                      8.4.1                             stable              system

Where are those version numbers? Maybe it is the cuda-version? I don’t know how to change the cuda version in the flatpak environment.