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
video/x-raw:
format: BGRA
width: [ 1, 16384 ]
height: [ 1, 16384 ]
framerate: [ 0/1, 2147483647/1 ]
pixel-aspect-ratio: 1/1
Properties
adapter
“adapter” gint
DXGI Adapter index for creating device when WGC mode is selected
Flags : Read / Write
Default value : -1
capture-api
“capture-api” D3d11screen-capture-api *
Capture API to use
Flags : Read / Write
Default value : dxgi (0)
crop-height
“crop-height” guint
Height of screen capture area (0 = maximum)
Flags : Read / Write
Default value : 0
crop-width
“crop-width” guint
Width of screen capture area (0 = maximum)
Flags : Read / Write
Default value : 0
crop-x
“crop-x” guint
Horizontal coordinate of top left corner for the screen capture area
Flags : Read / Write
Default value : 0
crop-y
“crop-y” guint
Vertical coordinate of top left corner for the screen capture area
Flags : Read / Write
Default value : 0
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
show-cursor
“show-cursor” gboolean
Whether to show mouse cursor
Flags : Read / Write
Default value : false
window-handle
“window-handle” guint64
HWND window handle to capture
Flags : Read / Write
Default value : 0
Named constants
D3d11screen-capture-api
Members
dxgi
(0) – DXGI Desktop Duplication
wgc
(1) – Windows Graphics Capture
The results of the search are