I'm trying to encode a direct x buffer using MediaFoundation. My Direct X Texture Format is
B8G8R8A8_UNorm
and my media input subtype in my Sink Writer is
ARGB32
When I run the program the system hang for a couple of minute and then it close. I tried changing
ARGB32
to
RGB32
and it works but its not a hardware encode. I got High CPU usage on my app. I've searched online and I discovered that only NV12 and ARGB32 works on hardware encode. Can anyone help me how can I make ARGB32 media input accept the B8G8R8A8_UNorm Texture. Thanks.