You are not logged in.

#1 2021-03-26 15:47:17

ledbettj
Member
From: Atlanta
Registered: 2012-10-14
Posts: 35
Website

[Solved] gnome screen recorder doesn't stop, produces blank file

I've run into a frustrating issue with the gnome screen recorder (Ctrl+Alt+Shift+R) functionality.

Pressing Ctrl+Alt+Shift+R appears to start the screen recorder; the red dot appears in the gnome shell panel, and journalctl says:

Mar 26 11:38:22 argus dbus-daemon[788515]: [session uid=1000 pid=788515] Activating service name='org.gnome.Shell.Screencast' requested by ':1.49' (uid=1000 pid=788786 comm="/usr/lib/gsd-media-keys ")

However, at this point there are two problems:

1. the output file generated in ~/Videos is empty:

$ ls -lha ~/Videos/
total 0
drwxr-xr-x 1 john john  172 Mar 26 11:38  .
drwx------ 1 john john 2.3K Mar 26 11:38  ..
-rw-r--r-- 1 john john    0 Mar 26 11:31 'Screencast from 03-26-2021 11:31:49 AM.webm'
-rw-r--r-- 1 john john    0 Mar 26 11:38 'Screencast from 03-26-2021 11:38:22 AM.webm'

2. Pressing Ctrl+Alt+Shift+R again does not stop the recording or remove the red dot; the process is still running:

 /usr/bin/gjs /usr/share/gnome-shell/org.gnome.Shell.Screencast

I can't seem to find anything in the journal that indicates what might be going wrong.  Some previous threads suggested missing gstreamer packages; I have all these bad boys installed:

gst-editing-services 1.18.4-1
gst-libav 1.18.4-1
gst-plugin-gtk 1.18.4-1
gst-plugin-pipewire 1:0.3.24-1
gst-plugins-bad 1.18.4-2
gst-plugins-bad-libs 1.18.4-2
gst-plugins-base 1.18.4-1
gst-plugins-base-libs 1.18.4-1
gst-plugins-good 1.18.4-1
gstreamer 1.18.4-1
gstreamer-vaapi 1.18.4-1
lib32-gst-plugins-base-libs 1.18.4-1
lib32-gstreamer 1.18.4-1

and pipewire:

libpipeline 1.5.3-1
libpipewire02 0.2.7-1
pipewire 1:0.3.24-1
pipewire-media-session 1:0.3.24-1

Pipewire does have quite a few errors in the journal, but nothing that matches every time I try to screen record.  Any tips on how to further debug or solve this issue?

Last edited by ledbettj (2021-03-27 15:18:01)

Offline

#2 2021-03-27 00:39:25

ledbettj
Member
From: Atlanta
Registered: 2012-10-14
Posts: 35
Website

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

Unsure if this is related or not, but ffmpeg apparently also can't generate a webm file:

[libvpx-vp9 @ ...] Failed to initialize encoder: ABI version mismatch

Installed packages:

lib32-libvpx1.3 1.3.0-2
libvpx 1.10.0-1
libvpx1.3 1.3.0-3
ffmpeg 2:4.3.2-3

Offline

#3 2021-03-27 15:11:52

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

Thanks a lot, you're gold!  I had the issue as well and just spent an hour searching for the cause without any success until I came here; the ffmpeg error you find was the crucial hint, and it's indeed absolutely related!

libvpx was updated to 1.10.0 yesterday, and this broke ffmpeg (https://bugs.archlinux.org/task/70182) apparently also Gnome screencasting; downgrading to libvpx-1.9.0-1 from cache fixed screencasting in Gnome.

I opened https://bugs.archlinux.org/task/70184 about this problem.

Offline

#4 2021-03-27 15:17:45

ledbettj
Member
From: Atlanta
Registered: 2012-10-14
Posts: 35
Website

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

Thank you! I just also discovered this as well over here: https://bbs.archlinux.org/viewtopic.php … 4#p1964494

Offline

#5 2021-03-29 11:13:50

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

Updating gst-plugins-good to 1.18.4-2 fixed this issue for me.

Offline

#6 2021-03-30 14:52:14

solarkraft
Member
Registered: 2021-03-16
Posts: 2

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

lunaryorn wrote:

Updating gst-plugins-good to 1.18.4-2 fixed this issue for me.

Not for me.

ffmpeg -f lavfi -i testsrc=duration=60 -c:v vp9 -f webm -y /dev/null

as described in https://bbs.archlinux.org/viewtopic.php … 4#p1964494 runs through just fine, yet I experience the symptoms described above.

Attempting to encode a file with libvpx-1.9.0-1 (December 2020) and ffmpeg n4.3.2 leads to

[libvpx-vp9 @ 0x561e2983f740] Failed to initialize encoder: ABI version mismatch
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed! 

Perhaps ffmpeg is already updated and I have a different issue?

Last edited by solarkraft (2021-03-30 15:05:21)

Offline

#7 2021-05-14 20:01:47

koroki
Member
Registered: 2013-08-03
Posts: 50

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

I have the same problem...

Offline

#8 2021-05-14 21:57:33

koroki
Member
Registered: 2013-08-03
Posts: 50

Re: [Solved] gnome screen recorder doesn't stop, produces blank file

koroki wrote:

I have the same problem...

Solved.

The problem is in pipewire. I'm not sure with package, but I delete (-Rdd) the pipewire, pipewire-media-session and gst-plugin-pipewire and reinstall them.
After that, the problem is solved.

I suspect that the main problem is the gst.

Source: https://www.reddit.com/r/archlinux/comm … &context=3

Last edited by koroki (2021-05-14 21:58:10)

Offline

Board footer

Powered by FluxBB