Kdenlive AMDGPU GPU acceleration

Hey there!

I recently gotten a new camera and wondering if folks have any luck using VAAPI with kdenlive with a AMDGPU gpu. I specifically have a 7900 XTX.

This is my timeline preview encoding profile:

hwaccel=vaapi hwaccel_device=renderD128 hwaccel_output_format=vaapi vcodec=h265_vaapi vb=30000k

This is my rendering profile:

hwaccel=vaapi hwaccel_device=renderD128 hwaccel_output_format=vaapi vaapi_device=/dev/dri/renderD128

I’ve confirmed my dGPU is on card 0. I’m seeing 0% utilization on my dGPU and dropping lots of frames on timeline preview. Rendering is also painfully slow.

I’ve also tried to test transcoding with ffmpeg and that works perfectly and was very fast

ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -i ~/Videos/Raw\ Footage/DJI_20240514133234_0003_D.MP4 -vf 'format=nv12,hwupload' -c:v h264_vaapi -c:a aac -f mp4 /tmp/test.mp