Introduction - If you have any usage issues, please Google them yourself
Improved DirectShow sample code- GrabBitmaps sample.
This console app will open a long AVI file in the parent directory,create a filter graph with a sample grabber filter, read frames out of it every second for a few seconds, and write the frames to BMP files in the current directory.