Using dedicated GPU in kdenlive

I have an Nvida Geforce RTX 3060 ti GPU in my computer, but when I render video in kdenlive it is using my CPU (I checked by running nvidia-smi during video processing). Within kdenlive system settings the option to select my GPU is grey and is still grey when I use prime-run to run Kdenlive. What am I missing?


Mod edit: Topic title spelling corrected to enhance search results. No charge.

Please provide system information as described (below) while conforming to forum presentation guidelines.

I’m sure someone will help when they are able.

Regards.


Welcome to the Manjaro community

As a new or infrequent forum user, please take some time to familiarise yourself with Forum requirements, and the many ways to use the forum to your benefit:


Update Announcements

The Update Announcements contain important information and a Known Issues and Solutions section that should generally be checked before posting a request for support.

System Information

While information from *-fetch type apps might be fine for someone wishing to buy your computer, for Support purposes it’s better to ask your system directly; :eyes:

Output of the inxi command with appropriate parameters will achieve this (naturally, formatted according to forum guidelines) and will generally be more useful for those wishing to help:

inxi --filter --verbosity=8

or the short form:

inxi -zv8

Be prepared to provide output from other commands whenever asked. It’s equally important to provide as much actionable information as possible in your first post, rather than simply indicating there is a problem.

Highly Recommended
Required Reading
Technical Resources

Kernel: 6.12.39-1-MANJARO x86_64 Up: 5d 20h 8m Mem: 10.76/30.49 GiB (35.3%)
Storage: 931.51 GiB (10.6% used) Procs: 509 Shell: Zsh inxi: 3.3.38

GPU: Nvidia GeForce RTX 3060 ti
Video Driver: Nvidia-SMI 575.64.03
CUDA Version: 12.9

I believe you are referring to this?


That one has been hardcoded to be greyed out since Jan 2024, the comment on this corresponding line in the source code says it all.

But that’s just for playback, not rendering, which should be possible provided you have the required packages installed. I can’t really recall as weirdly they’re not even listed as optional dependencies (in my opinion, they should be), but just try these:

  • movit
  • cuda
  • nvidia-utils
  • libva-nvidia-driver
  • libvdpau

Restart kdenlive if it’s currently running and click Render, the hardware accelerated presets should not be marked as unsupported codec anymore like this:

1 Like

Thanks for your response, the list of packages you provided was very helpful and I did go ahead and install them. The hardware accelerated presets were not marked as an unsupported codec anymore either which is great.

I believe the issue is with how I framed my initial problem, when I say the rendered clip is laggy I mean in the playback window and in the timeline, which is where I do all my editing. This should be a seamless process with my hardware, so there is some issue I am still unable to identify and resolve.

The mystery goes on, and maybe I just find an alternative software for video editing on which I can use my NVIDIA GPU to its fullest potential - or alas, I give up entirely, accept that Linux does not cater to NVIDIA currently, accept my limitations in that I cannot write the correct code to facilitate my setup and just install Windows 11 :frowning:

As I wrote above, this is Kdenlive internal issue which hasn’t been solved. In the mean time, if you can’t edit with lower resolution (1/4?), use Davinci Resolve instead. But to use your GPU more, you have to purchase the studio version. The free version does use GPU, just at a much lower rate than CPU. You will get a lot of additional features as well, it’s a professional software (read: used in box office movie production) after all.

There are some alternatives.

However, whether or not any of the following are fit for purpose, only you can decide.

Regards.

I appreciate this response, I will definitely try some of these alternatives out.

Okay, I’ll definitely try Davinci Resolve, I have heard good things about it. Thanks.