Questions tagged [desktop-duplication]
48 questions
18
votes
1 answer
Desktop duplication (DirectX) screen capture fails to deliver screen updates
I'm working on an application that would capture the screen through Desktop duplication APIs (using DirectX 11) (only the diff to the previous screen update) and render it on another window (The viewer might be running on another machine connected…

iamrameshkumar
- 1,328
- 1
- 14
- 34
14
votes
1 answer
DXGI Desktop Duplication Screen Capture Speed
I am using AcquireNextFrame from the Desktop Duplication API to capture the screen. The refresh rate of the screen is 120Hz. When running a game at 120FPS, the screen capture can capture frames at 120FPS. But when increasing the frame rate of the…

availn
- 161
- 1
- 5
8
votes
0 answers
Desktop duplication screen capturing - DuplicateOutput returns E_ACCESSDENIED error
I'm capturing the screens using desktop duplication APIs (DirectX11). The DuplicateOutput API returns the access denied error and that too happens very rare(may be 10% of the time) on a windows 8.1 machine on logon screen though my application is…

iamrameshkumar
- 1,328
- 1
- 14
- 34
7
votes
1 answer
Invalid Call on ReleaseFrame() in DesktopDuplication API
An user of my app is having some problem capturing the screen with the DesktopDuplication API.
Upon starting the capture, the app crashes because the app is unable to release the frame of the OutputDuplication.
User's PC details:
Windows…

Nicke Manarin
- 3,026
- 4
- 37
- 79
7
votes
3 answers
Get status of night light mode in Windows 10
I am using the desktop duplication api to grab the screen content and as it turns out, the new night light mode ('Nachtmodus' in German) is not applied in the grabbed screen content.
How do I read (if possible directly in c#) the night mode status…

fabsenet
- 372
- 2
- 15
6
votes
3 answers
DirectX Screen Capture - Desktop Duplication API - limited frame rate of AcquireNextFrame
I'm trying to use Windows Desktop Duplication API to capture the screen and save the raw output to a video. I'm using AcquireNextFrame with a very high timeout value (999ms). This way I should get every new frame from windows as soon as it at has…

Aaron Germuth
- 181
- 4
- 10
4
votes
1 answer
Video creation with Microsoft Media Foundation and Desktop Duplication API
I'm using DDA for capturing the desktop image frames and sending them to the server, where these frames should be used to create video with MMF. I want to understand, what needs to be done with MMF, if i will use Source Reader and Sink Writer to…

KKomrade
- 95
- 4
4
votes
0 answers
Desktop Duplication API capture specific window
I've been trying to find a way to capture a specific window using the Desktop Duplication API rather than clipping a section of the captured desktop.
The issue with clipping is that any overlapping applications will show on top of the one that I'm…

CurtisVL
- 41
- 3
4
votes
5 answers
Is there any way to omit a window from Desktop Duplication?
I'd like to be able to show a window containing a message that is displayed to the user but which is not captured by Desktop Duplication. Is that possible?
Alternatively, is there a way I can draw over the top of the desktop surface before it gets…

Dan Groom
- 351
- 4
- 12
3
votes
1 answer
Encoding a D3D Surface obtained through Desktop Duplication using Media Foundation
I want to encode Desktop Duplication API frames to send over the network after encoding them with Media Foundation. I'm stuck with a E_NOTIMPL error when I call IMFTransform::ProcessInput, leaving me a little in the dark.
These are the steps I've…

Hey'Youssef
- 285
- 4
- 15
3
votes
0 answers
How to convert a 2D texture DXGI_FORMAT_B8G8R8A8_UNORM to DXGI_FORMAT_R8G8B8A8_UNORM without device to host transfer?
I have a project, which captures screenshots using a Microsoft Desktop Duplication Api and processes them using a set of OpenCL kernels in realtime.
Screenshot itself never gets transfered to the host(CPU). It is a console application.
I've ran into…

Beast001
- 31
- 1
- 1
3
votes
1 answer
Deadlock on AcquireNextFrame() and ReleaseFrame() randomly in Desktop Duplication API
I'm attempting to write an application for recording the Windows desktop to a video file. I'm making use of the desktop duplication API and the Media Foundation API. More specifically I'm using the SinkWriter class from Media Foundation. I'm…

battlebottle
- 123
- 2
- 8
3
votes
1 answer
DesktopDuplication API produces black frames while certain applications are in fullscreen mode
I'm building an application that is used for taking and sharing screenshots in real time between multiple clients over network.
I'm using the MS Desktop Duplication API to get the image data and it's working smoothly except in some edge cases.
I…

MonzUn
- 53
- 1
- 9
3
votes
1 answer
AcquireNextFrame not working (Desktop Duplication API & D3D11)
I've put together this code that takes a screenshot of the desktop and maps it for raw pixel data access, but the output is all zeros. I have no idea what i've done wrong. After looking at many examples of the Desktop Duplication Api online I don't…

M. Alvarez
- 33
- 3
2
votes
0 answers
C#/C++ application for remote Login on Desktop like Remote Desktop does
I'm creating c#/c++ app for Windows, that functions like Remote Desktop.
Screen capturing is done with Desktop Duplication Api. Network transfer use TCP. And everything works fine. No technical issues.
I'm asking for the way to do Login function…

Service 7
- 35
- 4