Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MFCreateAVIMediaSink function

Creates an Audio-Video Interleaved (AVI) Sink.

Syntax


HRESULT WINAPI MFCreateAVIMediaSink(
  _In_     IMFByteStream *pIByteStream,
  _In_     IMFMediaType  *pVideoMediaType,
  _In_opt_ IMFMediaType  *pAudioMediaType,
  _Out_    IMFMediaSink  **ppIMediaSink 
);

Parameters

pIByteStream [in]

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

pVideoMediaType [in]

Pointer to the media type of the video input stream

pAudioMediaType [in, optional]

Pointer to the media type of the audio input stream

ppIMediaSink [out]

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

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

Mfidl.h

Library

Mf.lib

DLL

Mf.dll

See also

Media Foundation Functions

 

 

Show:
© 2017 Microsoft