You are not logged in.

#1 2021-05-17 13:57:29

lzrbm3k
Member
Registered: 2021-05-17
Posts: 4

[SOLVED] Screen sharing/recording alternates with old images of screen

When recording my screen with ffmpeg (or any recorder using ffmpeg), depending on the encoding speed, the recording is rapidly alternating between the actual screen and older images of the screen that aren't there anymore, such as the splash screen or an image of the screen from minutes ago. The same thing happens when sharing the screen using discord or other video conference tools.
Any suggestions on how to fix this or where to start looking?

ffmpeg version 4.4
kernel driver: i915
Linux 5.12.4-arch1-2 x86_64

Last edited by lzrbm3k (2021-05-24 18:00:57)

Offline

#2 2021-05-17 14:29:03

grundle
Member
Registered: 2021-05-13
Posts: 3

Re: [SOLVED] Screen sharing/recording alternates with old images of screen

can you provide the GPU you have, as well as the commands that you're calling ffmpeg with?  Offhand that sounds like an nvidia opengl issue but would need more details to make that determination.

Offline

#3 2021-05-17 16:45:21

lzrbm3k
Member
Registered: 2021-05-17
Posts: 4

Re: [SOLVED] Screen sharing/recording alternates with old images of screen

I started off with

ffmpeg -video_size 1920x1080 -framerate 23 -f x11grab -i :0.0+0,0 -f alsa -ac 2 -i pulse -acodec aac output.mkv

however I switched to SimpleScreenRecorder (due to usability) with several different codecs and presets which produced the same flickering of "old" images.

For screen sharing the same thing occurred with Discord as well as BigBlueButton in Firefox.

Graphics card is a Intel Iris Plus Graphics G1.

Offline

#4 2021-05-18 14:42:31

grundle
Member
Registered: 2021-05-13
Posts: 3

Re: [SOLVED] Screen sharing/recording alternates with old images of screen

what WM/DE are you using?  I'm only aware of an OpenGL issue with NVIDIA cards, not sure of anything with Intel.  You could try setting a variable framerate.  I have run into this issue before when I was using DWM and would switch workspaces.

Offline

#5 2021-05-19 19:24:58

lzrbm3k
Member
Registered: 2021-05-17
Posts: 4

Re: [SOLVED] Screen sharing/recording alternates with old images of screen

I'm using KDE.
I'm not sure if changing the framerate would be the right approach since several different applications, for which I can't change the framerate, show the same behavior.
I figured the problem would lie somewhere in the background (I guess recording and sharing are essentially the same thing in terms of capturing).
As far as I understood it ffmpeg is used by multiple applications (coincidentally all those apps that showed the problem) so I thought about downgrading ffmpeg but didn't manage to do it yet. Might as well be something completely different tho...

Offline

#6 2021-05-24 17:59:08

lzrbm3k
Member
Registered: 2021-05-17
Posts: 4

Re: [SOLVED] Screen sharing/recording alternates with old images of screen

Inspired by this post I removed xf86-video-intel which appeared to solve the problem.

Still don't know what exactly caused the issue since it was more of a trial and error attempt but it worked.

Offline

Board footer

Powered by FluxBB