robmikh / displayrecorder

A utility to record displays.
MIT License
15 stars 7 forks source link

How to get an unencoded frame? #5

Closed qdlmcfresh closed 2 years ago

qdlmcfresh commented 2 years ago

Hi, im trying to add a directx display/windowcapturer to https://github.com/H-M-H/Weylus
Since encoding is handled already i only need a bgr8 slice of the unencoded frame. Before you pointed me to this repo i tried the same with screenshot-rs and it worked, but i dont know how to get the data i need here.

robmikh commented 2 years ago

You'll need to refer to screenshot-rs for that. Because Media Foundation does all the heavy lifting and encodes on the GPU, displayrecorder never copies the bits into system memory.

In short, you'll need to: