I hava found using Microsoft.DirectX.AudioVideoPlayback is solution for this problem. But I can't use it , My code is in c/c++.I also found the Media Foundation can decode the video and generate the texture array, which can be see in the http://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx. How can I do next ? Where is a sample for it?
Actually, I want render a video to texture, and the texture can be mapped to a 3D mesh。
My decoding procedure is followed as http://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx . It seems differ from you given to me. In the Allocating Uncompressed Buffers step, it will create a texture by calling CreateTexture2D and return ID3D11Texture2D interface. Does this interface can be used in CreateShaderResourceView? if can't , how to use the ID3D11Texture2D?
For each surface in the texture array , call CreateVideoDecoderOutputView to create a video decoder output view, And the ID3D11VideoDecoderOutputView interface will be get from this, How to convert it to the ID3D11ShaderResourceView that can be used in the PSSetShaderResources?
I'm so confused, thank you for your help.