<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">The same avfvideosrc element captures from both the camera and the screen. Make sure you set the “capture-screen” property to true.<div class=""><br class=""></div><div class="">gst-launch-1.0 avfvideosrc <b class="">capture-screen=true</b> ! videoscale ! videoconvert ! autovideosink sync=false<div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 2, 2020, at 17:18, Davide Perini <<a href="mailto:perini.davide@dpsoftware.org" class="">perini.davide@dpsoftware.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class="">thanks for the answer.<br class=""><br class="">This command:<br class="">gst-launch-1.0 avfvideosrc ! videoscale ! videoconvert ! autovideosink sync=false<br class="">seems to capture the webcam but not the screen.<br class=""><br class="">If I use this command on Windows it capture the screen and it output to a window:<br class="">gst-launch-1.0 dxgiscreencapsrc! videoscale ! videoconvert ! autovideosink sync=false<br class=""><br class="">How can I capture the screen on mac?<br class=""><br class="">Thanks<br class="">Davide<br class=""><br class="">Il 05/09/2020 19:45, Michael Gruner ha scritto:<br class=""><blockquote type="cite" class="">Hey Davide. I don’t have a Mac handy right now, but if I recall correctly the avfvideosrc element may take screen captures. This is the same element you’d use to capture from the cameras, but there’s a configuration to grab the screen.<br class=""><br class="">Michael<br class=""><a href="http://www.ridgerun.com" class="">www.ridgerun.com</a><br class=""><br class=""><blockquote type="cite" class="">On Sep 5, 2020, at 07:21, Davide Perini <perini.davide@dpsoftware.org> wrote:<br class=""><br class="">Hi guys,<br class="">using this pipeline to screen capture under Windows.<br class=""><br class="">/gst-launch-1.0.exe dxgiscreencapsrc ! videoscale ! videoconvert ! autovideosink sync=false<br class=""><br class="">What is the equivalent pipeline usable on macOS?<br class=""><br class="">Thank one billion for your work here guys.<br class=""><br class="">Davide<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class="">gstreamer-devel@lists.freedesktop.org<br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></blockquote>_______________________________________________<br class="">gstreamer-devel mailing list<br class="">gstreamer-devel@lists.freedesktop.org<br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></blockquote><br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>