Media Foundation Attributes

This section lists all of the attribute GUIDs that are defined for Media Foundation.

In this section

MFMPEG4Format_Base attribute
Base for MPEG-4 media types.

MFSampleExtension_3DVideo attribute

Specifies whether a media sample contains a 3D video frame.

MFSampleExtension_3DVideo_SampleFormat attribute

Specifies how a 3D video frame is stored in a media sample.

MFSampleExtension_BottomFieldFirst attribute

Specifies the field dominance for an interlaced video frame. This attribute applies to media samples.

MFSampleExtension_CleanPoint attribute

Indicates whether a sample is a random access point.

MFSampleExtension_ClosedCaption attribute
Closed caption.

MFSampleExtension_DecodeTimestamp attribute

Contains the decode time stamp (DTS) for the sample.

MFSampleExtension_DerivedFromTopField attribute

Specifies whether a deinterlaced video frame was derived from the upper field or the lower field. This attribute applies to media samples.

MFSampleExtension_DescrambleData attribute
Descramble data. Sample attribute used for encrypted samples.

MFSampleExtension_Discontinuity attribute

Specifies whether a media sample is the first sample after a gap in the stream.

MFSampleExtension_Encryption_KeyID attribute
The encryption key ID.

MFSampleExtension_Encryption_SampleID attribute
The sample ID of the sample extention for encryption.

MFSampleExtension_FrameCorruption attribute

Specifies whether a video frame is corrupted.

MFSampleExtension_GenKeyCtx attribute
Generates the key context.

MFSampleExtension_GenKeyFunc attribute
Generates a key function.

MFSampleExtension_Interlaced attribute

Indicates whether a video frame is interlaced or progressive. If TRUE, the frame is interlaced. If FALSE, the frame is progressive. If not set, the media type describes the interlacing. This attribute applies to media samples.

MFSampleExtension_PacketCrossOffsets attribute

Specifies the offsets to the payload boundaries in a frame for protected samples.

MFSampleExtension_RepeatFirstField attribute

Specifies whether to repeat the first field in an interlaced frame. This attribute applies to media samples.

MFSampleExtension_SampleKeyID attribute
Sample key ID.

MFSampleExtension_SingleField attribute

Specifies whether a video sample contains a single field or two interleaved fields. This attribute applies to media samples.

MFSampleExtension_Token attribute

Contains a pointer to the token that was provided to the IMFMediaStream::RequestSample method.

MFSampleExtension_VideoEncodePictureType attribute

Specifies the type of picture that is output by a video encoder.

MFSampleExtension_VideoEncodeQP attribute

Specifies the quantization parameter (QP) that was used to encode a video sample.

MFT_CODEC_MERIT_Attribute attribute

Contains the merit value of a hardware codec.

MFT_CONNECTED_STREAM_ATTRIBUTE attribute

Contains a pointer to the stream attributes of the connected stream on a hardware-based Media Foundation transform (MFT).

MFT_CONNECTED_TO_HW_STREAM attribute

Specifies whether a hardware-based Media Foundation transform (MFT) is connected to another hardware-based MFT.

MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER attribute

Specifies whether a decoder exposes IYUV/I420 output types (suitable for transcoding) before other formats.

MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT attribute

Specifies the final output resolution of the decoded image, after video processing.

MFT_ENUM_HARDWARE_URL_Attribute attribute

Contains the symbolic link for a hardware-based Media Foundation transform (MFT).

MFT_ENUM_HARDWARE_VENDOR_ID_Attribute attribute

Specifies the vendor ID for a hardware-based Microsoft Media Foundation transform (MFT).

MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE attribute

Specifies whether a decoder is optimized for transcoding rather than for playback.

Currently, this attribute applies only to hardware-based decoders that use the AVStream mini-driver. The attribute is stored in the registry under the decoder’s capabilities information. For more information, see the documentation for IGetCapabilitiesKey.

Applications typically do not use this attribute.

MFT_FIELDOFUSE_UNLOCK_Attribute attribute
Contains an IMFFieldOfUseMFTUnlock pointer, which can be used to unlock a Media Foundation transform (MFT). The IMFFieldOfUseMFTUnlock interface is used to unlock an MFT that has field-of-use restrictions.

MFT_FRIENDLY_NAME_Attribute attribute

Contains the display name for a hardware-based Media Foundation transform (MFT).

MFT_HW_TIMESTAMP_WITH_QPC_Attribute attribute

Specifies whether a hardware device source uses the system time for time stamps.

MFT_INPUT_TYPES_Attributes attribute

Contains the registered input types for a Media Foundation transform (MFT).

MFT_OUTPUT_TYPES_Attributes attribute

Contains the registered output types for a Media Foundation transform (MFT).

MFT_PREFERRED_ENCODER_PROFILE attribute
Contains configuration properties for an encoder.

MFT_PREFERRED_OUTPUTTYPE_Attribute attribute
Specifies the preferred output format for an encoder.

MFT_PROCESS_LOCAL_Attribute attribute

Specifies whether a Media Foundation transform (MFT) is registered only in the application’s process.

MFT_SUPPORT_3DVIDEO attribute

Specifies whether a Media Foundation transform (MFT) supports 3D stereoscopic video.

MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE attribute

Specifies whether a Media Foundation transform (MFT) supports dynamic format changes.

MFT_TRANSFORM_CLSID_Attribute attribute
Contains the class identifier (CLSID) of a Media Foundation transform (MFT).

MF_ENABLE_3DVIDEO_OUTPUT attribute

Specifies how a Media Foundation transform (MFT) should output a 3D stereoscopic video stream.

MF_EVENT_MFT_CONTEXT attribute

Contains a caller-defined value for an METransformMarker event.

MF_EVENT_MFT_INPUT_STREAM_ID attribute

Specifies an input stream on a Media Foundation transform (MFT).

MF_LOW_LATENCY attribute

Enables low-latency processing in the Microsoft Media Foundation pipeline.

MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION attribute
Specifies the audio profile and level of an Advanced Audio Coding (AAC) stream.

MF_MT_AAC_PAYLOAD_TYPE attribute
Specifies the payload type of an Advanced Audio Coding (AAC) stream.

MF_MT_ALL_SAMPLES_INDEPENDENT attribute

Specifies for a media type whether each sample is independent of the other samples in the stream.

MF_MT_AUDIO_AVG_BYTES_PER_SECOND attribute

Average number of bytes per second in an audio media type.

MF_MT_AUDIO_BITS_PER_SAMPLE attribute

Number of bits per audio sample in an audio media type.

MF_MT_AUDIO_BLOCK_ALIGNMENT attribute

Block alignment, in bytes, for an audio media type. The block alignment is the minimum atomic unit of data for the audio format.

MF_MT_AUDIO_CHANNEL_MASK attribute

In an audio media type, specifies the assignment of audio channels to speaker positions.

MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND attribute

Number of audio samples per second in an audio media type.

MF_MT_AUDIO_FOLDDOWN_MATRIX attribute

Specifies how an audio decoder should transform multichannel audio to stereo output. This process is also called fold-down.

MF_MT_AUDIO_NUM_CHANNELS attribute

Number of audio channels in an audio media type.

MF_MT_AUDIO_PREFER_WAVEFORMATEX attribute

Specifies the preferred legacy format structure to use when converting an audio media type.

MF_MT_AUDIO_SAMPLES_PER_BLOCK attribute

Number of audio samples contained in one compressed block of audio data. This attribute can be used in compressed audio formats that have a fixed number of samples within each block.

MF_MT_AUDIO_SAMPLES_PER_SECOND attribute

Number of audio samples per second in an audio media type.

MF_MT_AUDIO_VALID_BITS_PER_SAMPLE attribute

Number of valid bits of audio data in each audio sample.

MF_MT_AUDIO_WMADRC_AVGREF attribute

Reference average volume level of a Windows Media Audio file.

MF_MT_AUDIO_WMADRC_AVGTARGET attribute

Target average volume level of a Windows Media Audio file.

MF_MT_AUDIO_WMADRC_PEAKREF attribute

Reference peak volume level of a Windows Media Audio file.

MF_MT_AUDIO_WMADRC_PEAKTARGET attribute

Target peak volume level of a Windows Media Audio file.

MF_MT_AVG_BITRATE attribute

Approximate data rate of the video stream, in bits per second, for a video media type.

MF_MT_AVG_BIT_ERROR_RATE attribute

Data error rate, in bit errors per second, for a video media type.

MF_MT_COMPRESSED attribute

Specifies for a media type whether the media data is compressed.

MF_MT_DEFAULT_STRIDE attribute

Default surface stride, for an uncompressed video media type. Stride is the number of bytes needed to go from one row of pixels to the next.

MF_MT_DRM_FLAGS attribute

Specifies whether a video media type requires the enforcement of copy protection.

MF_MT_DV_AAUX_CTRL_PACK_0 attribute

Audio auxiliary (AAUX) source control pack for the first audio block in a digital video (DV) media type.

MF_MT_DV_AAUX_CTRL_PACK_1 attribute

Audio auxiliary (AAUX) source control pack for the second audio block in a digital video (DV) media type.

MF_MT_DV_AAUX_SRC_PACK_0 attribute

Audio auxiliary (AAUX) source pack for the first audio block in a digital video (DV) media type.

MF_MT_DV_AAUX_SRC_PACK_1 attribute

Audio auxiliary (AAUX) source pack for the second audio block in a digital video (DV) media type.

MF_MT_DV_VAUX_CTRL_PACK attribute

Video auxiliary (VAUX) source control pack in a digital video (DV) media type.

MF_MT_DV_VAUX_SRC_PACK attribute

Video auxiliary (VAUX) source pack in a digital video (DV) media type.

MF_MT_FIXED_SIZE_SAMPLES attribute

Specifies for a media type whether the samples have a fixed size.

MF_MT_FRAME_RATE attribute

Frame rate of a video media type, in frames per second.

MF_MT_FRAME_RATE_RANGE_MAX attribute

The maximum frame rate that is supported by a video capture device, in frames per second.

MF_MT_FRAME_RATE_RANGE_MIN attribute

The minimum frame rate that is supported by a video capture device, in frames per second.

MF_MT_FRAME_SIZE attribute

Width and height of a video frame, in pixels.

MF_MT_GEOMETRIC_APERTURE attribute

Defines the geometric aperture for a video media type.

MF_MT_H264_CAPABILITIES attribute

Specifies the capabilities flags for an H.264 video stream.

MF_MT_H264_LAYOUT_PER_STREAM attribute
Specifies the layout flags for an H.264 video stream.

MF_MT_H264_MAX_CODEC_CONFIG_DELAY attribute

The maximum number of frames the H.264 encoder takes to respond to a command.

MF_MT_H264_MAX_MB_PER_SEC attribute

Specifies the maximum macroblock processing rate for an H.264 video stream.

MF_MT_H264_RATE_CONTROL_MODES attribute

Specifies the rate-control mode for an H.264 video stream.

MF_MT_H264_RESOLUTION_SCALING attribute
Specifies the resolution scaling flags for an H.264 video stream.

MF_MT_H264_SIMULCAST_SUPPORT attribute

Specifies the number of streaming endpoints and the number of supported streams for a UVC H.264 encoder.

MF_MT_H264_SUPPORTED_RATE_CONTROL_MODES attribute

Specifies the supported rate-control modes for an H.264 video stream.

MF_MT_H264_SUPPORTED_SLICE_MODES attribute

Specifies the supported slice modes for an H.264 video stream.

MF_MT_H264_SUPPORTED_SYNC_FRAME_TYPES attribute

Specifies the types of synchronization frame that are supported for an H.264 video stream.

MF_MT_H264_SUPPORTED_USAGES attribute

Specifies the supported usage modes for an H.264 video stream.

MF_MT_H264_SVC_CAPABILITIES attribute

Specifies the SVC capabilities of an H.264 video stream.

MF_MT_H264_USAGE attribute

Specifies the usage mode for a UVC H.264 encoder.

MF_MT_IMAGE_LOSS_TOLERANT attribute

Specifies whether an ASF image stream is a degradable JPEG type.

MF_MT_INTERLACE_MODE attribute

Describes how the frames in a video media type are interlaced.

MF_MT_MAJOR_TYPE attribute

Major type GUID for a media type.

MF_MT_MAX_KEYFRAME_SPACING attribute

Maximum number of frames from one key frame to the next, in a video media type.

MF_MT_MINIMUM_DISPLAY_APERTURE attribute
Defines the display aperture, which is the region of a video frame that contains valid image data.

MF_MT_MPEG2_CONTENT_PACKET attribute

For a media type that describes an MPEG-2 transport stream (TS), specifies whether the transport packets contain Content Packet headers.

MF_MT_MPEG2_FLAGS attribute

Contains miscellaneous flags for an MPEG-2 video media type.

MF_MT_MPEG2_LEVEL attribute

Specifies the MPEG-2 or H.264 level in a video media type.

MF_MT_MPEG2_PROFILE attribute

Specifies the MPEG-2 or H.264 profile in a video media type.

MF_MT_MPEG2_STANDARD attribute

For a media type that describes an MPEG-2 program stream (PS) or transport stream (TS), specifies the standard that is used to multiplex the stream.

MF_MT_MPEG2_TIMECODE attribute

For a media type that describes an MPEG-2 transport stream (TS), specifies the transport packets contain a 4-byte time code.

MF_MT_MPEG4_CURRENT_SAMPLE_ENTRY attribute

Specifies the current entry in the sample description box for an MPEG-4 media type.

MF_MT_MPEG4_SAMPLE_DESCRIPTION attribute

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

MF_MT_MPEG_SEQUENCE_HEADER attribute

Contains the MPEG-1 or MPEG-2 sequence header for a video media type.

MF_MT_MPEG_START_TIME_CODE attribute

Group-of-pictures (GOP) start time code, for an MPEG-1 or MPEG-2 video media type.

MF_MT_PAD_CONTROL_FLAGS attribute

Specifies the aspect ratio of the output rectangle for a video media type.

MF_MT_PALETTE attribute

Contains the palette entries for a video media type. Use this attribute for palettized video formats, such as RGB 8.

MF_MT_PAN_SCAN_APERTURE attribute

Defines the pan/scan aperture, which is the 4x3 region of video that should be displayed in pan/scan mode.

MF_MT_PAN_SCAN_ENABLED attribute

Specifies whether pan/scan mode is enabled.

MF_MT_PIXEL_ASPECT_RATIO attribute

Pixel aspect ratio for a video media type.

MF_MT_SAMPLE_SIZE attribute

Specifies the size of each sample, in bytes, in a media type.

MF_MT_SOURCE_CONTENT_HINT attribute

Describes the intended aspect ratio for a video media type.

MF_MT_SUBTYPE attribute

Subtype GUID for a media type.

MF_MT_TIMESTAMP_CAN_BE_DTS attribute

Specifies whether a decoder can use decode time stamps (DTS) when setting time stamps.

MF_MT_TRANSFER_FUNCTION attribute

Specifies the conversion function from RGB to R’G’B’ for a video media type.

MF_MT_USER_DATA attribute

Contains additional format data for a media type.

MF_MT_VIDEO_3D_FIRST_IS_LEFT attribute

For a 3D video format, specifies which view is the left view.

MF_MT_VIDEO_3D_FORMAT attribute

For a video media type, specifies how 3D video frames are stored in memory.

MF_MT_VIDEO_3D_LEFT_IS_BASE attribute

For a 3D video format, specifies which view is the base view.

MF_MT_VIDEO_3D attribute

Specifies whether a video stream contains 3D content.

MF_MT_VIDEO_3D_NUM_VIEWS attribute

The number of views in a 3D video sequence.

MF_MT_VIDEO_CHROMA_SITING attribute

Describes how chroma was sampled for a Y’Cb’Cr’ video media type.

MF_MT_VIDEO_LIGHTING attribute

Specifies the optimal lighting conditions for a video media type.

MF_MT_VIDEO_NOMINAL_RANGE attribute

Specifies the nominal range of the color information in a video media type.

MF_MT_VIDEO_PRIMARIES attribute

Specifies the color primaries for a video media type.

MF_MT_VIDEO_ROTATION attribute

Specifies the rotation of a video frame in the counter-clockwise direction.

MF_MT_WRAPPED_TYPE attribute

Contains a media type that has been wrapped in another media type.

MF_MT_YUV_MATRIX attribute

For YUV media types, defines the conversion matrix from the Y’Cb’Cr’ color space to the R’G’B’ color space.

MF_SA_BUFFERS_PER_SAMPLE attribute

Specifies how many buffers the video-sample allocator creates for each video sample.

MF_SA_D3D11_AWARE attribute

Specifies whether a Media Foundation transform (MFT) supports Microsoft Direct3D 11.

MF_SA_D3D11_BINDFLAGS attribute

Specifies the binding flags to use when allocating Microsoft Direct3D 11 surfaces for media samples.

MF_SA_D3D11_SHARED attribute

Indicates to the video sample allocator to create textures as shareable using keyed-mutex.

MF_SA_D3D11_SHARED_WITHOUT_MUTEX attribute

Indicates to the video sample allocator to create textures as shareable using the legacy mechanism.

MF_SA_D3D11_USAGE attribute

Specifies how to allocate Microsoft Direct3D 11 surfaces for media samples. The usage directly reflects whether a sample is accessible by the CPU or GPU.

MF_SA_D3D_AWARE attribute

Specifies whether a Media Foundation transform (MFT) supports DirectX Video Acceleration (DXVA). This attribute applies only to video MFTs.

MF_SA_MINIMUM_OUTPUT_SAMPLE_COUNT attribute

Specifies the maximum number of output samples that a Microsoft Media Foundation transform (MFT) will have outstanding in the pipeline at any time.

MF_SA_MINIMUM_OUTPUT_SAMPLE_COUNT_PROGRESSIVE attribute

Indicates the minimum number of progressive samples that the Microsoft Media Foundation transform (MFT) should allow to be oustanding at any given time.

MF_SA_REQUIRED_SAMPLE_COUNT attribute

Indicates the number of uncompressed buffers that the enhanced video renderer (EVR) media sink requires for deinterlacing.

MF_SA_REQUIRED_SAMPLE_COUNT_PROGRESSIVE attribute

Indicates the number of samples that a Microsoft Media Foundation transform (MFT) requires to be allocated for progressive content.

MF_TRANSFORM_ASYNC attribute

Specifies whether a Media Foundation transform (MFT) performs asynchronous processing.

MF_TRANSFORM_ASYNC_UNLOCK attribute

Enables the use of an asynchronous Media Foundation transform (MFT).

MF_TRANSFORM_CATEGORY_Attribute attribute

Specifies the category for a Media Foundation transform (MFT).

MF_TRANSFORM_FLAGS_Attribute attribute

Contains flags for a Media Foundation transform (MFT) activation object.