MF_SINK_WRITER_ENCODER_CONFIG attribute

Contains a pointer to a property store with encoding properties.

Data type

IUnknown*

Remarks

The value of this attribute is an IPropertyStore pointer.

This attribute enables an application to set encoding properties when using the Sink Writer. To set this attribute, perform the following steps:

  1. Call PSCreateMemoryPropertyStore to create a new property store.
  2. Set encoder properties on the property store. The available properties depends on the encoder. For more information, see Codec Objects.
  3. Call MFCreateAttributes to create a new attribute store.
  4. Call IMFAttributes::SetUnknown to set the IPropertyStore pointer on the attribute store.
  5. Create a new instance of the Sink Writer. Pass the IMFAttributes pointer to the creation function. For more information, see Sink Writer Attributes.

The Sink Writer sets the properties on the encoder before setting the media types.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2012 [desktop apps | UWP apps]
Header
Mfreadwrite.h

See also

Alphabetical List of Media Foundation Attributes

IMFSinkWriter

Sink Writer Attributes