Hi,
My first two questions in this forum got zero replies, maybe third time's a charm.
Is there any sample that shows how to perform screen capture with Media Foundation ?
I tried to write a custom source that performs screen capture using DirectX output duplication, however,
when I use MFCreateDXGISurfaceBuffer to create the samples, it just doesn't work. My topology is very simple -
the custom screen source is directly connect to an EVR. I also have a more complex topology that uses
h264 encoder MFT to compress the video and fragmented MP4 sink to write it, but even the simple one doesn't work,
so it's less relevant...
If I hook the buffer returned from MFCreateDXGISurfaceBuffer, and make it return E_NOINTERFACE when asked
for IID_IMFDXGIBuffer, then it does work, but the performance is not optimal (MF uses IMF2DBuffer2 instead)
In general, it seems there is very little documentation about the MF DXGI support.
Any help will be appreciated !
Eran