MFCreateTranscodeTopologyFromByteStream function (mfidl.h)

Creates a topology for transcoding to a byte stream.

Syntax

HRESULT MFCreateTranscodeTopologyFromByteStream(
  [in]  IMFMediaSource      *pSrc,
  [in]  IMFByteStream       *pOutputStream,
  [in]  IMFTranscodeProfile *pProfile,
  [out] IMFTopology         **ppTranscodeTopo
);

Parameters

[in] pSrc

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

[in] pOutputStream

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

[in] pProfile

A pointer to the IMFTranscodeProfile interface of a transcoding profile.

[out] 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

Requirement Value
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