Media Foundation SDK Samples

This section describes sample applications that demonstrate how to use Media Foundation.

Encoding Samples

SampleDescription
Transcode Shows how to reencode a media file to Windows Media format.

 

Playback Samples

SampleDescription
BasicPlayback Plays audio and video files by using the Media Session. This sample demonstrates how to create playback topologies, control the Media Session, and receive session events during playback.
MFPlayer Demonstrates some playback functions that are not included in the BasicPlayback sample.
ProtectedPlayback Plays protected audio and video files. This sample shows how to use the protected media path (PMP) session and how to use content enabler objects.

 

Plug-Ins

SampleSub-AreaDescription
Decoder Media Foundation transform (MFT)Video decoder.
EVRPresenter MiscellaneousCustom presenter for the Enhanced Video Renderer (EVR).
MFT_AudioDelay MFTAudio effect transform. Shows how to write a basic MFT for audio processing.
MFT_Grayscale MFTGrayscale video effect. Shows how to write a basic MFT for video processing.
MPEG1Source Media sourceParses MPEG-1 systems-layer streams. Shows how to write a custom media source and byte-stream handler.
WavSink Media sinkAn archive sink that writes .wav files. Shows how to write a custom media sink.
WavSource Media sourceParses .wav files. Shows how to write a custom media source and byte-stream handler.

 

Source Reader Samples

SampleDescription
Audio Clip Uses the Source Reader to decode audio from a media file.
VideoThumbnail Uses the Source Reader to get single frames from a video file.

 

Video Capture

SampleDescription
MFCaptureD3D Shows how to preview video from a video capture device, using Direct3D to render the video.
MFCaptureToFile Shows how to capture video from a video camera to a file.

 

Miscellaneous Samples

SampleDescription
ASFParser Shows how to parse data from an Advanced Systems Format (ASF) file.
DXVA-HD Shows how to use Microsoft DirectX Video Acceleration High Definition (DXVA-HD).
DXVA2_VideoProc Uses DirectX Video Acceleration (DXVA) 2.0 to create a stream of 4:2:2 YUV video. This sample shows how to use the video processing features of DXVA.

 

Deprecated or Obsolete Samples

SampleDescription
MFPlayer2 Demonstrates some advanced playback features of the MFPlay API.
PlaybackFX

Applies a grayscale effect to video. Shows how to insert MFTs into a playback topology.

Note  This sample is no longer included in the SDK.

Playlist

Plays a sequence of audio files using the sequencer source.

Note  This sample is no longer included in the SDK.

SimpleCapture Shows how to preview video from a video capture device, using the MFPlay API.
SimplePlay Shows how to play a media file using the MFPlay API.

 

Related topics

About Media Foundation

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.