Kdenlive hardware acceleration enable

hello,

how do i enable hardware acceleration in kdenlive?

The option “GPU processing (movit library)” is grayed out in settings/playback.

When applying effects (like alpha shapes (mask)) moving the box is very slow, the app freezes and lag.

❯ inxi -F
System:
  Host: desktop Kernel: 6.7.9-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.0.1 Distro: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: B650M-HDV/M.2 serial: <superuser required>
    UEFI: American Megatrends LLC. v: 2.08 date: 03/01/2024
CPU:
  Info: 8-core model: AMD Ryzen 7 7700X bits: 64 type: MT MCP cache: L2: 8 MiB
  Speed (MHz): avg: 2491 min/max: 400/5573 cores: 1: 400 2: 4293 3: 400
    4: 3841 5: 5122 6: 3567 7: 400 8: 4002 9: 400 10: 3957 11: 400 12: 4526
    13: 3575 14: 400 15: 400 16: 4182
Graphics:
  Device-1: NVIDIA GA106 [RTX A2000] driver: nvidia v: 550.54.14
  Device-2: AMD Raphael driver: amdgpu v: kernel
  Display: wayland server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4
    compositor: kwin_wayland driver: X: loaded: nvidia
    gpu: nvidia,nvidia-nvswitch resolution: 1: 2560x1440~60Hz
    2: 3440x1440~120Hz
  API: EGL v: 1.5 drivers: nvidia,radeonsi,swrast,zink
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.54.14
    renderer: NVIDIA RTX A2000/PCIe/SSE2
  API: Vulkan v: 1.3.279 drivers: nvidia surfaces: xcb,xlib,wayland
Audio:
  Device-1: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
  Device-2: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  API: ALSA v: k6.7.9-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.0.3 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e
  IF: wlp7s0 state: down mac: 06:0a:de:0a:52:0d
  Device-2: Realtek RTL8125 2.5GbE driver: r8169
  IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: 9c:6b:00:10:61:ef
  IF-ID-1: virbr0 state: down mac: 52:54:00:16:6e:44
Bluetooth:
  Device-1: Foxconn / Hon Hai Wireless_Device driver: btusb type: USB
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: 38:D5:7A:4B:7E:E2 bt-v: 5.2
Drives:
  Local Storage: total: 6.38 TiB used: 1.12 TiB (17.6%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SFYRD2000G size: 1.82 TiB
  ID-2: /dev/nvme1n1 vendor: Kingston model: SNV2S2000G size: 1.82 TiB
  ID-3: /dev/sda vendor: Western Digital model: WD30EZRX-00DC0B0
    size: 2.73 TiB
  ID-4: /dev/sdb model: USB Flash Memory size: 14.45 GiB type: USB
Partition:
  ID-1: / size: 473.56 GiB used: 229.43 GiB (48.4%) fs: ext4
    dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 511 MiB used: 148 KiB (0.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 36 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p2
Sensors:
  System Temperatures: cpu: 42.4 C mobo: 28.0 C gpu: amdgpu temp: 37.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB note: est. available: 30.48 GiB used: 4.51 GiB (14.8%)
  Processes: 387 Uptime: 5m Shell: fish inxi: 3.3.33

❯ yay -Ss kdenlive
...
extra/kdenlive 24.02.0-2 (16.8 MiB 72.4 MiB) [kde-applications kde-multimedia] (Installed)
    A non-linear video editor for Linux using the MLT video framework
mm@desktop ~
❯ yay -Ss movit
aur/movit-git r915.0b17055-2 (+2 0.00)
    The modern video toolkit
extra/movit 1.7.1-1 (231.4 KiB 754.5 KiB) (Installed)
    The modern video toolkit

Arch Linux — перенесена 1.7.1-1 (x86_64)

Sorry for too late to reply but actually the GPU Accelaration is greyed out because it’s hardcoded in the kdenlive’s source code and i tried to manually enable it and recompile the kdenlive but the fact that it kept crashing so yup that just made it unusable which is probably why it is grayed out.