MPEG-2 Kernel 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.]

For several MPEG-2 media type GUIDs, the Windows DDK defines names that differ from the names used in DirectShow. The following table shows the DirectShow names (defined in Ksuuids.h) and the corresponding kernel-mode names (defined in Ksmedia.h).

Name in Ksuuids.h Name in Ksmedia.h
FORMAT_WaveFormatEx KSDATAFORMAT_SPECIFIER_WAVEFORMATEX
FORMAT_MPEG2Video KSDATAFORMAT_SPECIFIER_MPEG2_VIDEO
MEDIASUBTYPE_ATSC_SI KSDATAFORMAT_SUBTYPE_ATSC_SI
MEDIASUBTYPE_DOLBY_AC3 KSDATAFORMAT_SUBTYPE_AC3_AUDIO
MEDIASUBTYPE_DVB_SI KSDATAFORMAT_SUBTYPE_DVB_SI
MEDIASUBTYPE_DVD_LPCM_AUDIO KSDATAFORMAT_SUBTYPE_LPCM_AUDIO
MEDIASUBTYPE_MPEG2_AUDIO KSDATAFORMAT_SUBTYPE_MPEG2_AUDIO
MEDIASUBTYPE_MPEG2_PROGRAM STATIC_KSDATAFORMAT_TYPE_MPEG2_PROGRAM
MEDIASUBTYPE_MPEG2_TRANSPORT KSDATAFORMAT_TYPE_MPEG2_TRANSPORT
MEDIASUBTYPE_MPEG2_VIDEO KSDATAFORMAT_SUBTYPE_MPEG2_VIDEO
MEDIATYPE_MPEG2_SECTIONS KSDATAFORMAT_TYPE_MPEG2_SECTIONS
MEDIATYPE_Audio KSDATAFORMAT_TYPE_AUDIO
MEDIATYPE_MPEG2_PES KSDATAFORMAT_TYPE_MPEG2_PES
MEDIATYPE_Video KSDATAFORMAT_TYPE_VIDEO

 

Requirements

Requirement Value
Header
Dshow.h

See also

MPEG-2 Media Types