After getting the Microsoft H.264 MFT decoder to output data, I am trying to get the MPEG-4 decoder to do the same, but so far no luck. I am using the same framework, initializing the CLSID_CMpeg4sDecMFT decoder, and passing bitstream data in. However, nothing comes back out, so clearly there is something wrong with the initialization or format of my input bitstream chunks. The documentation is sparse. Does anyone know any special requirements to the bitstream format being passed in? (for instance, the H.264 decoder required Annex B bitstreams, and not MPEG-4 style)..
I am setting the Subtype to MFVideoFormat_MP4V.
The documentation says:
The MPEG4 Part 2 Video decoder accepts the following formats.
- VIDEOINFOHEADER
- VIDEOINFOHEADER2 (VIH2)
- MFVideoInfo
- MPEG2VIDEOINFO (Only the VIH2 portion of the header is used.)
What does this mean? How should the IMFSamples be created to one of these formats?