Skip to main content

Use commands

Aim

To control video recording with another program that can send commands, for example, EthoVision XT.

Procedure

In your application, browse to the program MRCmd.exe that is by default located in the folder C:\Program Files\Noldus\MediaRecorder 6 and specify the command.

For example, use the following command line to start video recording:

“C:\Program Files\Noldus\MediaRecorder 6\MRCmd.exe /R”

note  If you installed MediaRecorder in another folder than the default one, the program MRCmd.exe is present in this folder. Adjust your command lines accordingly.

Available commands

  • Start MediaRecorder – MRCmd.exe or MRCmd.exe /E
  • Start recording — MRCmd.exe /R
  • Stop recording —MRCmd.exe /S
  • Close MediaRecorder — MRCmd.exe /X — Closes MediaRecorder program.
  •  Load a configuration file — MRCmd.exe /C=[filename.mrs].See Load a configuration file 
  • Set the file base name — MRCmd.exe /B=[basename]. See Set file base name

There is a space between MRCmd.exe and the slash.

Load a configuration file

The command /C loads a configuration file with the settings for your cameras (Save the camera settings). This is, for example, useful to open MediaRecorder with the correct cameras. Make sure MediaRecorder is not recording at that moment.

By default MRCmd.exe loads a file from the folder C:\Users\Public\Public Documents\Noldus\MediaRecorder. If the file is located in another folder, you must type the full path. If the file name or the path contains spaces you must type it in between quotation marks.

Example 1 - Open MediaRecorder and load Configuration_observation_room.mrs from C:\Users\Public\Public Documents\Noldus\MediaRecorder:

MRCmd.exe /E /C=Configuration_observation_room.mrs

Example 2 - Opening MediaRecorder and load Configuration Control Room from C:\Configuration files:

MRCmd.exe /E /C=”C:\Configuration files\Configuration Control Room.mrs”

Set file base name

The command /B sets the File base name.

See Set video file base name

Example - Set the File base name to Observation room:

MRCmd.exe /B=”Observation room”

This option cannot be used together with other commands.

Notes

Delay

Allow enough time between the commands. If a command is sent before the previous one is carried out, the second command is not carried out. For example, if the command Start Recording is sent before MediaRecorder is completely open, recording does not start.

There may be a delay between the command Start Recording and the moment the recording actually starts. This delay depends on the number of cameras, camera settings, the processor speed and programs running in the background.

In the most common scenarios with MediaRecorder and The Observer XT, the videos are automatically synchronized with the events, so the delay is not important.

See also Synchronize videos with events in MediaRecorder with The Observer XT