Screen recording and Nvidia acceleration

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

Screen recording and Nvidia acceleration

Davide Perini
Hi guys,
is it possible to use Nvidia acceleration while screen recording on
gstreamer?

Does gstreamer supports some acceleration using nvida GPUs while screen
recording?

Thanks,
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 recording and Nvidia acceleration

Stephenwei
Hi,
would you please explain what's the screen recording?

If you want to record your display monitor.

you can get the video source ... ximagesrc to capture  monitor as well as
encode.... muxer...






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

Re: Screen recording and Nvidia acceleration

Davide Perini
Hi,
is there a screen grabber that uses NVFBC?

Currently I'm using DXGI with this:
 ./gst-launch-1.0 dxgiscreencapsrc ! videoscale method=0 ! videoconvert ! autovideosink

but it consume a bit of CPU, I want to lower the CPU utilization.

I don't need big quality or sync, I only need to record the screen to get colors on an X,Y point of the screen.
So I don't really need to capture all the screen. I only need to get the color of the screen in some X,Y points of the screen.

Any suggestions on how to do it and lower the CPU usage?
Is there some options to lower the cpu usage by reducing the quality of the screen capture or with some other tricks?

Thanks
Davide

Il 05/08/2020 11.37, Stephenwei ha scritto:
Hi,
would you please explain what's the screen recording?

If you want to record your display monitor.

you can get the video source ... ximagesrc to capture  monitor as well as
encode.... muxer...






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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 recording and Nvidia acceleration

Neil C Smith-2
On Wed, 5 Aug 2020 at 11:22, Davide Perini <[hidden email]> wrote:
> I don't need big quality or sync, I only need to record the screen to get colors on an X,Y point of the screen.
> So I don't really need to capture all the screen.

What exactly does "don't really need to capture all the screen" mean?
A contiguous sub-region?  That element supports x, y, width and height
properties I believe from earlier conversations on this?

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Screen recording and Nvidia acceleration

Davide Perini
I need to capture 100 regions of 50 pixel,
not an entire 3840x2160 screen if possible...

At 4K, grabbing the entire screen at 30 fps is pretty expensive.

Is this possible?

Thanks
Davide

Il 05/08/2020 12.31, Neil C Smith ha scritto:

> On Wed, 5 Aug 2020 at 11:22, Davide Perini <[hidden email]> wrote:
>> I don't need big quality or sync, I only need to record the screen to get colors on an X,Y point of the screen.
>> So I don't really need to capture all the screen.
> What exactly does "don't really need to capture all the screen" mean?
> A contiguous sub-region?  That element supports x, y, width and height
> properties I believe from earlier conversations on this?
>
> Best wishes,
>
> Neil
>

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

Re: Screen recording and Nvidia acceleration

Davide Perini
If not, is it possible to say gstreamer to capture the frame only if
"something changed on the screen"?
Is it possible to reduce the CPU load by reducing capture quality?

Basically I need to capture some areas of the screen (100 areas of 50x50
pixel size) 30 times per second.
Once captured the screen, I need to get only the average color of that
area. Nothing more.

What are the possible optimizations for my purpose?

Thanks
Davide

Il 05/08/2020 14.05, Davide Perini ha scritto:

> I need to capture 100 regions of 50 pixel,
> not an entire 3840x2160 screen if possible...
>
> At 4K, grabbing the entire screen at 30 fps is pretty expensive.
>
> Is this possible?
>
> Thanks
> Davide
>
> Il 05/08/2020 12.31, Neil C Smith ha scritto:
>> On Wed, 5 Aug 2020 at 11:22, Davide Perini
>> <[hidden email]> wrote:
>>> I don't need big quality or sync, I only need to record the screen
>>> to get colors on an X,Y point of the screen.
>>> So I don't really need to capture all the screen.
>> What exactly does "don't really need to capture all the screen" mean?
>> A contiguous sub-region?  That element supports x, y, width and height
>> properties I believe from earlier conversations on this?
>>
>> Best wishes,
>>
>> Neil
>>
>
> _______________________________________________
> 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
|

AW: Screen recording and Nvidia acceleration

Thornton, Keith
Hi,
you might try using a pad-probe and in this pad-probe you calculate a CRC over the areas of interest. If nothing has changed you drop the frame and if something has changed you let it through
Grüße

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel <[hidden email]> Im Auftrag von Davide Perini
Gesendet: Mittwoch, 5. August 2020 18:27
An: [hidden email]
Betreff: Re: Screen recording and Nvidia acceleration

If not, is it possible to say gstreamer to capture the frame only if "something changed on the screen"?
Is it possible to reduce the CPU load by reducing capture quality?

Basically I need to capture some areas of the screen (100 areas of 50x50 pixel size) 30 times per second.
Once captured the screen, I need to get only the average color of that area. Nothing more.

What are the possible optimizations for my purpose?

Thanks
Davide

Il 05/08/2020 14.05, Davide Perini ha scritto:

> I need to capture 100 regions of 50 pixel, not an entire 3840x2160
> screen if possible...
>
> At 4K, grabbing the entire screen at 30 fps is pretty expensive.
>
> Is this possible?
>
> Thanks
> Davide
>
> Il 05/08/2020 12.31, Neil C Smith ha scritto:
>> On Wed, 5 Aug 2020 at 11:22, Davide Perini
>> <[hidden email]> wrote:
>>> I don't need big quality or sync, I only need to record the screen
>>> to get colors on an X,Y point of the screen.
>>> So I don't really need to capture all the screen.
>> What exactly does "don't really need to capture all the screen" mean?
>> A contiguous sub-region?  That element supports x, y, width and
>> height properties I believe from earlier conversations on this?
>>
>> Best wishes,
>>
>> Neil
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flist
> s.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=02%7
> C01%7C%7C7f54efb0dc9f49692e8608d839654892%7C28042244bb514cd680347776fa
> 3703e8%7C1%7C0%7C637322454455576269&amp;sdata=BmhxqACunS7W3vObSJSN8pII
> PjD53fT9nYSsAO%2BOPVM%3D&amp;reserved=0

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fgstreamer-devel&amp;data=02%7C01%7C%7C7f54efb0dc9f49692e8608d839654892%7C28042244bb514cd680347776fa3703e8%7C1%7C0%7C637322454455576269&amp;sdata=BmhxqACunS7W3vObSJSN8pIIPjD53fT9nYSsAO%2BOPVM%3D&amp;reserved=0
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel