one second latency in MFT running in debug mode RRS feed

  • Question

  • Hey,

    is there a known performance issue, using the Media Foundation in a debug build?

    I setup a synchronous MFT and get the first two decoded frames. After that I do not send any message to the MFT or anyhting else. 

    The next client call of ProcessOutput happens when the video player should start to play the video.

    Running in debug mode, the video player has to skip a lot of video frames (approximately for one second) until the MFT decoder is fast enough. After that, the video player plays the video as expected. In the Release build, the MFT is fast enough, so that no video frame has to be skipped by the video player.  In my code, there are no debug output messages or code parts which are running only in debug mode. I also setup the attribute "CODECAPI_AVLowLatencyMode".

    All Microsoft MFTs - especially DV and H.264 - have this behaviour, but slightly different. In my opinion the complete setup of the threads are already done because I have already decode two frames.

    best regards


    Monday, August 10, 2015 3:01 PM