MFCreateTranscodeTopologyFromByteStream function (mfidl.h)

Creates a topology for transcoding to a byte stream.

Syntax

HRESULT MFCreateTranscodeTopologyFromByteStream(
  IMFMediaSource      *pSrc,
  IMFByteStream       *pOutputStream,
  IMFTranscodeProfile *pProfile,
  IMFTopology         **ppTranscodeTopo
);

Parameters

pSrc

A pointer to the IMFMediaSource interface of a media source. The media source provides that source content for transcoding.

pOutputStream

A pointer to the IMFByteStream interface of a byte stream. The transcoded output will be written to this byte stream.

pProfile

A pointer to the IMFTranscodeProfile interface of a transcoding profile.

ppTranscodeTopo

Receives a pointer to the IMFTopology interface. The caller must release the interface.

Return value

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

Remarks

This function creates a partial topology that contains the media source, the encoder, and the media sink.

Requirements

   
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mf.lib
DLL Mf.dll

See also

Media Foundation Functions

Media Session

Topologies