locked
Sink Writer with MPEG4 File Container RRS feed

  • Question

  • Can a sink writer be configured to use an MPEG4 container for H.264 without the use of an encoder MFT? I've tried specifying sink creation flags such as MF_READWRITE_DISABLE_CONVERTERS. If I create a stream with sup-type H264 then the only input media types I can specify are the ones outlined in H.264 Video Encoder.

    I already have the encoded frames ready to go, I would just like the sink writer to wrap them and author the MPEG4 file. I would like to avoid decoding them from H.264 to, say, YUY2 and then back to H.264.

    Monday, August 23, 2010 9:33 AM

Answers

  • Got around this problem by using MFCreateMPEG4MediaSink and then MFCreateSinkWriterFromMediaSink. The sink then doesn't configure an H.264 encoder and writes H.264 samples directly. No idea why it works at the moment but it has solved the problem.
    • Marked as answer by _Nobby_ Monday, August 30, 2010 3:00 AM
    Monday, August 30, 2010 3:00 AM