I use dshow to make a player. I find the speed of decorder is much faster than normal. I do like this:
There are two control in my dialog, one for active movie to play, the other for my usage. I use Samplegrab get the still image and than draw it to the picture control. I find the speed of my drawn control is much faster than the active movie. The active movie control use the normal speed to play, while my own draw picture control play fast forward. And at the same time the cpu usage is over 90%. I think it is because the graph do not control the decorder filter as the normal speed. I use elecard mpeg2 filter. The graph is like this:
source filter->elecard mpeg2 decorder->samplegrab->color convert filter->render filter.
How to control the speed of decorder?
There are two control in my dialog, one for active movie to play, the other for my usage. I use Samplegrab get the still image and than draw it to the picture control. I find the speed of my drawn control is much faster than the active movie. The active movie control use the normal speed to play, while my own draw picture control play fast forward. And at the same time the cpu usage is over 90%. I think it is because the graph do not control the decorder filter as the normal speed. I use elecard mpeg2 filter. The graph is like this:
source filter->elecard mpeg2 decorder->samplegrab->color convert filter->render filter.
How to control the speed of decorder?