<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Seungha,<br />I'm not able to answer at the moment since I'm "a simple user" of the Java Bindings, I need to look into how the binding's implementation works.<br /><br />I'll start by looking if I'm using D3D11 aware elements/components.<br /><br />Anyway thanks for all the hints.</p>
<p>Kind regards,<br />Davide</p>
<p><br /></p>
<p id="reply-intro">Il 2023-03-08 21:34 Seungha Yang via gstreamer-devel ha scritto:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">It looks like stride (or called pitch) mismatch. What's the consumer of "new pipeline" <br />(how did you read the output buffer)? If it's not a D3D11-aware element/component, <br />the "new pipeline" would not boost any performance.<br /><br /><br />Note that CPU read/writable memory layout of Direct3D11 memory might be different from<br />that of normal CPU memory. To read video memory, don't assume that stride/pitch is equal to width<br />but you should use gst_video_frame_map() or so.<br /><br />Seungha<br /><br />-----Original Message-----<br />From: gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org">gstreamer-devel-bounces@lists.freedesktop.org</a>> On Behalf Of Davide Perini via gstreamer-devel<br />Sent: Thursday, March 9, 2023 5:11 AM<br />To: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br />Cc: Davide Perini <<a href="mailto:perini.davide@dpsoftware.org">perini.davide@dpsoftware.org</a>><br />Subject: [d3d11screencapturesrc] Having problems in screen capturing 3440x1440 resolution, other resolutions wokrs well.<br /><br />Hi all,<br />I'm screen capturing using GStreamer bindings for Java without problems since a lot of time, it works super awesome at all screen resolutions.<br /><br />Love GStreamer and the Java Bindings for GStreamer. :) Thank you all for this awesome things.<br /><br />I'm using a pipeline like this:<br />d3d11screencapturesrc monitor-handle={0} ! d3d11convert ! d3d11download ! video/x-raw(memory:SystemMemory),width=3440,height=1440<br />this pipeline works as expected.<br /><br />I recently switched to this "new pipeline" that should be more optimized for the purpose:<br />d3d11screencapturesrc monitor-handle={0} ! d3d11convert ! <br />video/x-raw(memory:D3D11Memory),width=3440,height=1440<br /><br />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.<br />All other screen resolutions works well.<br /><br />This is so weird. My code should be ok since if I switch to the "older pipeline" all works well.<br /><br />I took a screenshot at 3440x1440 when capturing the screen and the image is completely scrambled, I attach it.<br /><br />I don't know how where to start finding for a solution.<br /><br />Is this a problem related to the bindings? Is there some errors in my pipeline?<br /><br />How can a pipeline works well at every screen resolutions and not at 3440x1440?<br /><br />Thank you<br />Davide</div>
</blockquote>
<p><br /></p>
</body></html>