You are not logged in.

#1 2022-12-17 03:00:19

clamintus
Member
Registered: 2022-12-17
Posts: 3

Glitched video when trying to record the screen in X11

I'm using Arch Linux x86_64. My DE is KDE Plasma, using X11. My screen resolution is 1366x768.
My hardware: Dynabook Satellite Pro E10-S-101 (Laptop), with dual core Intel Celeron N4020 @ 2.800GHz and integrated graphics Intel GeminiLake [UHD Graphics 600]
I've tried using different software for screen recording (recordmydesktop, OBS Studio with XSHM input, even raw ffmpeg using x11grab) but the result is always the same.
On a fresh system restart, if I try to record my screen with this command:

ffmpeg -f x11grab -video_size 1366x768 -framerate 25 -i $DISPLAY -c:v libx264 -preset ultrafast -c:a aac screen.mp4

Everything appears to be alright for the first couple of frames, which are captured correctly.
Then, every other frame is just a copy of the first two, even if I terminate the recording and begin a new one.
The only exception is the cursor, which is updated correctly every time.

Here are some visual proofs of the issue:
Video 1
The first screen recording since I've restarted the system. Only the starting frames are correct. Notice how the CPU usage indicator on the desktop shows always the same two values.
I was moving the color picker window while I was recording, but the video doesn't show it. Same for every other recording below.

Video 2
Before starting this recording I moved the console window to the upper right corner of the screen, but it still appears where it was before, near the upper left corner.
Also I moved the color picker window here too, as I said before.

Video 3
Same here.
The console window is still displayed at the upper left corner, plus the color picker is, as always, still.

I've noticed that if I try to take a screenshot by pressing PrtScr on the keyboard, even the outputted image from Spectacle is just one of those two frames.

Now, if I wait some minutes, some even stranger behavior begins to happen.
When I try to record videos and/or taking screenshots after some time, either one of the two frames or both frames can get updated to a new one from the moment I try to capture/record the screen.

If I try to start a Wayland session, OBS works just fine with PipeWire.

Offline

Board footer

Powered by FluxBB