Share via

Tutorial for Developing Custom Decoder Media Foundation Transform Extension in Microsoft Store

Le Manh 0 Reputation points
2026-02-10T12:14:00.2266667+00:00

Dear everyone,

I need Develop Custom Decoder Media Foundation Transform Extension in Microsoft Store like AV1 Video Extension (https://apps.microsoft.com/detail/9mvzqvxjbq9v?hl=en-US&gl=VN) .

Are there any tutorial or example about developing Custom Media Foundation Transform Extension or Video Extension for Windows ?

Thank you very much,

Windows development | Windows App SDK
0 comments No comments

2 answers

Sort by: Most helpful
  1. Danny Nguyen (WICLOUD CORPORATION) 6,615 Reputation points Microsoft External Staff Moderator
    2026-02-11T07:51:38.0533333+00:00

    Hi @Le Manh ,

    Thank you for posting.

    If your goal is to learn how to implement a custom Media Foundation decoder (IMFTransform), Microsoft doesn’t have a single end-to-end “codec extension like AV1” tutorial, but they do have solid MFT documentation plus a working decoder MFT sample.

    Start with the MFT overview and “Writing a Custom MFT” docs, then use the MediaFoundationTransformDecoder sample in Windows-classic-samples as a code reference for an asynchronous decoder MFT implementation:

    https://dori-uw-1.kuma-moon.com/windows/win32/medfound/media-foundation-transforms

    https://dori-uw-1.kuma-moon.com/windows/win32/medfound/writing-a-custom-mft

    https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/MediaFoundationTransformDecoder

    While this is a non-Microsoft site, it is the official document repository maintained by Microsoft. 

    This should give you a practical starting point for the MFT side (type negotiation, ProcessInput/ProcessOutput, async behavior, etc.).

    Hope this helps.


  2. Q&A Assist
    2026-02-10T12:14:08.93+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To develop a Custom Decoder Media Foundation Transform (MFT) Extension for Windows, you can follow the guidelines provided in the Microsoft documentation. Here are some key steps and resources to help you get started:

    1. Understand the MFT Requirements: All MFTs must implement the IMFTransform interface. Familiarize yourself with the basic MFT processing model, handling stream changes, and time stamps and durations. This is crucial for building a robust decoder.
    2. Implementing a Codec MFT: You should refer to the guidelines for implementing a codec MFT, which includes steps for format negotiation, setting input and output types, and ensuring compatibility with various media formats.
    3. Sample Implementations: Microsoft provides sample projects that can serve as a reference. For example, the Decoder sample demonstrates how to create a video decoder.
    4. Registering Your MFT: Make sure to register your MFT so that it can be discovered by applications. This involves implementing the necessary registration interfaces.
    5. Testing and Debugging: After implementation, test your MFT thoroughly to ensure it works correctly with the Media Foundation pipeline.

    For detailed steps and code examples, you can refer to the following resources:

    • Writing a Custom MFT
    • Implementing a Codec MFT

    These resources will provide comprehensive guidance on developing your custom decoder extension.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.