Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


Contains a pointer to a property store with encoding properties.

Data type



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.


Minimum supported client

Windows 8 [desktop apps | UWP apps]

Minimum supported server

Windows Server 2012 [desktop apps | UWP apps]



See also

Alphabetical List of Media Foundation Attributes
Sink Writer Attributes



© 2018 Microsoft