Preview
Preview of video capture devices
Select the video source
First, set VideoSource = vs_VideoCaptureDevice to select the video capture devices as the video source.
Select the video capture device (optional with only one video capture device)
By default, the 1st video capture device of the VideoDevices list is used (VideoDevice index = 0).
It may therefore be necessary to select the video capture device by setting the VideoDevice property to its index in the VideoDevices list.
To select it by its name, use VideoDeviceIndex ("...name of the video capture device..."), which returns the index of this name in the VideoDevices list, e.g.:
VideoGrabber.VideoDevice = VideoGrabber.VideoDeviceIndex ("...name of the video capture device...")
Start / stop / pause / resume the preview
The preview is started with StartPreview and stopped with StopPreview. Once started, it can be paused with PausePreview and resumed with ResumePreview.
Frame progress
During preview, information about each video frame is reported by the OnFrameProgress2 event, through the TFrameInfo structure. Information about the current frame can be retrieved by invoking GetFrameInfo or GetFrameInfoString.
Frame capture
Frames can be captured to TBitmap, BMP files or JPEG files, one by one or automatically by using the frame grabber. See the Frame capture chapter for more information.
Graphics and text overlays
Text, shapes, bitmaps or graphics can be drawn over the video frames. See the Graphics and text overlays chapter.
Display options
See Video window, Dual display, Transparency and Third-party video renderer filter.