MFCreateAVIMediaSink function (mfidl.h)

Creates an Audio-Video Interleaved (AVI) Sink.

Syntax

HRESULT MFCreateAVIMediaSink(
  [in]           IMFByteStream *pIByteStream,
  [in]           IMFMediaType  *pVideoMediaType,
  [in, optional] IMFMediaType  *pAudioMediaType,
  [out]          IMFMediaSink  **ppIMediaSink
);

Parameters

[in] pIByteStream

Pointer to the byte stream that will be used to write the AVI file.

[in] pVideoMediaType

Pointer to the media type of the video input stream

[in, optional] pAudioMediaType

Pointer to the media type of the audio input stream

[out] ppIMediaSink

Receives a pointer to the IMFMediaSink Interface. The caller must release this 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 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library mfsrcsnk.lib
DLL mfsrcsnk.dll

See also

Media Foundation Functions