Spectacle recording failing on CachyOS

When I try to record a video with Spectacle, I get these errors:

❯ spectacle 
kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver \[direct backend\] in use for device "/dev/dri/renderD128" 
\[in @ 0x7f09f0047c00\] Setting BufferSourceContext.pix_fmt to a HW format requires hw_frames_ctx to be non-NULL! 
kpipewire_record_logging: Failed to create the buffer filter 
\[libx264 @ 0x7f09f0057f80\] -qscale is ignored, -crf is recommended. 
\[libx264 @ 0x7f09f0057f80\] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 
\[libx264 @ 0x7f09f0057f80\] profile Main, level 5.1, 4:2:0, 8-bit

The recording starts, but when I end it, it creates an empty file. The screenshot works normally.

Confirming the same issue here. I saved recordings as .webm and .mp4. Neither file plays.

Operating System: CachyOS Linux
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700K CPU @ 3.70GHz
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3060 Ti

Operating System: CachyOS Linux
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600X 6-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3060 Ti

Same Error, produces a blank mp4 file 261b in size. Fails to record GIF, WebM, WebP as well. Screenshot function still works.

1 Like

I would like to add that it does randomly work sometimes I get this in console instead

kpipewire_vaapi_logging: VAAPI: VA-API NVDEC driver [direct backend] in use for device “/dev/dri/renderD128”
kpipewire_vaapi_logging: DRM device not found
kpipewire_record_logging: Hardware encoding is not supported on this device.
[libx264 @ 0x7fc760058b00] -qscale is ignored, -crf is recommended.
[libx264 @ 0x7fc760058b00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7fc760058b00] profile Main, level 6.0, 4:2:0, 8-bit
kpipewire_dmabuf_logging: eglChooseConfig returned this many configs: 1
[libx264 @ 0x7fc760058b00] frame I:3 Avg QP:18.13 size: 52142
[libx264 @ 0x7fc760058b00] frame P:207 Avg QP:17.67 size: 85
[libx264 @ 0x7fc760058b00] mb I I16..4: 63.3% 0.0% 36.7%
[libx264 @ 0x7fc760058b00] mb P I16..4: 0.2% 0.0% 0.0% P16..4: 0.2% 0.0% 0.0% 0.0% 0.0% skip:99.6%
[libx264 @ 0x7fc760058b00] coded y,uvDC,uvAC intra: 27.8% 14.0% 12.4% inter: 0.1% 0.0% 0.0%
[libx264 @ 0x7fc760058b00] i16 v,h,dc,p: 65% 32% 2% 0%
[libx264 @ 0x7fc760058b00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 24% 20% 1% 4% 4% 6% 3% 5%
[libx264 @ 0x7fc760058b00] i8c dc,h,v,p: 78% 18% 4% 0%
[libx264 @ 0x7fc760058b00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fc760058b00] kb/s:309.90

having a similar issue in mine , i went to record a thing and when it saved as a .webm it wouldn’t open in anything , i tried it twice

Operating System: Nobara Linux 43
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.9-200.nobara.fc43.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i5-12600K
Memory: 64 GiB of RAM (62.6 GiB usable)
Graphics Processor 1: NVIDIA GeForce RTX 4080
Graphics Processor 2: Intel® UHD Graphics 770
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z690 AORUS ULTRA
System Version: -CF

Came here looking for this as well, to help track progress, this is filed under https://bugs.kde.org/show_bug.cgi?id=512429

At a glance it appears to be spectacle trying to use the nvidia vaapi driver as an encoder, which it does not support.

I’m using 6.4.5 plasma currently with a nvidia proprietary and never have seen spectacle video work (only tried once before and just sorta bombs out), but never really cared into until seeing this, wondering if the same on my slightly older arch. After letting claude dig around the errors mine produced, it was the first thing it asked to check if “vainfo” worked, and if I had libva-nvidia-driver installed.

Sure enough I didn’t (simplescreenrecorder/obs always worked though, so hmm), and after installing vainfo worked and spectacle produced a usable webm/h264 recording each, though complained a lot in the process still to wonder if it actually did until testing in vlc.

Just curious if yours is the same, obviously something is missing the libva-*-driver dependency for spectacle to actually work for me at least.

I tested recording again and now it seems to be working fine. Both webm and mp4.
I didn’t do anything except the usual update.

for me it worked back in September on the 14th , i just tested it again since i seen OP mentioned his working but still a no-go for me. no idea when it stopped working between last week n then , a shame its always something to do with nvidia stuff when things happen i guess :confused: anyway i’ll be on the lookout for when its sorted , but i just wanted to go on record to say i Have had it work in the past.