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 |
|
|
Library |
|
|
DLL |
|
See also
Show: