camCaptureStart (Function) |
Top Previous Next |
This function begins recording video from a camera. The video is either saved as a raw MJPEG stream, or as MJPEG inside e.g. an MKV container. When recording to the internal drive, care must be taken not to fill it up, as it will affect the performance.
Input: width : INT The wanted width of the video. The actual width used may be smaller, depending on the camera.
height : INT The wanted height of the video. The actual height used may be smaller, depending on the camera.
filename : STRING The name of the file to store the recoding in. It is overwritten if it already exists.
duration : DINT The number of seconds to keep recording for. If set to 0, the recoding continues until it runs out of space or it is stopped using camCaptureStop.
format : INT default 2 The file format to use when saving the file:
Returns: INT
Declaration: FUNCTION camCaptureStart : INT;
Example: // Record 720p video for 10 seconds to the file A:\REC.MKV |