I am having trouble playing a video and grabbing frames. I need to grab frames to perform change detection among other t开发者_如何学编程hings...Is there a way of playing a video and grabbing frames periodically (using a timer) such as using Windows Media Player control on a windows form?
N.B:
- I have looked over DirectShow.NET, seems too complicated & involved for such a simple requirement. So don;t want to head that route, unless i absolutely must.
- The AVIFile lib won't cut it since I need to support multiple video formats (other than AVI)
I have done something similar to this in the past with DirectShow.
You are going to get much better results with DirectShow, since you can do you calculations frame by frame rather than on a timer.
These are both examples of motion capture, that use DirectShow: A B
精彩评论