MFCreateAVIMediaSink function

Creates an Audio-Video Interleaved (AVI) Sink.

Syntax

HRESULT MFCreateAVIMediaSink(
  IMFByteStream *pIByteStream,
  IMFMediaType  *pVideoMediaType,
  IMFMediaType  *pAudioMediaType,
  IMFMediaSink  **ppIMediaSink
);

Parameters

pIByteStream

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

pVideoMediaType

Pointer to the media type of the video input stream

pAudioMediaType

Pointer to the media type of the audio input stream

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

   
Windows version Windows 8.1 [desktop apps only] Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mf.lib
DLL Mf.dll

See Also

Media Foundation Functions