Bug 499683

Summary: Glitched video when recording qemu VM window with h264 codec and very specific qemu options
Product: [Applications] Spectacle Reporter: Marcelo Bossoni <mmbossoni>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: REPORTED ---    
Severity: normal CC: justin, kde, nate, postix
Priority: NOR    
Version First Reported In: 6.2.91   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Glitched video
nomal video (vp9)
Issue reproducible with Desktop + bluetooth wizard

Description Marcelo Bossoni 2025-02-08 14:07:38 UTC
Created attachment 178077 [details]
Glitched video

SUMMARY
When recording a qemu window using spectacle and using the h264 codec (vaapi?) it produces a video that keeps glitching to the first frames
VP9 one seems fine

STEPS TO REPRODUCE
1. Start a VM
2. Record a video using h264

OBSERVED RESULT
Video is glitching to black frames

EXPECTED RESULT
Video is normal, like vp9 counterpart

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.91
KDE Frameworks Version: 6.10.0
Qt Version: 6.9.0
Kernel Version: 6.13.1-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6750 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A37
System Version: 1.0

ADDITIONAL INFORMATION
Qemu VM started with
-display gtk,gl=es,zoom-to-fit=no -device virtio-vga-gl,xres=1680,yres=1050
Comment 1 Marcelo Bossoni 2025-02-08 14:08:06 UTC
Created attachment 178078 [details]
nomal video (vp9)
Comment 2 Justin Zobel 2025-02-10 10:25:32 UTC
I can replicate the issue but only when using the options you supplied:
-display gtk,gl=es,zoom-to-fit=no -device virtio-vga-gl,xres=1680,yres=1050

If you leave it at default settings it doesn't cause glitching.
Comment 3 Marcelo Bossoni 2025-02-10 11:28:49 UTC
There are some other scenarios that might reproduce this as well,
Like the "Pairing" progress screen from bluetooth wizard
Comment 4 Marcelo Bossoni 2025-05-24 19:51:11 UTC
Created attachment 181714 [details]
Issue reproducible with Desktop + bluetooth wizard

Added a video of reproduction of regular desktop recording + bluetooth wizard
On plasma 6.4 beta