Bug 500434

Summary: KPipeWire hardware accelerated H.264 encoding doesn't work: "Failed to create DRM device. Error Cannot allocate memory"
Product: [Frameworks and Libraries] KPipeWire Reporter: Avraham Hollander <anhollander516>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: aleixpol, nate, postix
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=488896
https://bugs.kde.org/show_bug.cgi?id=492844
https://bugs.kde.org/show_bug.cgi?id=500276
https://bugs.kde.org/show_bug.cgi?id=490868
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Spectacle stdout/stderr

Description Avraham Hollander 2025-02-19 21:45:15 UTC
Created attachment 178612 [details]
Spectacle stdout/stderr

SUMMARY
Hardware accelerated H.264 encoding with KPipeWire does not work at all

STEPS TO REPRODUCE
1. Run spectacle from the command line
2. Make sure the video file format is set to MP4/H.264
3. Start a recording

OBSERVED RESULT
Hardware accelerated encoding fails with "kpipewire_record_logging: Failed to create DRM device. Error Cannot allocate memory", and it switches to software-based libx264

EXPECTED RESULT
Hardware accelerated encoding works

SOFTWARE/OS VERSIONS
Operating System: Gentoo Linux 2.17
KDE Plasma Version: 6.3.1
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.3-20R5-sched-ext (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-10310U CPU @ 1.70GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Intel® UHD Graphics
Comment 1 Avraham Hollander 2025-02-19 21:47:45 UTC
I'm using KPipeWire 6.3.1, by the way. Not sure why I can't set that.