I am trying to write EVR for Media Foundation using DirectX 11 in Windows 10 (Desktop). The only solution that I have found so far is here
Unfortunately, I do not know (like many others) how to use it correctly. Can someone point me in the right direction, how to combine MF with DirectX 11/12, please?
I use the code to activate my EVR:
hr = MFCreateVideoRendererActivate(hwndVideo, &pRendererActivate);
hr = pRendererActivate->SetGUID(MF_ACTIVATE_CUSTOM_VIDEO_PRESENTER_CLSID, CLSID_DX11VideoRenderer);
I came to the point where MF asks for GetDeviceID, and an exception is thrown in kernel.dll. I think there is a mismatch between the mixer and the visualization device. The default device for them is DX9. In my example, I have to provide the CLSID of the DirectX 11 device.
source
share