Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MFCreateFMPEG4MediaSink
Collapse the table of content
Expand the table of content

MFCreateFMPEG4MediaSink function

Creates a media sink for authoring fragmented MP4 files.

Syntax


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

Parameters

pIByteStream [in]

A pointer to the IMFByteStream interface of a byte stream. The media sink writes the MP4 file to this byte stream. The byte stream must be writable and support seeking.

pVideoMediaType [in]

A pointer to the IMFMediaType interface of a video media type. This type specifies the format of the video stream.

This parameter can be NULL, but not if pAudioMediaType is NULL.

pAudioMediaType [in]

A pointer to the IMFMediaType interface of an audio media type. This type specifies the format of the audio stream.

This parameter can be NULL, but not if pVideoMediaType is NULL.

ppIMediaSink [out]

Receives a pointer to the MP4 media sink's IMFMediaSink interface. The caller must release the interface.

Return value

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

None supported

Header

Mfidl.h

Library

Mf.lib

DLL

Mf.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft