Decoder Sample

Shows how to write a decoder for Microsoft Media Foundation.

This sample implements a mock MPEG-1 video decoder that displays the time code for each video frame. It does not actually decode the MPEG-1 bitstream. The following image shows the video output from the decoder.

Screen shot of a video frame from the decoder
Note  Prior to the Windows SDK for Windows 7, this sample was included as part of the MPEG1Source Sample.

APIs Demonstrated

This sample demonstrates the following Media Foundation interfaces:


Windows SDKWindows 7


Downloading the Sample

This sample is available in the following locations.

Windows SDKSDK Root\Samples\multimedia\mediafoundation\Decoder


Related topics

Media Foundation SDK Samples
Media Foundation Transforms
Writing a Custom MFT