Bug 499683 - Glitched video when recording qemu VM window with h264 codec and very specific qemu options
Summary: Glitched video when recording qemu VM window with h264 codec and very specifi...
Status: REPORTED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.2.91
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-08 14:07 UTC by Marcelo Bossoni
Modified: 2025-08-16 12:01 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Glitched video (1.63 MB, video/mp4)
2025-02-08 14:07 UTC, Marcelo Bossoni
Details
nomal video (vp9) (522.99 KB, video/webm)
2025-02-08 14:08 UTC, Marcelo Bossoni
Details
Issue reproducible with Desktop + bluetooth wizard (1.15 MB, video/mp4)
2025-05-24 19:51 UTC, Marcelo Bossoni
Details

Note You need to log in before you can comment on or make changes to this bug.
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