Functions

VideoRecorder:close() Close the video file
VideoRecorder:fromarray(mat) Save a frame of video
VideoRecorder:open(filename, [dim]) Open a file for saving a video

Functions

VideoRecorder:close()

Close the video file

VideoRecorder:fromarray(mat)

Save a frame of video

Parameters:

mat The video frame to save
VideoRecorder:open(filename, [dim])

Open a file for saving a video

Parameters:

filename The filename of the video to save
[dim] The dimensions (defaults to 720x480)