To configure Record to archive, do the following:

  1. Select a camera or a group of cameras, the video from which you want to record to the archive (1). An implicit selection of a camera is also allowedCamera that initiated command execution (see Configuring start conditions).

    If the start of the macro was triggered by an event fron an input or output (see Configuring start conditions) that is not connected to any camera, you need to select a specific camera here. If you select a group of cameras or a camera that initiated the command, the action doesn't start.

  2. Select an archive to write to (2).
  3. Specify the conditions that end recording.

    Condition

    Description

    Timer (3)

    Only a timer value is set. Recording stops according to the time setting

    Event filter (5)

    One or several events are set, the timer is set to 00:00:00. Recording stops when any event from the filter occurs

    Timer (3) + Event filter (5)

    One or several events are set, the timer is set to non-zero. Recording stops when the set time interval expires after any event from the filter occurs

    Timer (3) + OR checkbox (4) + Event filter (5)

    One or several events are set, the timer is set to non-zero, the OR checkbox is set. In this case, the recording stops when any of the two conditions occurs first: after the time interval expires or when any event from the filter occurs

    • You can set the OR checkbox only if the timer setting is not 00:00:00.
    • An implicit selection of an event is allowedLast event for condition that initiated execution (see Configuring start conditions). For example, if the event that initiated the execution of the command was the Start time of detection tool trigger from any type of detection tools, then the end event will be the End time of detection tool trigger from the same tool.

  4. Set the prerecord time (6). The maximum prerecord time is 30 seconds.

    • By default, the prerecord time interval is set to the value specified in the archive settings (see Configuring recording to an archive).
    • The duration of the prerecord time corresponds to the longest value among the set values.
    • Changing this value of the prerecord time in a specific macro does not affect the archive settings.
  5. If you have cameras in continuous recording mode (see Configuring recording to an archive) and you want to record with a specific FPS (see example 2), to change the frame rate, enter the required frame rate (7). After the macro completes, recording resumes at the frame rate specified in the archive settings.
    You can use special values:

    1. 0do not change the current frame rate (default).

    2. -1record only key frames.

    3. 1000record at the standard FPS of the camera.

      • FPS for prerecord doesn't change.
      • If the macro is set to complete some time after a specified event is received (see step 3), the frame rate changes for this time.
      • When decimating all video streams except MJPEG, only keyframes are saved, so we recommend using special values for them -1 and 1000.
      • If you specify a custom frame rate, decimation is performed by key frames.
      • In MJPEG video stream all frames are key frames, so it makes sense to set an explicit frame rate value for it.

Example 1. A macro to initiate recording to the archive when the Motion detection generates an event from any camera within the Default Axxon-domain (see Configuring start conditions).

Example 2. All cameras from the Default Axxon-domain are set to continuously record video with decimation to the archive (see Configuring recording to an archive). To record events from the Motion detection at full FPS, the following macro must be configured: