Bug 493342 - Nvidia GPU acceleration does not seem to work on timeline/preview
Summary: Nvidia GPU acceleration does not seem to work on timeline/preview
Status: RESOLVED NOT A BUG
Alias: None
Product: kdenlive
Classification: Applications
Component: Timeline & Editing (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-19 00:27 UTC by agapp11@hotmail.com
Modified: 2024-10-20 07:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agapp11@hotmail.com 2024-09-19 00:27:58 UTC
SUMMARY
Very slow to preview video on timeline when many effects are added to the timeline/preview. It slows video playback to a crawl and I have a 2060. 

I checked the settings, but didn't find it. Maybe there's a hidden option to turn on GPU acceleration that I missed somewhere?

STEPS TO REPRODUCE
1. Add multiple video clips (>5 min) into preview
2. Add Audio
3.  Add multiple effects
4. Try to preview
5. Video is slow to playback

OBSERVED RESULT

Video is slow to playback sometimes becoming unusuable
EXPECTED RESULT

Video is smooth and loads my GPU. nvidia-smi shows that Kdenlive is not using my gpu.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-10750H CPU @ 2.60GHz
Memory: 23.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics


ADDITIONAL INFORMATION
Comment 1 Bernd 2024-09-19 16:04:16 UTC
You did not specify the version you are using.

Please use 24.08.1 as it fixed a playback and rendering issue causing lagginess and performance degradation. Update this bug report with the results (good or bad).

In general, you can improve playback performance by (a) using proxies, (b) reducing the preview resolution from 1:1 to 720p or lower, and (c) use the preview render feature
Comment 2 Bug Janitor Service 2024-10-04 03:47:18 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2024-10-19 03:47:37 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.
Comment 4 agapp11@hotmail.com 2024-10-19 04:33:31 UTC
(In reply to Bernd from comment #1)
> You did not specify the version you are using.
> 
> Please use 24.08.1 as it fixed a playback and rendering issue causing
> lagginess and performance degradation. Update this bug report with the
> results (good or bad).
> 
> In general, you can improve playback performance by (a) using proxies, (b)
> reducing the preview resolution from 1:1 to 720p or lower, and (c) use the
> preview render feature

Apologies for the late reply, I needed time to test things.

I am using version 24.08.2

The playback and rendering on the timeline is still slow. Adding a 1080p video slowed down playback significantly without proxy clips. Adding proxy clips made it better. However, adding effects like "obscure" and "Guassian Blur" will reduce the playback to a crawl even with proxy clips on a relatively recent pc that plays games fine.
Comment 5 Bernd 2024-10-20 07:54:40 UTC
(In reply to agapp11@hotmail.com from comment #4)
> However, adding effects like "obscure" and "Guassian
> Blur" will reduce the playback to a crawl even with proxy clips on a
> relatively recent pc that plays games fine.

Thanks for testing again and adding your results.

Please note that Kdenlive does NOT use the GPU for video playback. All effects are applied using MLT which relies exclusively on the CPU. Only the ENCODING part of the rendering is the only thing where the GPU is used, and then only by using the appropriate render preset (NVENC or VAAPI).

As I mentioned in my first reply you can improve playback by reducing the preview monitor resolution and by using the preview render feature.

I will close this bug report.