[d3d11screencapturesrc] Having problems in screen capturing 3440x1440 resolution, other resolutions wokrs well.

Jeff Shanab jshanab at jfs-tech.com
Wed Mar 8 21:12:01 UTC 2023


Is this resolution in need of a bit of alignment? The slice length must be
divisible by a number. some are 32 and you have to pad the buffer or it
warps (or worse)

On Wed, Mar 8, 2023 at 3:11 PM Davide Perini via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hi all,
> I'm screen capturing using GStreamer bindings for Java without problems
> since a lot of time,
> it works super awesome at all screen resolutions.
>
> Love GStreamer and the Java Bindings for GStreamer. :) Thank you all for
> this awesome things.
>
> I'm using a pipeline like this:
> d3d11screencapturesrc monitor-handle={0} ! d3d11convert ! d3d11download
> ! video/x-raw(memory:SystemMemory),width=3440,height=1440
> this pipeline works as expected.
>
> I recently switched to this "new pipeline" that should be more optimized
> for the purpose:
> d3d11screencapturesrc monitor-handle={0} ! d3d11convert !
> video/x-raw(memory:D3D11Memory),width=3440,height=1440
>
> this "new pipeline" works well at every screen resolutions except
> 3440x1440,
> I even tried another 21:9 resolution like 3840x1080 and it works well
> but not on 3440x1440.
> All other screen resolutions works well.
>
> This is so weird. My code should be ok since if I switch to the "older
> pipeline" all works well.
>
> I took a screenshot at 3440x1440 when capturing the screen and the image
> is completely scrambled, I attach it.
>
> I don't know how where to start finding for a solution.
>
> Is this a problem related to the bindings? Is there some errors in my
> pipeline?
>
> How can a pipeline works well at every screen resolutions and not at
> 3440x1440?
>
> Thank you
> Davide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230308/cabab9b5/attachment.htm>


More information about the gstreamer-devel mailing list