GStreamer and Linux, screen recording works well on Xorg but not on Wayland.

Davide Perini perini.davide at dpsoftware.org
Tue Jul 11 21:45:37 UTC 2023


Hi all,
I'm trying to use GStreamer on Wayland and it seems to have some problems...

This pipeline:
gst-launch-1.0 ximagesrc startx=1 endx=3839 starty=0 endy=2159 ! 
video/x-raw,framerate=30/1 ! videoscale method=0 ! ximagesink

works well on Xorg, but not on Wayland.

On wayland I have this error:
Setting pipeline to PAUSED ... Pipeline is live and does not need 
PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 
New clock: GstSystemClock Redistribute latency... WARNING: from element 
/GstPipeline:pipeline0/GstXImageSink:ximagesink0: Pipeline construction 
is invalid, please add queues. Additional debug info: 
../gstreamer/subprojects/gstreamer/libs/gst/base/gstbasesink.c(1249): 
gst_base_sink_query_latency (): 
/GstPipeline:pipeline0/GstXImageSink:ximagesink0: Not enough buffering 
available for the processing deadline of 0:00:00.015000000, add enough 
queues to buffer 0:00:00.015000000 additional data. Shortening 
processing latency to 0:00:00.000000000. WARNING: from element 
/GstPipeline:pipeline0/GstXImageSink:ximagesink0: Pipeline construction 
is invalid, please add queues. Additional debug info: 
../gstreamer/subprojects/gstreamer/libs/gst/base/gstbasesink.c(1249): 
gst_base_sink_query_latency (): 
/GstPipeline:pipeline0/GstXImageSink:ximagesink0: Not enough buffering 
available for the processing deadline of 0:00:00.015000000, add enough 
queues to buffer 0:00:00.015000000 additional data. Shortening 
processing latency to 0:00:00.000000000. X Error of failed request: 
BadMatch (invalid parameter attributes) Major opcode of failed request: 
73 (X_GetImage) Serial number of failed request: 52 Current serial 
number in output stream: 52 Is there any fix for this since Xorg is 
going to be deprecated everywhere? :) Thanks Davide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230711/6cfa78e9/attachment.htm>


More information about the gstreamer-devel mailing list