Reputation: 117
I am creating a transcoder application using windows mediafoundation API. I am using Source Reader and Sink Writer API's for transcoding. Now I need to add support for media types like(.mxf) , which is not supported by mediafoundation . Media foundation documentation says, "Third parties can support additional formats by writing custom plug-ins." Can anyone help with documentations or example on how to get started writing custom plug ins.
Upvotes: 1
Views: 189
Reputation: 69642
You need your own implementation of IMFMediaSource
to read such files and IMFMediaSink
to write.
For sources, MSDN entry points are:
For sinks it is:
Your implementation of Media Foundation primitives could be used with higher level APIs like Source Reader, Sink Writer and also Media Foundation Media Session.
The samples also include wavsource and wavsink which are also good examples for the mentioned above.
Upvotes: 3