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

encoded mp4 video using moov before mdat

$
0
0

I'm following the documented example shown for creating an encoded video using WMF

https://msdn.microsoft.com/en-us/library/windows/desktop/ff819477(v=vs.85).aspx

However I've noticed that the files have the mdat before moov. Is there a way to write the moov before the mdat?

I've noticed there is an attribute MF_MPEG4SINK_MOOV_BEFORE_MDAT, however setting this does not seem to have any effect. I am presuming this is because I'm calling the regular sink function like the example, not the MFCreateMPEG4MediaSink.

My question is 

1. How do I get the example to write moov before mdat?

2. If this is impossible, how do I convert the example to use MFCreateMPEG4MediaSink? I can't seem to find any examples of it. Will this allow me to use attribute MF_MPEG4SINK_MOOV_BEFORE_MDAT?

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>