MFCreateWMVEncoderActivate function (wmcontainer.h)

Creates an activation object that can be used to create a Windows Media Video (WMV) encoder.

Syntax

HRESULT MFCreateWMVEncoderActivate(
  IMFMediaType   *pMediaType,
  IPropertyStore *pEncodingConfigurationProperties,
  IMFActivate    **ppActivate
);

Parameters

pMediaType

A pointer to the IMFMediaType interface. This parameter specifies the encoded output format.

pEncodingConfigurationProperties

A pointer to the IPropertyStore interface of a property store that contains encoding parameters. Encoding parameters for the WMV encoder are defined in the header file wmcodecdsp.h. If you have an ASF ContentInfo object that contains an ASF profile object with all the streams for the output file, you can get the property store by calling IMFASFContentInfo::GetEncodingConfigurationPropertyStore.

ppActivate

Receives a pointer to the IMFActivate interface. Use this interface to create the encoder. The caller must release the interface.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header wmcontainer.h
Library Mf.lib
DLL Mf.dll

See also

Activation Objects

Media Foundation Functions