Pipeline Layer ASF Components
In Media Foundation's pipeline model, a media source is connected to a transform which is further connected to a media sink. The data contained in the source flows through the transform and generates output media samples in the sink for the purpose of playback or encoding. Depending on whether the application wants to playback ASF content or encode to an ASF file, the application must build the pipeline differently.
The following topics contain information about the pipeline layer components.
The three main components of an ASF pipeline for playback are as follows:
- ASF media source is provided by Media Foundation that represents an ASF file.
- Audio resamplers, video image resizers, etc., (transform)
- Audio and Video renderer (sinks)
For information about building a playback pipeline, see Creating Playback Topologies.
The three main components of an ASF pipeline for encoding are as follows:
- Media source representing the data in a format that needs to be converted. This component can be one of the default media sources provided by Media Foundation or a custom source that exposes the IMFMediaSource interface.
- Windows Media encoders (transform) that perform the format conversion.
- ASF media sinks provided by Media Foundation that write ASF objects and media samples in an output file specified by the application.
The following topic contains step-by-step instructions about using the pipeline layer components to build an encoding topology. components for reading and writing ASF files.