Can't record screen on Ubuntu 22.04
-
PipeWire version (
pipewire --version
): pipewire Compiled with libpipewire 0.3.65 Linked with libpipewire 0.3.65 -
Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Ubuntu 23.04 -
Desktop Environment: Gnome Wayland
-
Kernel version (
uname -r
): 6.2.0-24-generic
Description of Problem:
Trying to screen capture using Gnome on Wayland and GStreamer gives some errors.
Steps to Reproduce:
Run this command
$ PIPEWIRE_DEBUG=2 gst-launch-1.0 -v pipewiresrc path=63 ! videoconvert ! waylandsink
gives me this error:
Setting pipeline to PAUSED ...
[W][01624.762398] default | [ thread.c: 121 impl_acquire_rt()] acquire_rt thread:0x7f3a772de6c0 prio:-1 not implemented
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstPipeWireSrc:pipewiresrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3132): gst_base_src_loop (): /GstPipeline:pipeline0/GstPipeWireSrc:pipewiresrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...