IMFTranscodeSinkInfoProvider::SetOutputFile method (mfidl.h)

Sets the name of the encoded output file.

Syntax

HRESULT SetOutputFile(
  [in] LPCWSTR pwszFileName
);

Parameters

[in] pwszFileName

Pointer to a null-terminated string that contains the name of the output file.

Return value

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

Remarks

The media sink will create a local file with the specified file name.

Alternately, you can call IMFTranscodeSinkInfoProvider::SetOutputByteStream to specify a byte stream that will receive the transcoded data. These two methods are mutually exclusive.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h

See also

IMFTranscodeSinkInfoProvider