| Previous | Next |
| MF_E_QM_INVALIDSTATE | MF_E_TRANSCODE_PROFILE_NO_MATCHING_STREAMS |
MF_E_TRANSCODE_NO_CONTAINERTYPE
MF_E_TRANSCODE_NO_CONTAINERTYPE is raised while Media Foundation builds a transcode topology from an incomplete profile. The transcode profile has separate audio, video, and container attribute stores; the container store must include MF_TRANSCODE_CONTAINERTYPE.
Check the profile before creating the topology
- Call
IMFTranscodeProfile::GetContainerAttributesand log theMF_TRANSCODE_CONTAINERTYPEGUID actually present in the returned store. - Set container attributes with
SetContainerAttributes. Creating anIMFTranscodeProfilealone is not enough because a new profile is empty. - Do not diagnose this HRESULT as an encoder failure. The container GUID is used to select the output file format and the appropriate media sink; audio and video codec attributes solve a different part of topology construction.
Microsoft documents MF_TRANSCODE_CONTAINERTYPE as the required container attribute. Typical values select formats such as MP4 or ASF. The most useful diagnostic dump is therefore the three profile attribute sets immediately before MFCreateTranscodeTopology. If the container store is missing or the required key was written to the audio or video store by mistake, changing the output filename extension will not repair the profile.
Microsoft: MFCreateTranscodeTopology · Microsoft: using the Transcode API · Microsoft: IMFTranscodeProfile
Looking for a different code? Search another status or error code.