Video Capture - isir/greta GitHub Wiki

The Greta platform contains modules that allows to take screenshot or make videos of what the Ogre window shows. The modules to use are in the Add menu (figure below) and under the voice Player you can find:

  • CaptureController
  • XuggleVideoCapture

drawing

XuggleVideoCapture

This module represent the open-source Xuggle video engine to read and write video clips using Java Thanks to this module it is possible to choose the format, video and audio codec of the video to take.

drawing

CaptureController

This module controls the following recording process in OgrePlayer:

  • Screen Shot
  • Video
  • FML Videos

drawing

Screen Shot

Purpose: take a screenshot image of the Greta's visualization

Click on the correspondent button a picture of the Ogre window is taken in that istant and stored in the <GRETA_DIR>/bin/ folder as a .png file.

Video

Purpose: record Greta's animation, manually control start/stop

Once click on that button a record of Ogre window is started. The Button label will change in Stop. Once the button is selected againg the video is stopped. During the recording time, the user can decide to run FML or BML file but also use the editors to move the agent.

FML Videos

Purpose: record Greta's animation while excuting the specified FML file, automatically control start/stop

drawing

To make the "FML Videos" button work, it is necessary connect CaptureController to the FMLFileReader in order to send the file to this module that will process the FML and make it perform by the agent while the CaptureControl will record.

This button allows to do the same thing of the previous one. The difference is that, instead of run manually the FML during the recording, the user can select a folder where the FML files are stored and create a video for each oner. Once select the folder, the user can click the button "FML Videos" and, one at time, the FMLs are read, run, recorded and finally stored in the same folder where the FML files are taken.

⚠️ **GitHub.com Fallback** ⚠️