how to configure encoder settings in SinkWriter RRS feed

  • Question

  • Hi,

    I'm new to Media Foundation development and I have some questions in using SinkWriter.

    I already know that I can use SinkWriter to write in to a file on disk like described here https://msdn.microsoft.com/en-us/library/windows/desktop/ff819477(v=vs.85).aspx

    I just need to call  MFCreateSinkWriterFromURL, then set mediatype like framerate, resolution and pixel format, etc. And finally call WriteSample to write frames.

    What I want to do is to generate a MP4 file with H.264 video.  But I also want to have more controls on H.264 encoder settings, like quality factor, buffer size, etc which I think is only available on H.264 MFT.

    So I just want to know, how could I use the H.264 MFT together with SinkWriter.


    Wednesday, May 13, 2015 3:18 AM

All replies