<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 16 juill. 2023, 11 h 59, Davide Perini <<a href="mailto:perini.davide@dpsoftware.org">perini.davide@dpsoftware.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Ok, that snippet return a path=79</p>
<p>python3 snippet.py</p>
<p>it asks me if I want to record the screen full size or windowed, but there is no screen recording.<br>should I see a file of the recorded video? what that snippet should do?<br><br>I am even trying to do this command:<br>gst-launch-1.0 pipewiresrc path=79 ! videoconvert ! autovideosink<br>this command open a window, but there is no visible output.</p></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Take your time, read the code. It will display the screen cast into xvimagesink, a bit ironic isn't it? You can edit with autovideosink if you want. The path is only valid while the portal is open.</div><div dir="auto"><br></div><div dir="auto">Nicolas</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Any further suggestions are appreciated.</p>
<p>Thanks<br>Davide</p>
<p><br></p>
<p id="m_3195176033027158528reply-intro">Il 2023-07-15 12:51 Nicolas Dufresne via gstreamer-devel ha scritto:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div id="m_3195176033027158528replybody1">
<div dir="auto">
<div><br><br>
<div>
<div dir="ltr">Le ven. 14 juill. 2023, 07 h 15, Davide Perini via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>> a écrit :</div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Thanks for the answer, I really appreciate it.<br><br>Is it possible to run a command to check if everything works?<br>I mean can I test it with a command like this before developing my integration in my software?<br><br>Isn't this command the right one to use?<br><br>gst-launch-1.0 pipewiresrc ! fd=%d path=%u ! videoconvert ! xvimagesink<br><br>If yes, how can retrieve the right fd and path variable to use using CLI?<br><br>I want to test it via CLI before developing a software for it if possible.</div>
</blockquote>
</div>
</div>
<div dir="auto"> </div>
<div dir="auto">The attached program is in python and should just work.</div>
<div dir="auto"> </div>
<div dir="auto">python3 snippet.py</div>
<div dir="auto"> </div>
<div dir="auto">The path is return through a dbus IPC call.</div>
<div dir="auto"> </div>
<div dir="auto">Nicolas</div>
<div dir="auto"> </div>
<div dir="auto"> </div>
<div dir="auto">
<div>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>Thanks!!!<br>Davide<br><br><br><br>
<div>Il 13/07/2023 15:58, Nicolas Dufresne via gstreamer-devel ha scritto:</div>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div>Hi Davide,</div>
<div> </div>
<div>Le mardi 11 juillet 2023 à 23:45 +0200, Davide Perini via gstreamer-devel a écrit :</div>
<blockquote style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
<div>Hi all,<br>I'm trying to use GStreamer on Wayland and it seems to have some problems...<br><br>This pipeline:<br>gst-launch-1.0 ximagesrc startx=1 endx=3839 starty=0 endy=2159 ! video/x-raw,framerate=30/1 ! videoscale method=0 ! ximagesink<br><br>works well on Xorg, but not on Wayland.</div>
</blockquote>
<div> </div>
<div>ximagesrc will have very little use anyway on Wayland, as wayland have built-in privacy security. Please consider using the appropriate portal and pipewire streams for this purpose. The following link is an example on how to do this in your own application.</div>
<div> </div>
<div><a href="https://gitlab.gnome.org/-/snippets/19" rel="noopener noreferrer noreferrer" target="_blank">https://gitlab.gnome.org/-/snippets/19</a></div>
<div> </div>
<div>Nicolas</div>
<div> </div>
<blockquote style="margin:0 0 0 .8ex;border-left:2px #729fcf solid;padding-left:1ex">
<div><br>On wayland I have this error:<br><span style="color:#dbdee1;font-family:Consolas,'Andale Mono WT','Andale Mono','Lucida Console','Lucida Sans Typewriter','DejaVu Sans Mono','Bitstream Vera Sans Mono','Liberation Mono','Nimbus Mono L',Monaco,'Courier New',Courier,monospace;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:#2b2d31;text-decoration-style:initial;text-decoration-color:initial;display:inline!important;float:none">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 </span></div>
</blockquote>
<div> </div>
<div> </div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
<p><br></p>
</div>
</blockquote></div></div></div>