d3d11screencapturesrc

A DXGI Desktop Duplication API based screen capture element

Example launch line

gst-launch-1.0 d3d11screencapturesrc ! queue ! d3d11videosink

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSrc
                    ╰──d3d11screencapturesrc

Factory details

Authors: – Seungha Yang

Classification:Source/Video

Rank – none

Plugin – d3d11

Package – GStreamer Bad Plug-ins

Pad Templates

src

video/x-raw(memory:D3D11Memory):
         format: BGRA
          width: [ 1, 16384 ]
         height: [ 1, 16384 ]
      framerate: [ 0/1, 2147483647/1 ]
pixel-aspect-ratio: 1/1
    colorimetry: sRGB
video/x-raw:
         format: BGRA
          width: [ 1, 16384 ]
         height: [ 1, 16384 ]
      framerate: [ 0/1, 2147483647/1 ]
pixel-aspect-ratio: 1/1
    colorimetry: sRGB

Presencealways

Directionsrc

Object typeGstPad


Properties

adapter

“adapter” gint

DXGI Adapter index for creating device when WGC mode is selected

Flags : Read / Write

Default value : -1

Since : 1.22


capture-api

“capture-api” D3d11screen-capture-api *

Capture API to use

Flags : Read / Write

Default value : dxgi (0)

Since : 1.22


crop-height

“crop-height” guint

Height of screen capture area (0 = maximum)

Flags : Read / Write

Default value : 0

Since : 1.22


crop-width

“crop-width” guint

Width of screen capture area (0 = maximum)

Flags : Read / Write

Default value : 0

Since : 1.22


crop-x

“crop-x” guint

Horizontal coordinate of top left corner for the screen capture area

Flags : Read / Write

Default value : 0

Since : 1.22


crop-y

“crop-y” guint

Vertical coordinate of top left corner for the screen capture area

Flags : Read / Write

Default value : 0

Since : 1.22


monitor-handle

“monitor-handle” guint64

A HMONITOR handle of monitor to capture

Flags : Read / Write

Default value : 0


monitor-index

“monitor-index” gint

Zero-based index for monitor to capture (-1 = primary monitor)

Flags : Read / Write

Default value : -1


show-border

“show-border” gboolean

Show border lines to capture area when WGC mode is selected. This feature requires Windows11 or newer

Flags : Read / Write

Default value : false

Since : 1.22


show-cursor

“show-cursor” gboolean

Whether to show mouse cursor

Flags : Read / Write

Default value : false


window-capture-mode

“window-capture-mode” D3d11window-capture-mode *

Window capture mode to use

Flags : Read / Write

Default value : default (0)

Since : 1.24


window-handle

“window-handle” guint64

HWND window handle to capture

Flags : Read / Write

Default value : 0

Since : 1.22


Named constants

D3d11screen-capture-api

Members

dxgi (0) – DXGI Desktop Duplication
wgc (1) – Windows Graphics Capture

Since : 1.26


D3d11window-capture-mode

Members

default (0) – Capture entire window area
client (1) – Capture client area

Since : 1.24


The results of the search are