Encoding a D3D Surface obtained through Desktop Duplication using Media Foundation

前端 未结 1 1535
自闭症患者
自闭症患者 2020-12-17 06:48

I want to encode Desktop Duplication API frames to send over the network after encoding them with Media Foundation. I\'m stuck with a E_NOTIMPL error when I call IMFTransfor

相关标签:
1条回答
  • 2020-12-17 07:23

    The first thing to do, is to check if your encoder is MF_SA_D3D11_AWARE

    I think it does not, reading this : MFT_MESSAGE_SET_D3D_MANAGER

    If an MFT does not support this message, it should return E_NOTIMPL

    But one thing is strange : DirectX Surface Buffer

    Call IMFMediaBuffer::Lock. Generally this is not recommended, because it forces the object to copy memory from the Direct3D surface and then back again.

    ProcessInput should have worked.

    0 讨论(0)
提交回复
热议问题