Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX11 Screen Capture Error 0x887A0004 #23

Open
tools4bash opened this issue Jul 11, 2018 · 5 comments
Open

DX11 Screen Capture Error 0x887A0004 #23

tools4bash opened this issue Jul 11, 2018 · 5 comments

Comments

@tools4bash
Copy link

tools4bash commented Jul 11, 2018

Hello,

first of all thank you so much for all your effort and work!
This is my first "post" so I hope I got everything right.
I've got a working setup for DX9
Client: Windows 7 x64 SP1 | i7-3770K | GTX 1050 Ti > Displayport > Eizo CS2730
HyperionScreenCapture v2.5 (all dependencies are installed)
Server: RPi3 over WiFi

Unfortuantely DX9 is not a usable solution, as nothing is smooth (dragging windows, watching TV, ...)
But: Whenever I select DX11 as capture source, I receive this error message:

Failed to initialize screen capture:
HRESULT: [0x887A0004], Module: [SharpDX,DXGI],
ApiCode: [DXGI_ERROR_UNSUPPORTED/Unsupported], Message: Unknown

Log:
hyperion-screen-capture.log

Available Monitors lists (looks good to me):

Adapter Index 0: NVIDIA GeForce GTX 1050 Ti
Monitor Index 0: \\.\DISPLAY1 2560x1440

I tried switching from Windows 7 Aero Skin to Classic without any success.
I stumbled upon this, which indicates only iGPUs would work but I guess that's not the case here.
https://stackoverflow.com/questions/40221187/directx11-desktop-duplication-not-working-with-nvidia

I am more than happy to provide any other information.
Thank you!

@sabaatworld
Copy link
Owner

Have you tried installing all the dependencies listed on https://github.com/sabaatworld/HyperionScreenCap ? That may fix the issue.

The post you linked looks interesting. I wonder if there would be a way to run it using some inbuilt Microsoft adapter. Note that there is one virtual GPU that renders the screen when you do remote desktop. Can you try running DX11 capture from your remote machine (just to see if that works)?

I think the bigger issue is the support for windows 7. It seems that by default windows 7 did not support this API. I came across https://stackoverflow.com/questions/30982477/does-windows-7-with-platform-update-support-desktop-duplication which links to some windows update that may fix the problem.

Another thing I found today is https://github.com/rgcjonas/dd4seven: A project that enables desktop duplication on Windows 7.

@tools4bash
Copy link
Author

tools4bash commented Jul 11, 2018

Thank you for your answer and hints!

  • Yes, all dependencies had already been installed
  • Running the DX11 capture from a remote connection results in the same error.
    HyperionScreenCapture lists the same adapter:
Adapter Index 0: NVIDIA GeForce GTX 1050 Ti
Monitor Index 0: \\.\DISPLAY1 1024x768

I tried Windows Remote Desktop as well as RealVNC (which presumably uses its own display driver).

  • The update referenced in the first link is already installed (KB 2670838) as well as Internet Explorer 11.
    So I'm certain I'm running DirectX 11.1 (although it's known that DXDIAG will still report it as "DirectX 11".)
  • I installed the Windows 8 SDK in hope it would provide some additional necessary libraries (yes, I have no clue about this API stuff)
  • I will report back when I have news concerning the last link https://github.com/rgcjonas/dd4seven

But to sum it up, without any additional tweaking it's not surprising that the DX11 part is not working in Windows 7?

Edit:
Oops, I totally missed the forum post. Sorry for this:
https://hyperion-project.org/threads/updated-1-27-2018-v2-5-multiple-displays-servers-4k-uhd-directx-11-windows-screen-grabber.1018/#post-7487

@sabaatworld
Copy link
Owner

Sorry for the late reply. It does seem that windows 7 is the problem here. I don't have a Win7 PC, but if I get time, I'll try to run this in a virtual image and see what happens.

@Skyviewer
Copy link

I have Asrock with intel integrated graphics, i had windows 7 x64 sp1 and always getting the same problem. So no posible use Dx11, than Dx9 performance was very low and not worked on new Kodi leia 18. The only solution that worked is upgrade to Windows 8.1 on the same hardware, and DX11 works properly.
it seems because of WDM driver version that supports multiple screens.

@andrewpros
Copy link

Looks like win 7 even with sp1 does not support duplication api so it cant be done officially.

The only way to do it in win7 is support project like https://github.com/rgcjonas/dd4seven or use vendor based capture like nvidia gpu capture sdk or game stream used also in https://github.com/moonlight-stream/moonlight-qt

But it all needs to be supported directly in app. dd4seven looks like the best and simple one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants