Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

how to configure encoder settings in SinkWriter

$
0
0

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.

Thanks



Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>