MPEG-2 Splitter Media Types
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The MPEG-2 Splitter filter currently supports audio and video. Dolby AC-3 is supported as a substream as defined by DVD. The filter also supports MPEG-2 audio. The media types depend on whether the MPEG-2 splitter is delivering PES packets or PES payloads.
Video
For MPEG-2 video, the media types are as follows.
PES output | Payload output | |
---|---|---|
Major type | MEDIATYPE_MPEG2_PES | MEDIATYPE_Video |
Subtype | MEDIASUBTYPE_MPEG2_VIDEO | MEDIASUBTYPE_MPEG2_VIDEO |
Format type | FORMAT_MPEG2Video | FORMAT_MPEG2Video |
Format structure | MPEG2VIDEOINFO | MPEG2VIDEOINFO |
AC-3 Audio
For AC-3 audio, the media types are as follows.
PES output | Payload output | |
---|---|---|
Major type | MEDIATYPE_MPEG2_PES | MEDIATYPE_Audio |
Subtype | MEDIASUBTYPE_DOLBY_AC3 | MEDIASUBTYPE_DOLBY_AC3 |
Format type | FORMAT_WaveFormatEx | FORMAT_WaveFormatEx |
Format structure | WAVEFORMATEX | WAVEFORMATEX |
The WAVEFORMATEX structure's wFormatTag member for AC-3 is currently WAVE_FORMAT_UNKNOWN, but this might change.
MPEG-2 Audio
For MPEG-2 audio, the media types are as follows.
PES output | Payload output | |
---|---|---|
Major type | MEDIATYPE_MPEG2_PES | MEDIATYPE_Audio |
Subtype | MEDIASUBTYE_MPEG2_AUDIO | MEDIASUBTYPE_MPEG2_AUDIO |
Format type | FORMAT_WaveFormatEx | FORMAT_WaveFormatEx |
Format structure | WAVEFORMATEX | WAVEFORMATEX |
The WAVEFORMATEX structure's wFormatTag member for MPEG-2 Audio is currently WAVE_FORMAT_UNKNOWN, but this might change.
The MPEG-2 Splitter assumes that streams D0 through DF are used for the multichannel extension stream, as they are for DVD MPEG-2 audio. Therefore, whenever stream C x is selected, the splitter forwards the packets for stream D x as well.
LPCM Audio
For LPCM audio, the media types are as follows.
PES output | Payload output | |
---|---|---|
Major type | MEDIATYPE_MPEG2_PES | MEDIATYPE_Audio |
Subtype | MEDIASUBTYPE_DVD_LPCM_AUDIO | MEDIASUBTYPE_DVD_LPCM_AUDIO |
Format type | FORMAT_WaveFormatEx | FORMAT_WaveFormatEx |
Format structure | WAVEFORMATEX | WAVEFORMATEX |
The WAVEFORMATEX structure's wFormatTag member for LPCM audio is currently WAVE_FORMAT_UNKNOWN, but this might change.
Related topics