Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFCreateWMVEncoderActivate
Collapse the table of content
Expand the table of content

MFCreateWMVEncoderActivate function

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

Library

Mf.lib

DLL

Mf.dll

See also

Media Foundation Functions
Activation Objects

 

 

Community Additions

ADD
Show:
© 2015 Microsoft