Windows Media Encoders

An encoder converts uncompressed audio or video into compressed packets in the format specified by the application. For converting media files into ASF format, you can use the Windows Media audio and video codecs.

An encoder is identified by the GUID that represents the category: audio or video. The encoder's output type is represented by a media type's major and the sub type GUID.

  • Windows Media audio codecs

    Category: MFT_CATEGORY_AUDIO_ENCODER

    Major type: MFMediaType_Audio

    SubType: MFAudioFormat_WMAudioV9, MFAudioFormat_WMAudioV8, MFAudioFormat_WMAudio_Lossless, MFAudioFormat_WMASPDIF

  • Windows Media video codecs

    Category: MFT_CATEGORY_VIDEO_ENCODER

    Major type: MFMediaType_Video

    SubType: MFVideoFormat_WVC1, MFVideoFormat_WMV3, MFVideoFormat_WMV2, MFVideoFormat_WMV1

These encoders are implemented as Media Foundation transform (MFT) and Media Foundation provides access to the application through the IMFTransform interface of the encoder. If you are using pipeline layer components for ASF encoding, the encoder MFT is inserted into the pipeline as a transform node because it is responsible for transforming media data that flows through the source to the sink. If the source is a compressed type, then the pipeline adds the required decoders to convert the source into an uncompressed type. An encoder has one input stream and one output stream. The encoder receives input data and produces encoded data according to the configuration and format set by the application prior to the encoding session. The format of the output stream is described by a media type.

This section contains the following topics.

Topic Description
Instantiating an Encoder MFT Explains how to create the encoder.
Encoding Properties Explains how to configure the encoder by setting appropriate properties on the encoder MFT.
Media Type Negotiation on the Encoder Explains how to set input and output media types on the encoder.
Configuring a WMV Encoder Explains how to configure a Windows Media Video (WMV) encoder.
Setting an Output Type for a WMA Encoder Explains how to set an output type on a Windows Media Audio (WMA) encoder.

 

Pipeline Layer ASF Components