NAOqi Vision - Overview | API | Tutorial
Namespace : AL
#include <alproxies/alvideorecorderproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns: |
|
---|
Returns the current video format used to encode video. See ALVideoRecorderProxy::setVideoFormat() for the list of possible return values.
Sets the color space used.
Parameters: |
|
---|
Sets the number of frames per second (FPS).
Parameters: |
|
---|
Note
MJPG format requires a frame rate greater than 2 FPS.
Sets the frame resolution. It can be either VGA, QVGA or QQVGA.
Parameters: |
|
---|
Sets the codec name used to encode the video.
Parameters: |
|
---|
There are two overloads of this function:
Starts recording a video with the current parameters until ALVideoRecorderProxy::stopRecording() is called. If the destination file already exists, it will be overwritten.
Parameters: |
|
---|
Note
Only one record at a time can be made.
Starts recording a video with the current parameters until ALVideoRecorderProxy::stopRecording() is called.
Parameters: |
|
---|
Note
Only one record at a time can be made.
Stops a video record that was launched with ALVideoRecorderProxy::startRecording(). The function returns the number of frames that were recorded, as well as the video absolute path.
Returns: | Array of two elements [numRecordedFrames, recordAbsolutePath]. |
---|
Note
This is a blocking method that can take several seconds to complete depending on the image resolution, the framerate, the video length and the chosen video format. MJPG format gives better performance than other formats.