Windows > Software Development for Windows Client Forums > DirectShow Development > Media Sample not keeping up with the Fast Forward speed
Ask a questionAsk a question
 

AnswerMedia Sample not keeping up with the Fast Forward speed

  • Thursday, November 05, 2009 5:16 PMASYED Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    I have written a transform filter to play an AVI file and it works fine when played at normal speed. However, when I set the speed to 6x and play the same file, I notice that the supply of media sample into my Transform filter does not come at 6x. but instead comes at about 3x. So when I play my file at Fast speed in Windows Media Player, even though the progress bar moves at 5x the video lags far behind. In debug mode, I removed all the processing code and just checked the rate of incoming data (by tracing a counter) and it verifies that the rate is very slow.

    Can anyone explain to me why this could be happening, and how I can remedy this problem.

    Thanks.
    Amin.

Answers

  • Thursday, November 05, 2009 5:34 PMChris P_MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    There is a bottle neck somewhere.  Either the rendering or decoding is the likely culprit.

    How many CPU cores and what is the CPU usage at the 6x rate?

    www.chrisnet.net
    • Marked As Answer byASYED Thursday, November 19, 2009 5:12 PM
    •  

All Replies

  • Thursday, November 05, 2009 5:34 PMChris P_MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    There is a bottle neck somewhere.  Either the rendering or decoding is the likely culprit.

    How many CPU cores and what is the CPU usage at the 6x rate?

    www.chrisnet.net
    • Marked As Answer byASYED Thursday, November 19, 2009 5:12 PM
    •