Microsoft DirectX 9.0 |
The MPEG-2 Demultiplexer filter recognizes the following media types.
Input 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.
Output Types
The MPEG-2 Demultiplexer does not validate output types; the downstream filter is responsibe for parsing the data it receives from the demultiplexer. However, the following types are commonly accepted by downstream filters as output from the demultiplexer:
MPEG-2 Sections
Major Type | MEDIATYPE_MPEG2_SECTIONS |
Subtype | MEDIASUBTYPE_ATSC_SI: ATSC Service Information
MEDIASUBTYPE_DVB_SI: DVB Service Information MEDIASUBTYPE_MPEG2DATA: Used by the MPEG-2 Sections and Tables filter. |
Format Type | None |
MPEG-2 Video
Major type | MEDIATYPE_Video |
Subtype | MEDIASUBTYPE_MPEG2_VIDEO |
Format Type | FORMAT_MPEG2Video |
Format Structure | MPEG2VIDEOINFO |
MPEG-2 Audio
Major type | MEDIATYPE_Audio |
Subtype | MEDIASUBTYPE_MPEG2_AUDIO |
Format Type | FORMAT_WaveFormatEx |
Format Structure | WAVEFORMATEX |
Requirements
Some of these GUIDs are defined in the header file Bdamedia.h
See Also