Can't record screen on Ubuntu 22.04 using Gnome Wayland
Describe your issue
Trying to screen capture using Gnome on Wayland and GStreamer gives some errors. No way to record the screen.
Expected Behavior
Be able to record the screen.
Observed Behavior
Screen recording gives errors.
Setup
- Operating System: Ubuntu 22.04 using Gnome on Wayland
- Device: Computer
- GStreamer Version: 1.22.2
Steps to reproduce the bug
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 ...