Bug 476864

Summary: NVENC H265 rendering crash with B frames as references
Product: [Applications] kdenlive Reporter: mashkal2000 <mashkal2000>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: 23.08.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description mashkal2000@gmail.com 2023-11-12 04:54:15 UTC
SUMMARY
When rendering with the built-in NVENC H265 Profile, it crashes:

Qt: Session management error: Could not open network socket
[hevc_nvenc @ 0x7f7294202040] B frames as references are not supported
[hevc_nvenc @ 0x7f7294202040] No capable devices found

Creating a custom profile with the following parameter fixes the crash: b_ref_mode=0. Please add this parameter to the default profile.

Default profile (crashes):
ab=160k acodec=aac channels=2 f=mp4 real_time=-1 threads=0 vb=6000k vcodec=hevc_nvenc

Updated profile (doesn't crash):
ab=160k acodec=aac b_ref_mode=0 channels=2 f=mp4 real_time=-1 threads=0 vb=6000k vcodec=hevc_nvenc

This is with a GTX 1060 on KDE Neon with proprietary driver 535.129.03