Media Type Attributes

The following attributes apply to media types. Some of these attributes are intended only for converting legacy media type formats into Media Foundation media types.

General Format Attributes

These attributes can be applied to all media types.

AttributeDescription
MF_MT_ALL_SAMPLES_INDEPENDENTSpecifies whether each sample is independent of the other samples in the stream.
MF_MT_AM_FORMAT_TYPEFormat GUID.
MF_MT_COMPRESSEDSpecifies whether the media data is compressed
MF_MT_FIXED_SIZE_SAMPLESSpecifies whether the samples have a fixed size.
MF_MT_MAJOR_TYPEMajor type GUID.
MF_MT_SAMPLE_SIZESize of each sample, in bytes.
MF_MT_SUBTYPESubtype GUID.
MF_MT_USER_DATAContains user data for a media type that was converted from a legacy format structure.
MF_MT_WRAPPED_TYPEContains a media type that has been wrapped in another media type.

 

Audio Format Attributes

These attributes can be applied to media types whose major type equals MFMediaType_Audio.

AttributeDescription
MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATIONSpecifies the audio profile and level of an Advanced Audio Coding (AAC) stream.
MF_MT_AAC_PAYLOAD_TYPESpecifies the payload type for an Advanced Audio Coding (AAC) stream.
MF_MT_AUDIO_AVG_BYTES_PER_SECONDAverage number of bytes per second.
MF_MT_AUDIO_BITS_PER_SAMPLENumber of bits per audio sample.
MF_MT_AUDIO_BLOCK_ALIGNMENTBlock alignment, in bytes.
MF_MT_AUDIO_CHANNEL_MASKSpecifies the assignment of audio channels to speaker positions.
MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECONDNumber of audio samples per second (floating-point value).
MF_MT_AUDIO_FOLDDOWN_MATRIXSpecifies how an audio decoder should transform multichannel audio to stereo output.
MF_MT_AUDIO_NUM_CHANNELSNumber of audio channels.
MF_MT_AUDIO_PREFER_WAVEFORMATEXSpecifies the preferred legacy format structure to use when converting an audio media type.
MF_MT_AUDIO_SAMPLES_PER_BLOCKNumber of audio samples contained in one compressed block of audio data.
MF_MT_AUDIO_SAMPLES_PER_SECONDNumber of audio samples per second (integer value).
MF_MT_AUDIO_VALID_BITS_PER_SAMPLENumber of valid bits of audio data in each audio sample.
MF_MT_AUDIO_WMADRC_AVGREFReference average volume level of a Windows Media Audio file.
MF_MT_AUDIO_WMADRC_AVGTARGETTarget average volume level of a Windows Media Audio file.
MF_MT_AUDIO_WMADRC_PEAKREFReference peak volume level of a Windows Media Audio file.
MF_MT_AUDIO_WMADRC_PEAKTARGETTarget peak volume level of a Windows Media Audio file.
MF_MT_ORIGINAL_WAVE_FORMAT_TAGContains the original WAVE format tag for an audio stream.

 

Video Format Attributes

These attributes can be applied to media types whose major type equals MFMediaType_Video.

AttributeDescription
MF_MT_AVG_BIT_ERROR_RATEData error rate.
MF_MT_AVG_BITRATEApproximate data rate of the video stream.
MF_MT_CUSTOM_VIDEO_PRIMARIESCustom color primaries.
MF_MT_DEFAULT_STRIDEDefault surface stride.
MF_MT_DRM_FLAGSSpecifies whether the video requires enforcing copy protection.
MF_MT_FRAME_RATEFrame rate.
MF_MT_FRAME_RATE_RANGE_MAXThe maximum frame rate supported by a video capture device.
MF_MT_FRAME_RATE_RANGE_MINThe minimum frame rate supported by a video capture device.
MF_MT_FRAME_SIZEWidth and height of the video frame.
MF_MT_GEOMETRIC_APERTUREGeometric aperture.
MF_MT_INTERLACE_MODEDescribes how the frames are interlaced.
MF_MT_MAX_KEYFRAME_SPACINGMaximum number of frames from one key frame to the next.
MF_MT_MINIMUM_DISPLAY_APERTUREMinimum display aperture.
MF_MT_MPEG_SEQUENCE_HEADERMPEG-1 or MPEG-2 sequence header.
MF_MT_MPEG_START_TIME_CODEGroup-of-pictures (GOP) start time code.
MF_MT_MPEG2_FLAGSMiscellaneous flags for MPEG-2 video.
MF_MT_MPEG2_LEVELMPEG-2 or H.264 level.
MF_MT_MPEG2_PROFILEMPEG-2 or H.264 profile.
MF_MT_ORIGINAL_4CCContains the original codec FOURCC for a video stream.
MF_MT_PAD_CONTROL_FLAGSAspect ratio of the output rectangle.
MF_MT_PALETTEPalette entries.
MF_MT_PAN_SCAN_APERTUREDefines the 4×3 region of video that should be displayed in pan/scan mode.
MF_MT_PAN_SCAN_ENABLEDSpecifies whether pan/scan mode is enabled.
MF_MT_PIXEL_ASPECT_RATIOPixel aspect ratio.
MF_MT_SOURCE_CONTENT_HINTIntended aspect ratio.
MF_MT_TRANSFER_FUNCTIONConversion function from RGB to R'G'B'.
MF_MT_VIDEO_CHROMA_SITINGDescribes how chroma was sampled for Y'Cb'Cr' video.
MF_MT_VIDEO_LIGHTINGOptimal lighting conditions for viewing.
MF_MT_VIDEO_NOMINAL_RANGENominal range of the color information
MF_MT_VIDEO_PRIMARIESColor primaries.
MF_MT_YUV_MATRIXConversion matrix from the Y'Cb'Cr' color space to the R'G'B' color space.

 

Other Format Attributes

The following attributes apply to interleaved DV video.

AttributeDescription
MF_MT_DV_AAUX_CTRL_PACK_0Audio auxiliary (AAUX) source control pack for the first audio block.
MF_MT_DV_AAUX_CTRL_PACK_1AAUX source control pack for the second audio block.
MF_MT_DV_AAUX_SRC_PACK_0AAUX source pack for the first audio block.
MF_MT_DV_AAUX_SRC_PACK_1AAUX source pack for the second audio block.
MF_MT_DV_VAUX_CTRL_PACKVideo auxiliary (VAUX) source control pack.
MF_MT_DV_VAUX_SRC_PACKVAUX source pack.

 

The following attributes apply to Advanced Streaming Format (ASF) files.

AttributeDescription
MF_MT_ARBITRARY_FORMATAdditional format data for a binary stream in an ASF file.
MF_MT_ARBITRARY_HEADERType-specific data for a binary stream in an ASF file.
MF_MT_IMAGE_LOSS_TOLERANTSpecifies whether an ASF image stream is a degradable JPEG type.

 

The following attributes apply to MPEG-4 files.

AttributeDescription
MF_MT_MPEG4_CURRENT_SAMPLE_ENTRYThe index of the current entry in the sample description box.
MF_MT_MPEG4_SAMPLE_DESCRIPTIONThe sample description box.

 

See Also

IMFMediaType
Media Foundation Attributes
Media Types
Audio Media Types
Video Media Types

Send comments about this topic to Microsoft

Build date: 10/8/2009

Tags :


Page view tracker