locked
Getting an encoder IMFTransform from a IMFSinkWriter

    Question

  • When creating an IMFSinkWriter using MFCreateSinkWriterFromURL, I'm assuming the "muxer" is created based on the url file extension (eg file.wmv would be an asf).

    To configure it to use encoders, you create a stream with an output type, then give it a specified input type.  I am not aware of a method to directly instantiate an encoder.

    In order to retrieve accepted mediatypes, it seems you need a pointer to the encoder IMFTransform to run IMFTransform::GetOutputAvailableType.  

    What are the proper steps involved in creating a IMFSinkWriter, choosing a codec, then accessing the encoder transform to properly enumerate the output available types?

    -Jer

    Saturday, September 08, 2012 12:12 AM

Answers

All replies