Bug 378004 - kdenlive uses CPU only decoding. doesn't use VAAPI. High CPU utilization, low framerate with multiple x264 tracks
Summary: kdenlive uses CPU only decoding. doesn't use VAAPI. High CPU utilization, low...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: git-master
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2017-03-24 08:25 UTC by Anton Gubarkov
Modified: 2022-09-25 04:48 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+
fritzibaby: low_hanging+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2017-03-24 08:25:27 UTC
When I play a x264 clip in the clip monitor (no effects attached), I can see that 2 kdenlive processes are at 100% CPU utilization. 
When I play a timeline with 3 clips in 3 tracks - I get a speed of 3 fps. 

When I do 'ffmpeg -hwaccel vaapi -i input.MTS -f null -' to test the load of the decoding on the cpu, I get 9x decoding speed with 1 process producing ~ 40% CPU. 

Can kdnelive be patched to make use of VAAPI for decoding?
Comment 1 Matej Mrenica 2018-05-18 18:40:49 UTC
I guess Kdenlive could be patched to use VAAPI but Nvidia GPUs would be left unsupported because of VDPAU support only.
Comment 2 Matej Mrenica 2018-06-05 09:56:27 UTC
(In reply to mthw0 from comment #1)
> I guess Kdenlive could be patched to use VAAPI but Nvidia GPUs would be left
> unsupported because of VDPAU support only.

There is a thing called 'VDPAU backend for VAAPI' but I dont know in what shape it is.
Comment 3 farid 2022-08-26 14:37:07 UTC
Can you please test the latest version and see if you can still reproduce?
Comment 4 Bug Janitor Service 2022-09-10 04:36:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-09-25 04:48:38 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!