Simplest DirectShow::SampleGrabber replacement with MediaFoundation RRS feed

  • Question

  • Hello,

    Which is the fastest way to achieve old DirectShow::SampleGrabber functionality with Media Foundation? (c# code would be sweet).

    I mean:

    • loading any source and play it at it's clock speed
    • get every sample as an uncompressed byte*
    • have audio play (or mute it if not needed)

    Since we are in the future, also the possibility to decompress to a shared direct3d texture (i am using d3d9) would be be perfect.

    I know it should set between IMFSampleGrabberSinkCallback, or IMFSourceReader::ReadSample but i'm not sure which is the closest.

    Thank you for your help,

    .: Stefano Baraldi, Ph.D. Director @ www.tabulatouch.eu Featuring TouchTop, accelerated multi-touch document and media management for Windows 7 and 8. www.tabulatouchtop.com

    Thursday, November 15, 2012 10:19 AM