d3d11screencapturesrc feature request - attn Seungha Yang
info at mbsoft.biz
info at mbsoft.biz
Mon Mar 27 15:57:19 UTC 2023
Hello,
i use a lot d3d11screencapturesrc to capture a window. Because I only need
to capture the client area of a window I pass the crop-x crop-y etc etc
parameters that I calculate in my app. Then I call the pipeline like:
gst-launch-1.0.exe -e d3d11screencapturesrc capture-api=1
window-handle=68864 crop-x=30 crop-width=1089 crop-y=40 crop-height=612 !
queue ! videoconvert ! d3d11videosink
i calculate with and heigth with my app that is DPI_AWARENESS_UNAWARE while
gst-launch appears to works as DPI_AWARENESS_PER_MONITOR_AWARE so my capture
width/height parameters are wrong if the monitor DPI is more the 96DPI. The
cropped capture appears smaller than what I need
It would be nice if you can add a "client-area" property and it will
automatically exclude the window title bar and borders (so I don't have to
calculate the client area by myself).
Or alternatively if you can add a "DPI_AWARENESS" property so the the
crop-width and crop-height values are correctly passed.
Thank you
Maurizio
More information about the gstreamer-devel
mailing list