Discussion How to use h.264Decoder in mediafoundation Topology

  • Friday, June 01, 2012 6:39 AM
     
     
    I am streaming my content using H.264 encoder and wish to decode the content using H.264 decoder.
    The encoding topology is like

    Source --> H.264 Encoder --> NetDump

    and the decoding topology is like

    NetSource --> H.264 Decoder --> EVR

    We are able to make our encoding topology but stuck up in making the decoding topology.
    The documentation says that we need to set the input and output media type and start calling ProcessInput and ProcessOutput continously.

    But there is a confusion on who will be calling the processinput and ProcessOutput..is it called by the topology framework, or we need to implement
    a class creating the H.264 decoder and then calling ProcessInput and ProcessOutput in a separate thread.

All Replies

  • Monday, July 30, 2012 6:58 PM
    Moderator
     
     
    If you are using the MF media session (IMFMediaSession), the session will call ProcessInput and ProcessOutput for you.  You only need to call ProcessInput/ProccessOutput yourself if you are using an MFT outside of the MF media session.