question

MingyangSun-6360 avatar image
0 Votes"
MingyangSun-6360 asked DrakeWu-MSFT commented

Using AcquireNextFrame with virtual machine

Hi,

I'm trying to using DXGI on a Windows virtual machine on a server. But the problem I'm having now is, the acquireNextFrame functionality seems only to work when RDP is being used.

That said, whenever I try to minimize the RDP window, it will stop acquiring new frames. But that kind of defeat the purpose for me to use this on a remote server...

Is there any way to let it keep capturing frames even if I minimize or even close the Windows RDP window?

Thanks!

Mingyang

windows-apiremote-desktop-services
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@MingyangSun-6360 Are you able to use this official sample to reproduce the issue?


0 Votes 0 ·

Hi Drake,

The official sample, especially the DesktopDuplication is actually not a good match of my usecase. What I'm doing now is using DXGI as underlying interface to capture screen with RDP connection, then save them out into video files.

The problem I'm seeing is, if I disconnect/close RDP session, then the DXGI capturing/recording will be shutdown as well. I have no way to reproduce this with the official sample since I couldn't tell whether it keeps capturing when RDP is shutdown.

What I'm looking for is a solution or even a workaround that if I can do DXGI capture with:
1) RDP session to be shut down.
2) In even better cases, without RDP being launched at all.

Please let me know what you'd suggest about this.

Thanks a lot,
Mingyang

0 Votes 0 ·

@MingyangSun-6360 Ok, Could you provide a reproducible minimal complete sample? And also note that delete private information please.

0 Votes 0 ·

0 Answers