mediaFoundationWriterStreamSetInputMediaType

Typecommand
DictionaryLCS
Librarymediafoundation
Syntax
mediaFoundationWriterStreamSetInputMediaType <pFilePath>, <pStreamIndex>, <pMediaTypeID>
Associationsmediafoundation
Summary

Set the input media type of a stream of a writer Platform:desktop

OSwindows
Parameters
NameTypeDescription
pFilePath

The path to a media file

pStreamIndex

An integer between 1 and the number of streams

pMediaTypeID

A media type ID

Values
NameTypeDescription
The result

False if the writer does not support the input type

RelatedCommand: mediaFoundationTranscode, mediaFoundationCreateWriter
Description

The writer must already be created with mediaFoundationCreateWriter. This command sets the media type that the writer will expect the samples written to the stream to be in.

Note:See the mediaFoundationTranscode documentation for a complete example of using this handler.