Screen capture on macOS.

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Screen capture on macOS.

Davide Perini
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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Screen capture on macOS.

Michael Gruner
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 <[hidden email]> 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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Screen capture on macOS.

Davide Perini
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 <[hidden email]> 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
>> [hidden email]
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Screen capture on macOS.

Michael Gruner
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel