Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Investigate WindowsGraphicsCapture API #22

Open
nbrochu opened this issue May 28, 2020 · 2 comments
Open

Investigate WindowsGraphicsCapture API #22

nbrochu opened this issue May 28, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nbrochu
Copy link
Member

nbrochu commented May 28, 2020

As discovered by using OBS Studio, there is a new Window API for screen capture that has great extra features like capturing windows even if they are occluded or moved.

Investigate WindowsGraphicsCapture to determine if:

  • It can be hooked into by Python
  • It has good performance
  • It is compatible with the existing D3DShot API
@nbrochu nbrochu added the enhancement New feature or request label May 28, 2020
@nbrochu nbrochu self-assigned this May 28, 2020
@nbrochu
Copy link
Member Author

nbrochu commented May 28, 2020

So far, I see 2 possible entry points for this:

  1. Wait for the WinRT project to make progress in their Python bridge

This would allow access to Windows Runtime APIs directly from Python so Windows.Graphics.Capture is exposed

Relevant issue to track: microsoft/xlang#634

  1. Try to wrap libobs-winrt.dll with ctypes

Seems to have the required exported functions

image

@truongdo
Copy link

@nbrochu do you have any update on this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants