Screen capture on macOS.
Michael Gruner
michael.gruner at ridgerun.com
Fri Oct 2 23:22:23 UTC 2020
The same avfvideosrc element captures from both the camera and the screen. Make sure you set the “capture-screen” property to true.
gst-launch-1.0 avfvideosrc capture-screen=true ! videoscale ! videoconvert ! autovideosink sync=false
> On Oct 2, 2020, at 17:18, Davide Perini <perini.davide at dpsoftware.org> wrote:
>
> Hi,
> thanks for the answer.
>
> This command:
> gst-launch-1.0 avfvideosrc ! videoscale ! videoconvert ! autovideosink sync=false
> seems to capture the webcam but not the screen.
>
> If I use this command on Windows it capture the screen and it output to a window:
> gst-launch-1.0 dxgiscreencapsrc! videoscale ! videoconvert ! autovideosink sync=false
>
> How can I capture the screen on mac?
>
> Thanks
> Davide
>
> Il 05/09/2020 19:45, Michael Gruner ha scritto:
>> 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.
>>
>> Michael
>> www.ridgerun.com
>>
>>> On Sep 5, 2020, at 07:21, Davide Perini <perini.davide at dpsoftware.org> wrote:
>>>
>>> Hi guys,
>>> using this pipeline to screen capture under Windows.
>>>
>>> /gst-launch-1.0.exe dxgiscreencapsrc ! videoscale ! videoconvert ! autovideosink sync=false
>>>
>>> What is the equivalent pipeline usable on macOS?
>>>
>>> Thank one billion for your work here guys.
>>>
>>> Davide
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201002/10b51bb5/attachment.htm>
More information about the gstreamer-devel
mailing list