MF_MT_MPEG4_SAMPLE_DESCRIPTION attribute

Contains the sample description box for an MP4 or 3GP file.

Data type

BYTE[]

Syntax

GUID MF_MT_MPEG4_SAMPLE_DESCRIPTION = {0x261e9d83,0x9529,0x4b8f,{0xa1,0x11,0x8b,0x9c,0x95,0x0a,0x81,0xa9} }  

Get/set

To get this attribute, call IMFAttributes::GetBlob

To set this attribute, call IMFAttributes::SetBlob

Applies to

IMFMediaType

Remarks

The sample description box describes the encoding used for a stream in the file.

The MPEG-4 file source sets this attribute on the media type for each stream. The value of the attribute is the raw data in the sample description box. If the MPEG-4 file source can parse the sample description, it also adds the format details to the media type. Otherwise, the application or the decoder must parse the sample description from the MF_MT_MPEG4_SAMPLE_DESCRIPTION attribute.

When setting this attribute on MPEG-4 sink through IMFMediaTypeHandler::SetCurrentMediaType method, the data for the attribute MF_MT_MPEG4_SAMPLE_DESCRIPTION should not change after one or more samples have been sent to the sink on the corresponding stream’s IMFStreamSink::ProcessSample interface.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Header: Declared in mfapi.h.