Microsoft DirectX 8.1 (C++)

MPEG-2 Splitter Filter Media Types

The MPEG-2 Splitter filter currently supports audio and video. Dolby AC-3 is supported as a substream as defined by DVD. MPEG-2 audio is also supported.

For video the type is as follows.

  PES output Payload output
Type MEDIATYPE_MPEG2_PES MEDIATYPE_Video
Subtype MEDIASUBTYPE_MPEG2_VIDEO MEDIASUBTYPE_MPEG2_VIDEO
Format FORMAT_MPEG2Video FORMAT_MPEG2Video
Format block MPEG2VIDEOINFO MPEG2VIDEOINFO

For AC-3 audio the type is as follows.

  PES output Payload output
Type MEDIATYPE_MPEG2_PES MEDIATYPE_Audio
Subtype MEDIASUBTYPE_DOLBY_AC3 MEDIASUBTYPE_DOLBY_AC3
Format FORMAT_WaveFormatEx FORMAT_WaveFormatEx
Format block WAVEFORMATEX WAVEFORMATEX

The WAVEFORMATEX structure's wFormatTag member for AC-3 is currently WAVE_FORMAT_UNKNOWN, but it might change so you should check for it.

For MPEG-2 the type is as follows.

  PES output Payload output
Type MEDIATYPE_MPEG2_PES MEDIATYPE_Audio
Subtype MEDIASUBTYE_MPEG2_AUDIO MEDIASUBTYPE_MPEG2_AUDIO
Format FORMAT_WaveFormatEx FORMAT_WaveFormatEx
Format block WAVEFORMATEX WAVEFORMATEX

The WAVEFORMATEX structure's wFormatTag member for MPEG-2 Audio is currently WAVE_FORMAT_UNKNOWN, but it might change so you should check for it.

The MPEG-2 Splitter assumes that streams D0-DF are used for the multichannel extension stream, as they are for DVD MPEG-2 audio, so, whenever stream Cx is selected, the splitter forwards the packets for stream Dx as well.

For LPCM audio the type is as follows.

  PES output Payload output
Type MEDIATYPE_MPEG2_PES MEDIATYPE_Audio
Subtype MEDIASUBTYPE_DVD_LPCM_AUDIO MEDIASUBTYPE_DVD_LPCM_AUDIO
Format FORMAT_WaveFormatEx FORMAT_WaveFormatEx
Format block WAVEFORMATEX WAVEFORMATEX

The WAVEFORMATEX structure's wFormatTag member for LPCM audio is currently WAVE_FORMAT_UNKNOWN, but it might change so you should check for it.