rdp / screen-capture-recorder-to-video-windows-free

a free open source windows "screen capture" device and recorder (also allows VLC/ffmpeg and others to capture/stream desktop/audio)
https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases
Other
2.06k stars 457 forks source link

Can this work with Desktop Duplication API on a VM? #124

Open philippemnoel opened 4 years ago

philippemnoel commented 4 years ago

I'm trying to use Desktop Duplication API to capture the screen of a VM, but since there is no monitor it doesn't work. This code works on a headless VM, can the .dll be used to create a virtual monitor with the VM that I can use desktop duplication API with?

rdp commented 4 years ago

I haven't yet added any desktop duplication on it. If the normal BitBlt works then it would... :|

philippemnoel commented 4 years ago

Normal BitBlt works on a headless VM if you maintain the RDP session active, but not if you close it. Unfortunately BitBlt is not fast enough for what I need, so I'm trying to use Desktop duplication but would need some sort of VNC server running or something else to fake a display -- are you doing that in this code / any idea how to do that?

rdp commented 4 years ago

I haven't tried adding in any of the duplication stuff it didn't look trivial...

On Thu, Jan 9, 2020 at 7:41 PM Philippe Noël notifications@github.com wrote:

Normal BitBlt works on a headless VM if you maintain the RDP session active, but not if you close it. Unfortunately BitBlt is not fast enough for what I need, so I'm trying to use Desktop duplication but would need some sort of VNC server running or something else to fake a display -- are you doing that in this code / any idea how to do that?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/124?email_source=notifications&email_token=AAADBUFMRMNN3VLBHOWLHP3Q47N53A5CNFSM4KE3MUIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEISPOII#issuecomment-572847905, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUGJBK2YP4AIBX2DXT3Q47N53ANCNFSM4KE3MUIA .