MediaRecorder with EthoVision XT

MediaRecorder with EthoVision XT

image.png

How to record videos for EthoVision XT

You can create videos for use in EthoVision XT in two ways.

In both cases, if you work with analog cameras, you must adjust the aspect ratio in EthoVision XT. If you work with digital cameras, this is not necessary.

See Adjust the video aspect ratio (analog cameras only)

Prevent black frames at the start of your videos

To make sure that MediaRecorder waits for an I-frame before it starts recording you can edit the VsSettings file that comes with MediaRecorder. If you do not edit this file, your video may start with black frames and EthoVision will not be able to track the video from the start.

The VsSettings file is installed together with MediaRecorder. You can find the file in C:\ProgramData\Noldus\MediaRecorder\6.

By default the ProgramData folder is a hidden folder. In Windows Explorer on the View tab select Hidden items in the Show/hide section to view the folder.

  1. Right-click VsSettings.xml and select Copy. Right-click and select Paste to make a copy of the file. Keep this copy in case you want to go back to the original settings.
  2. Open the VsSettings.xml file in Notepad or a similar text editor.
  3. From the Edit menu select Find and type ‘Wait’ in the search field.image.png
  4. To make sure that MediaRecorder waits for an I-frame before it starts recording, edit the file and change ‘0’ into ‘1’.image.png
  5. Save the file.

First create videos in MediaRecorder and then track from video file in EthoVision XT

Aim

To create videos that can be used for tracking in EthoVision XT.

Prerequisite

You have cameras that are supported for tracking in EthoVision XT.

Procedure

  1. Create videos in MediaRecorder.
  2. In EthoVision XT, select Track from video file and select the video. See the EthoVision XT Help for details.

Notes

See Test an unsupported setup in Specifications

See see Adjust the video aspect ratio (analog cameras only)

Control video recording by MediaRecorder with EthoVision XT when you track live

Aim

To start video recording automatically when something of interest is detected by EthoVision XT. This is, for example, useful if you have animals that spend a lot of time in a shelter. Start video recording when the animal leaves the shelter.

Prerequisites

Procedure

  1. In EthoVision XT, open the Trial Control screen by clicking the Trial Control Settings in the Experiment Explorer.
  2. In the Components pane, under Actions click the button next to External command.
    image.png
  3. Enter a name in the Action Name field, for example, Start Recording.image.png
  4. Under Actions to perform, click the ellipsis button utxqEBwSlZpZYsP7-image.png and browse to MRCmd.exe. By default MRCmd.exe is present in the folder C:\Program Files\Noldus\MediaRecorder 6\MRCmd.exe.
  5. Enter one of the commands that are available for MediaRecorder (/E, /R, /S, /X or no command) as a Command line option.

See Use commands in Record video

Example

You carry out live tracking during a 24-hour period and you want to make a recording in MediaRecorder, but only when the animal leaves the shelter.

  1. Create an external command condition with the command /E to start Medi­aRecorder.   image.png
  2. Insert a Condition Out of shelter. Combine this condition box with a Time condition, because opening MediaRecorder takes a few seconds. With a Time condition you make sure that MediaRecorder is open before recording starts (see the figure below for an example).
  3. Insert an External command box with the command /R to start recording.image.png
  4. Similarly, you can stop recording (Command line option: /S) when the animal enters the shelter again.

Notes

Adjust the video aspect ratio (analog cameras only)

Aim

To correct for a distorted video image in EthoVision XT.

Prerequisite

You created videos with MediaRecorder from analog cameras using the Picolo Alert PCIe Video Capture Board.

Procedure

  1. In EthoVision XT choose Setup > Experiment Settings.
  2. Choose From Video File as your Video Source. You find more information on how to make Experiment Settings in Set up an Experiment in the EthoVision XT Help.
    image.png
  3. Choose Setup > Arena settings, or click the desired Arena Settings in the Experiment Explorer.
    image.png
  4. Browse to your video file and grab a background image for your arena. See Arena Settings in the EthoVision XT Help for information on how to do this, and for more information on how to make Arena Settings.
  5. Click the Adjust Aspect Ratio button.  
    image.png
  6. In the Adjust Aspect Ratio window choose Noldus Recorder and click the arrow to open the list. Choose:  

image.png

The other options do not apply for video files created with MediaRecorder.

Notes