Compartilhar via


MPEG-1 Media Types

 
Microsoft DirectShow 9.0

MPEG-1 Media Types

This section lists the media types used for MPEG-1 data.

MPEG-1 System Stream

Major type MEDIATYPE_Stream
Subtype MEDIASUBTYPE_MPEG1System
Format Type GUID_NULL
Format Structure None
Media Sample Contents Byte stream; no alignment

MPEG-1 System Stream from Video CD

Major type MEDIATYPE_Stream
Subtype MEDIASUBTYPE_MPEG1VideoCD
Format Type GUID_NULL
Format Structure None
Media Sample Contents Byte stream; no alignment.

MPEG-1 Audio Packet

Major type MEDIATYPE_Audio
Subtype MEDIASUBTYPE_MPEG1Packet
Format Type FORMAT_WaveFormatEx
Format Structure MPEG1WAVEFORMAT
Media Sample Contents Single MPEG-1 packet, including packet header.

MPEG-1 Audio payload

Major type MEDIATYPE_Audio
Subtype MEDIASUBTYPE_MPEG1Payload
Format Type FORMAT_WaveFormatEx
Format Structure MPEG1WAVEFORMAT
Media Sample Contents Byte-aligned MPEG-1 audio data.

MPEG-1 Video Packet

Major type MEDIATYPE_Video
Subtype MEDIASUBTYPE_MPEG1Packet
Format Type FORMAT_MPEGVideo
Format Structure MPEG1VIDEOINFO
Media Sample Contents Single MPEG-1 packet, including packet header.

MPEG-1 Video payload

Major type MEDIATYPE_Video
Subtype MEDIASUBTYPE_MPEG1Payload
Format Type FORMAT_MPEGVideo
Format Structure MPEG1VIDEOINFO
Media Sample Contents Byte-aligned MPEG-1 video data.

MPEG-1 Native Video Stream

Major type MEDIATYPE_Stream
Subtype MEDIASUBTYPE_ MPEG1Video
Format Type GUID_NULL
Format Structure None
Media Sample Contents Array of video stream bytes (no system layer).

MPEG-1 Native Audio Stream

Major type MEDIATYPE_Stream
Subtype MEDIASUBTYPE_ MPEG1Audio
Format Type GUID_NULL
Format Structure None
Media Sample Contents Array of audio stream bytes (no system layer).

The DirectShow MPEG-1 filters support these types as follows.

Filter Direction Supported media types
MPEG-1 Splitter Input MPEG-1 system stream

MPEG-1 system stream from Video CD

MPEG-1 Splitter Output MPEG-1 Audio packet

MPEG-1 Audio payload

MPEG-1 Video packet

MPEG-1 Video payload

Software Audio Codec Input MPEG-1 Audio packet

MPEG-1 Audio payload

Software Video Codec Input MPEG-1 Video packet

MPEG-1 Video payload

Software Audio Codec Output PCM audio
Software Video Codec Output Uncompressed video (Y41P, YUY2, UYVY, RGB-24, RGB-32, RGB-565, RGB-555, RGB-8)

MPEG-1 Video packet and payload media types contain a complete sequence header so that data can be played from the middle of a file without needing a sequence header to initialize the video playback.

The video sequence header is appended to the video data type for MPEG video so that play can begin from the middle of a stream. The length of this field is up to 140 bytes; it includes the sequence header start code (0x000001B3) at the start, along with any quantization matrices found in the first sequence header encountered.

Requirements

  Header: Dshow.h.