MPEG-2 Demultiplexer 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 Demultiplexer filter recognizes the following media types.
The major type is always MEDIATYPE_Stream. The subtype can be any of the following.
GUID | Description |
---|---|
KSDATAFORMAT_SUBTYPE_BDA_MPEG2_TRANSPORT | Transport stream from a Broadcast Driver Architecture (BDA) device filter. The MPEG-2 demultiplexer treats this subtype identically to MEDIASUBTYPE_MPEG2_TRANSPORT. |
MEDIASUBTYPE_MPEG2_PROGRAM | Program stream |
MEDIASUBTYPE_MPEG2_TRANSPORT | Transport stream (TS), with 188-byte packets |
MEDIASUBTYPE_MPEG2_TRANSPORT_STRIDE | Transport stream with "strided" packets. This subtype indicates that the TS packets may be padded with extra bytes. For more information, see MPEG2_TRANSPORT_STRIDE. |
For strided transport packets (MEDIASUBTYPE_MPEG2_TRANSPORT_STRIDE), each media sample must contain an integral number of transport packets, as described in MPEG2_TRANSPORT_STRIDE. For all other input types, there are no restrictions on sample boundaries; individual packets can span sample boundaries.
The MPEG-2 Demultiplexer does not validate output types; the downstream filter is responsible for parsing the data it receives from the demultiplexer. However, the following types are commonly accepted by downstream filters as output from the demultiplexer.
Label | Value |
---|---|
Major Type | MEDIATYPE_MPEG2_SECTIONS |
Subtype | Any of the following:
|
Format Type | None |
Label | Value |
---|---|
Major type | MEDIATYPE_Video |
Subtype | MEDIASUBTYPE_MPEG2_VIDEO |
Format Type | FORMAT_MPEG2Video |
Format Structure | MPEG2VIDEOINFO |
Label | Value |
---|---|
Major type | MEDIATYPE_Audio |
Subtype | MEDIASUBTYPE_MPEG2_AUDIO |
Format Type | FORMAT_WaveFormatEx |
Format Structure | WAVEFORMATEX |