locked
How to get a whole frame video buffer with media foundation? RRS feed

  • Question

  • Hello everyone,

    i'm beginner of study media foundation, when I write MFT of mpeg2 decoder, but the buffer that I got is not whole frame(such as ,1/3 or 1/2 frame),

    then I have set pStreamInfo->dwFlags = MFT_INPUT_STREAM_WHOLE_SAMPLES | MFT_INPUT_STREAM_SINGLE_SAMPLE_PER_BUFFER ;

    so I did not know how to do?

    can someone give me a hand?

    Thanks

    Jackic


    one work one gain!

    Tuesday, June 12, 2012 6:22 AM

All replies

  • The media foundation pipeline ignores the MFT_INPUT_STREAM_WHOLE_SAMPLES flag.  (In fact, since it has no knowledge of how to parse the bitstream it would not even be able to enforce such a condition).  Unforutnately, your decoder is going to need to buffer up data until it has enough to produce an output sample.
    Monday, August 13, 2012 9:35 PM