4 ms·
The API you have linked is too low level to my taste. When I wanted to play video and render them inside D3D12 scenes, I have used a higher-level one, IMFMedia
by Const-me 3y ago
The API you have linked is too low level to my taste.
When I wanted to play video and render them inside D3D12 scenes, I have used a higher-level one, IMFMediaEngine https://learn.microsoft.com/en-us/windows/win32/api/mfmediaengine/nn-mfmediaengine-imfmediaengine https://learn.microsoft.com/en-us/windows/win32/api/mfmediae...
That OS-supplied high-level video player object can demux containers, decode, play audio, and copy uncompressed frames to D3D11 textures. Then, it’s relatively easy to use DXGI surface sharing API to share the resulting RGBA8 frames from D3D11 into D3D12.