Bug 419091

Summary: x264-nvenc too many jobs at the same time
Product: [Applications] kdenlive Reporter: sfjuocekr <sfjuocekr>
Component: Project Bin & ImportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED WORKSFORME    
Severity: minor CC: berndmj, fritzibaby, thomas.devoogdt
Priority: NOR Keywords: triaged
Version First Reported In: 20.04.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description sfjuocekr 2020-03-22 01:21:26 UTC
SUMMARY


STEPS TO REPRODUCE
1. Add a bunch of clips, more than the amount of GPU's in the system...
2. Select all the clips
3. Make proxies

OBSERVED RESULT

The x264-nvenc proxy process is spawned for every clip selected, which is undesirable as you can only encode one video per GPU. You will get a bunch of errors which become very cumbersome to click away if you added a hundred clips.

x264-nvenc either complains it ran out of memory or that parameters were incorrect for the video, but a single proxy encode always works.

EXPECTED RESULT
x264-nvenc is spawned once per GPU and the entire proxy process is batched to keep every GPU occupied.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE neon 5.18
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
I have two GPU's in my system and seem to be able to encode two videos at the same time. I assumed it spawned a job on each GPU, but have not tested yet.
Comment 1 sfjuocekr 2020-03-22 01:45:18 UTC
Just tested, but it can apparently do two videos per GPU and it currently wont even bother using the second.
Comment 2 Thomas Devoogdt 2020-05-09 09:37:58 UTC
Indeed, I can confirm that it is possible to render max 2 proxy clips at once on the latest version (Kdenlive Version 20.04.0). Every other will spawn an error message. This is very cumbersome as I know have to manually convert two clips at a time. 

Error message:
[h264_nvenc @ 0x5590d3d97cc0] OpenEncodeSessionEx failed: out of memory (10)
[h264_nvenc @ 0x5590d3d97cc0] No NVENC capable devices found
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I don't know if it does matter but here some additional installation information:
org.kde.kdenlive/x86_64/stable                          system,current
org.freedesktop.Platform.GL.default/x86_64/19.08        system,runtime                                                                            
org.freedesktop.Platform.GL.nvidia-418-87-01/x86_64/1.4 system,runtime                                                                            
org.freedesktop.Platform.GL.nvidia-440-33-01/x86_64/1.4 system,runtime                                                                            
org.freedesktop.Platform.GL.nvidia-440-64-00/x86_64/1.4 system,runtime                                                                            
org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6         system,runtime                                                                            
org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08       system,runtime                                                                            
org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08       system,runtime                                                                            
org.freedesktop.Platform.ffmpeg-full/x86_64/19.08       system,runtime                                                                            
org.freedesktop.Platform.ffmpeg/x86_64/1.6              system,runtime                                                                            
org.freedesktop.Platform.html5-codecs/x86_64/18.08      system,runtime                                                                            
org.freedesktop.Platform.openh264/x86_64/19.08          system,runtime                                                                            
org.freedesktop.Platform.openh264/x86_64/2.0            system,runtime                                                                            
org.freedesktop.Platform/x86_64/1.6                     system,runtime                                                                            
org.freedesktop.Platform/x86_64/19.08                   system,runtime

$ flatpak info org.kde.kdenlive/x86_64/stable
Ref: app/org.kde.kdenlive/x86_64/stable
ID: org.kde.kdenlive
Arch: x86_64
Branch: stable
Origin: flathub
Collection ID: org.flathub.Stable
Date: 2020-04-28 14:32:00 +0000
Subject: Issue #51 - Enable Qt HiDPI support (90fa7878)
Commit: 6188292c88f419b822b8cb493e6e77aca43c0ba9af48c3ebbbd8693d181ce63b
Parent: 784187b026cbe81e294be6979ebffa4d45d6dc48ff99d720922cc613761172b0
Location: /var/lib/flatpak/app/org.kde.kdenlive/x86_64/stable/6188292c88f419b822b8cb493e6e77aca43c0ba9af48c3ebbbd8693d181ce63b
Installed size: 137,3 MB
Runtime: org.kde.Platform/x86_64/5.14
Sdk: org.kde.Sdk/x86_64/5.14
Comment 3 Bernd 2024-12-23 23:46:17 UTC
Hi and thank you for your patience.

Can you please check whether this issue still exists in the latest version 24.12.0?

If yes, please update this report to reflect the new version.

If it works now like you expect it would, you may change the status of this report to RESOLVED - FIXED.

At any rate, this report will be closed if there is no activity for the next 30 days.
Comment 4 Bug Janitor Service 2025-01-07 03:47:25 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 5 Bug Janitor Service 2025-01-22 03:47:45 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.