Microsoft MPEG-2 Encoder

The Microsoft MPEG-2 Encoder filter encodes MPEG-2 audio and video and multiplexes the streams to generate an MPEG-2 program stream or transport stream.

Note

This filter is not supported on IA-64-based platforms.

 

Filter Information

Filter Interfaces

IBaseFilter
ICodecAPI
IEncoderAPI
IMediaSeeking
IVideoEncoder

Input Pin Media Types

See Remarks

Input Pin Interfaces

IMemInputPin
IPin
IQualityControl

Output Pin Media Types

See Remarks

Output Pin Interfaces

IMediaSeeking
IPin
IQualityControl

Filter CLSID

CLSID_CMPEG2EncoderDS (declared in wmcodecdsp.h)

Executable

msmpeg2enc.dll

Merit

MERIT_DO_NOT_USE

Filter Category

CLSID_LegacyAmFilterCategory

 

Remarks

This filter combines the encoding functionality of two other filters:

Except as noted, this filter supports the same encoding features as those two encoders.

Initially the filter has one input pin, which can accept audio or video input. When that pin is connected, the filter creates a second input pin. If the first input pin receives audio, the second input pin accepts only video, and vice versa. Each input pin supports the same media types as the corresponding encoder filter.

If only one input pin is connected, the filter supports the same output types as the corresponding audio or video encoder. If both pins are connected, the filter supports the following kinds of output:

  • Audio-visual in an MPEG-2 program stream
  • Audio-visual in an MPEG-2 transport stream

These correspond to the following output types:

  • MEDIATYPE_Stream, MEDIASUBTYPE_MPEG2_PROGRAM
  • MEDIATYPE_Stream, MEDIASUBTYPE_MPEG2_TRANSPORT

This filter cannot multiplex streams that were previously encoded. The input streams must be uncompressed audio/video, which the filter encodes before multiplexing. The multiplexed stream is limited to one program, containing up to one audio and one video stream.

Codec Properties

The filter supports the combined properties of the MPEG-2 Audio Encoder and MPEG-2 Video Encoder filters, with the following difference:

Requirements

Minimum supported client
Windows Vista Home Premium, Windows Vista Ultimate, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Enterprise, Windows 7 Ultimate [desktop apps only]
Minimum supported server
None supported
Header
Wmcodecdsp.h

See also

DirectShow Filters