https://bugs.kde.org/show_bug.cgi?id=481727
Bug ID: 481727 Summary: Recording H.264 of a rectangular region fails 75% of the time with "not divisible by 2" error Classification: Applications Product: Spectacle Version: 24.01.95 Platform: Arch Linux OS: Linux Status: REPORTED Keywords: qt6 Severity: normal Priority: NOR Component: General Assignee: noaha...@gmail.com Reporter: adam.m.fontenot+...@gmail.com CC: k...@david-redondo.de Target Milestone: --- SUMMARY At first, as originally reported in Bug 481390, I thought H.264 recording always fails. Turns out, I was just unlucky and it failed the first half dozen times I tested it. I didn't realize debugging information was provided when you run Spectacle in the terminal, but I did so and immediately found the issue: [libx264 @ 0x75f4302e9400] width not divisible by 2 (573x365) kpipewire_record_logging: Could not open codec Generic error in an external library kpipewire_record_logging: No encoder could be created STEPS TO REPRODUCE 1. Select a rectangular region of the screen for recording, with H.264 selected as your codec. Make sure that one or both of the dimensions is not divisible by two (e.g. 573x365 in my example). 2. Try to start recording video. OBSERVED RESULT Nothing is ever recorded or output, Spectacle minimizes itself to the taskbar (red recording icon), but clicking on this icon does nothing. Spectacle has to be killed from the task manager or terminal. EXPECTED RESULT Spectacle should prevent selecting unacceptable rectangular regions for the current video codec. **Moreover**, Spectacle should respond to errors from Pipewire in a way that is (a) visible to the user, and (b) does not make Spectacle unusable until it is killed and restarted. My guess is that this sort-of affects VP9 as well, in that this is why the recording is usually one pixel *wider* than expected and includes the dashed rectangular outline that shows the recording region. This is in part what I reported in Bug 481391, although there are other issues here too. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.93.0 KDE Frameworks Version: 5.249.0 Qt Version: 6.7.0 Kernel Version: 6.7.4-arch1-1 (64-bit) Graphics Platform: Wayland -- You are receiving this mail because: You are watching all bug changes.