Hello community,
do you have any idea how I can record a video of my robot’s execution? I am having trouble identifying where it is making mistakes and what it is clicking on.
Thank you in advance!
- NewUser asked 12 months ago
- You must login to post comments
Hi,
We had the same requirement in our processes and have developed the following solution to record a video of the desktop during process execution.
We use two procedures:
Both are available in the Function Package.
FFmpeg.exe is used for recording and encoding the video and must be present on the robot machine. The procedures require the path to the FFmpeg folder as an input parameter. The StartVideoLog procedure also has parameters for the name of the process being logged, the storage path for the videos, and the limit to the number of videos to be stored as the log history, ensuring we don’t exceed expected storage limits.
The StartVideoLog procedure initiates the FFmpeg process, which then runs independently of the robot script executor and continues until it is stopped by the StopVideoLog procedure.
The FFmpeg process must be stopped using the StopVideoLog procedure. If it is stopped by killing the FFMpeg process or any other abrupt method, the recorded video will be corrupt and unrecoverable.
To account for this, you should place the StopVideoLog procedure within the ErrorMode section of the process. This ensures the video recording is correctly stopped if your main process encounters an unexpected error. The video will then be usable and help you identify the cause of the error more easily.
- Lac answered 11 months ago
- You must login to post comments
Please login first to submit.