Error getting tags :
error 404Error getting tags :
error 404 revInitializeVideoGrabber | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

revInitializeVideoGrabber parentStack,videoMethod,grabberRect

Platform Support
MacOS,Mac OS X,Windows
Opens the video grabber window.

revInitializeVideoGrabber the short name of this stack, "QT","100,100,200,200"
revInitializeVideoGrabber the short name of this stack, "VFW",the rect of this stack

Additional Comments
Expander triangle

Use the revInitializeVideoGrabber command to start up video capture capability.


The parentStack is the short name of the stack that the video-grabber should attach itself to.

The videoMethod is either "QT" or "VFW".

The grabberRect is the rectangle of the video grabber window, and consists of four integers separated by commas: the left, top, right, and bottom edges of the video grabber, in absolute (screen) coordinates.


You must use the revInitializeVideoGrabber command before using any of the other commands and functions in the Video library. The command does two things:

* Loads the code necessary for video capture into memory.

* Opens the video grabber window.

Note: The video grabber is not a stack window, so you can't set its properties. To change the size and location of the video grabber, use the revSetVideoGrabberRectcommand.

Once the video grabber is open, you can use the revVideoGrabDialog command to specify where the video camera (or other video source) is connected. Use the revRecordVideo command to record video from the camera to a file, or use the revPreviewVideo command to display video without saving it.

To use QuickTime for video capture (on Mac OS, OS X, or Windows systems), specify "QT" as the videoMethod. To use Video for Windows (on Windows systems), specify "VFW".

To close the window and unload the video capture code, you should use the revCloseVideoGrabber command when you're done with video capture.

Important! The revInitializeVideoGrabbercommand is part of the Video library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section on the General screen of the Standalone Application Settings window, make sure that "Video Grabber" is selected from the list of script libraries.

User Comments
Expander triangle
User thumbnail
Martin Koob
Sep 18, 2009
In Rev 3.5 it seems that the grabberRect is in stack coordinates not absolute (screen) coordinates.