How to get a list of all Microsoft Media Foundation Transforms (MFTs) available on a system

后端 未结 1 1221
北恋
北恋 2021-01-15 01:01

I\'m a newbie to native development on Windows, but I\'ve been tasked with creating a small app that will list out all the transformers for various video+audio codecs.

相关标签:
1条回答
  • 2021-01-15 01:42

    This is an old question, but noone should go away unanswered.

    As you discovered, MFTEnumEx can give you the list of MFTs, either bulk list, or filtered with a criteria. Now once you have the collection of transforms, you have IMFActivate for every transform available.

    Having IMFActivate on hands, see this code snippet how you can obtain information about this transform: you list attributes or access attribute of interest using its key, you can obtain the category, input and output media types (MFT_INPUT_TYPES_Attributes, MFT_OUTPUT_TYPES_Attributes).

    Here is sample code and MFT dump samples:

    • How to enumerate Media Foundation transforms on your system
    • Enumerating Media Foundation Transforms (MFTs)
    0 讨论(0)
提交回复
热议问题