Microsoft DirectX 9.0

GrabBitmaps Sample

Description

This C++ console application shows how to use the Sample Grabber filter to capture frames from a video file.

GrabBitmaps performs the following steps:

Path

Source: (SDK root)\Samples\C++\DirectShow\Editing\GrabBitmaps\

Usage

From the command line, type:

GrabBitmaps <filename>

Sample Output

Grabbing bitmaps from c:\movie.avi.
Found a sample at time 0 ms     [Bitmap00000.bmp]
Found a sample at time 998 ms   [Bitmap00998.bmp]
Found a sample at time 1996 ms  [Bitmap01996.bmp]
Found a sample at time 2994 ms  [Bitmap02994.bmp]
Found a sample at time 3992 ms  [Bitmap03992.bmp]
Sample grabbing complete.

See Also