Questions tagged [desktop-duplication]

48 questions
2
votes
1 answer

Linking Cuda (cudart.lib) makes DXGI DuplicateOutput1() fail

For an obscure reason my call to IDXGIOutput5::DuplicateOutput1() fail with error 0x887a0004 (DXGI_ERROR_UNSUPPORTED) after I added cudart.lib in my project. I work on Visual Studio 2019, my code for monitor duplication is the classic : hr =…
SamT
  • 528
  • 4
  • 14
2
votes
2 answers

Is the cursor of type "masked color" used anymore?

I'm developing a screen capture tool and managed to make it work, even with mouse cursor support. The problem is, there's a type of mouse cursor called DXGI_OUTDUPL_POINTER_SHAPE_TYPE_MASKED_COLOR. I was not able to find any cursor of this type, so…
Nicke Manarin
  • 3,026
  • 4
  • 37
  • 79
2
votes
1 answer

Encoding Desktop Duplication API ID3D11Texture2D frame using NvPipe

I'm trying to capture the desktop frames using Desktop Duplication API, and encode them right away with NvPipe without going through CPU access to pixels. Is there any way to have the ID3D11Texture2D data as an input for NvPipe, or some other…
Hey'Youssef
  • 285
  • 4
  • 15
2
votes
0 answers

How to disable cursor pointer in Desktop Duplication API

I am working with this solution DXGI desktop duplication sample its fine for capturing single monitor but when I do extended monitor (below image : enable extended monitor) the mouse cursor is embedded with captured image. This issue is coming only…
Krish
  • 376
  • 3
  • 14
2
votes
1 answer

Desktop duplication: Rotating the frames to support portrait mode

I'm using d3d11 (desktop duplication) to capture the screens and send them over the network on windows 8 and above Operating Systems. The problem is that the frames are flipped/rotated if the monitor is set in portrait mode and couldn't render…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
2
votes
0 answers

Windows Screen capture both GDI & DirectX fails returns ACCESS_DENIED

I capture screens on Windows using DirectX and GDI respectively based on the Operating System (DirectX (Desktop duplication) - For Win8 & Above & GDI for Win7 and below or as a fallback in case of any error with DirectX approach). Rarely on some…
1
vote
1 answer

Desktop Duplication - Limiting the Framerate

Using the Windows Desktop Duplication API, I want to limit the capture of the monitor to no more than 60fps. I know the AcquireNextFrame() has a 'wait' parameter, so maybe this can be used to limit the framerate although I am unsure how. I also…
1
vote
0 answers

Errors while trying to capture HDR content with DXGI OutputDuplication

I'm facing a strange error while trying to Duplicate Output on an HDR screen, particularly this is triggered when launching Doom Eternal. I handle DXGI_ERROR_ACCESS_LOST error by resetting the OutputDuplication object, like…
MoltenCore
  • 21
  • 1
  • 3
1
vote
1 answer

Desktop Duplication API - Screen Capture doesnt work on 1366x768 (opencv)

i am using the Desktop Duplication API - to take a screenshot (c++). This works in principle, but not under every resolution. i am creating an opencv mat from the D3D11_MAPPED_SUBRESOURCE and then display the image. Under 1920x1080 it looks like…
1
vote
1 answer

DirectX 11 application slows down dramatically when not foreground application

I have an application that does some drawing via Direct2D and captures screen contents via the Desktop Duplication API. It is a C# application, but I have custom layered windows to do my displaying and I am rendering via Direct2D to get around the…
Ammo Goettsch
  • 838
  • 8
  • 11
1
vote
1 answer

Desktop Duplication API returns empty frame

I am aware that there are already a few questions asking this or similar things and I dived into a few of them, but without any success. I try to capture a "screenshot" of my display using the Desktop duplication API and process pixeldata of it.…
stoani96
  • 11
  • 2
1
vote
1 answer

cursor shape on capture screen using DXGI

I have written a screen capture program using windows screen capture API in DXGI。It works just OK。 But on some cases (such as when I drag a window to move it), the result contains a cursor shape on it. ] This is not what I expected. Does ayone know…
wangcd
  • 21
  • 1
1
vote
0 answers

C# Service trouble with video outputs in Desktop Duplication API

I use the C# Service for calling the Desktop Duplication API from C++ DLL functions and it works correct whenever i use this DLL in C++ projects or C# for DLL functions calls. But there is some trouble when EnumOutputs function, of IDXGIAdapter1 COM…
KKomrade
  • 95
  • 4
1
vote
1 answer

How to get an IMFTransform that is d3d_aware (To encode input from Windows Duplication API to H264)?

The next code should give inputInfo and outputInfo configuration to get a IMFTransform back, and this IMFTransform be used to encode ID3D11Texture2D(with format DXGI_FORMAT_B8G8R8A8_UNORM) to H264 I understand the format DXGI_FORMAT_B8G8R8A8_UNORM…
1
vote
1 answer

Compression of raw resource data, of desktop image frame, from D3D11_MAPPED_SUBRESOURCE (Desktop Duplication API)

I need to transfer frames of desktop image data over the network, that were captured with Desktop Duplication API, but there is one problem: size of raw frame data, in FullHD with DXGI_FORMAT_B8G8R8A8_UNORM format, approximatly equal to 8 MB, that…
KKomrade
  • 95
  • 4