Import/Export Camera Configurations

Previous Next  Print this Topic

You can import or export camera configuration files. This section details the format of the file that is created whenever you export camera configurations from Camera Policies. While it is best to use Camera Policies to change your camera configurations, you can also do so by creating and importing a special file.

The procedures for exporting and importing a camera configurations file are below - they are geared towards advanced users.

Export Current Camera Configurations to a File

1.From the Camera Policies main menu, select Tools > Cameras. The Camera Configurations window appears.
2.From the Camera Configurations main menu, select File > Export to. The Export to window appears. The default file name is Cameras.cfg.
3.Navigate to the location to export the file, and then click Save. The file is saved to the location you selected.

Import a Configuration From a File

1.From the Camera Policies main menu, select Tools > Cameras. The Camera Configurations window appears.
2.From the Camera Configurations main menu, select File > Import from. The Import from window appears.
3.Navigate to the file location where you have saved your camera configurations file, select it, and then click Open. The camera configurations from the file are added to the Camera Configurations window.
4.Click the Save button to save the modified camera configurations to your Information Repository.

Before you can import a camera configuration file, you must create one. The following sections contain reference information for doing so.

Camera Configuration File Structure

Camera configuration files are block structured but free from any column or order formatting. The tokens listed below specify camera parameters. Each "policy_name" block is a single camera.

policy_name="<camera name>"
[
 <token>=<value>
 <token>=<value>
 . . .
]

policy_name="<camera name>"
[
 <token>=<value>
 <token>=<value>
 . . .
]

. . .

Tokens/Value Pairs

Tokens define camera attributes and functionality. Following are the tokens and their definitions.

Token/Value

Description

ace = data

The access control list entry.

No default.

active = <boolean>

Determine if the camera is active or inactive. For the live view and camera management to work, this option must be set to true.

Valid values: true | false

Default = true

description = "<character string>"

A description of the camera.

Default = ""

frame_height = <integer>

The height of the video frame. Works in conjunction with frame_width.

Default = 0

frame_width = <integer>

The width of the video frame. Works in conjunction with frame_height

Default = 0

host_Id = "<uuid>"

The host Id of the recording computer.

Default = 0

hostname = "<character string>"

The host name of the recording computer.

Default = ""

live_view_enable = <boolean>

Enable SVM to receive and display live feeds from the camera.

Valid values: true | false

Default = true

live_view_url = "<pathname>"

The RTSP URL used to live view video from the camera.

Default path = ""

manufacturer = "<character string>"

The manufacturer of the camera.

Default = "Generic"

mgmt_enable = <boolean>

Enable camera management from a web browser when this type of functionality is supported by the camera.

Valid values: true | false

Default = true

mgmt_url = "<URL>"

The URL used to manage the camera.

Default URL = ""

model = "<character string>"

A user defined value, this is the camera's model number.

Default = "Generic"

name = "<character string>"

Must match the "policy_name".

The name of the camera.

Default = ""

owner = "<character string>"

Internal use only.

password = "<character string>"

The password for the camera when a password is required to access the camera.

Default = ""

policy_name = "<camera name>"

Must match "camera_name".

Indicating the beginning of a camera block, the name for the policy that defines camera parameters.

Default = ""

pool = "<character string>"

The name of the camera pool.

Default = ""

ptz_enable = <boolean>

"PTZ" stands for "pan, tilt, zoom." Use to set the pan, tilt, and zoom functionality for the camera. For PTZ to work, this option must be selected.

Valid values: true | false

Default = true

stream_over_tcp = <boolean>

Cause the RTSP capture to stream data over a TCP connection rather than over a default HTTP connection.

Default = false

thumbnail_url = "<pathname>"

The HTTP URL for producing images.

Default = ""

thumbnail_enable = <boolean>

Enable the thumbnail URL.

Valid values: true | false

Default = false

type = "<character string>"

The policy type of the file.

Default = "camcfg"

user_name = "<character string>"

The user name of the camera when a user name is required to access the camera.

Default = ""

version = <number>

The version number of the policy. The current version is 1.0.

video_capture_lrp_url = "<pathname>"

The RTSP URL for capturing low resolution video feeds.

Default = ""

video_capture_lrp_enable = <boolean>

Enable the video capture LRP URL.

Valid values: true | false

Default = false

video_capture_url = "<url>"

The RTSP URL used to capture video from the camera.

Default = ""

vms_lrp_create = <boolean>

Enable the VMS (Milestone or OnSSI) to generate the LRP.

Valid values: true | false

Default = true

vms_rec_mot_detect = <boolean>

Enable record on motion detection.

Valid values: true | false

Default = false

vms_rec_mot_threshold_sec = <integer>

The motion detection threshold.

Default = 5

Sample Cameras.cfg File

policy_name = "Panasonic_sp306"

[

 type                     = "camcfg"

 version                  = "1.0"

 active                   = true

 name                     = "Panasonic_sp306"

 description              = ""

 model                    = "WV-SP306"

 manufacturer             = "Panasonic"

 pool                     = ""

 user_name                = "admin"

 password                 = "12345"

 video_capture_url        = "rtsp://192.168.5.103/MediaInput/h264"

 live_view_url            = "rtsp://192.168.5.103/MediaInput/h264"

 mgmt_url                 = "http://192.168.5.103/"

 frame_width              = 0

 frame_height             = 0

 ptz_enable               = true

 live_view_enable         = true

 mgmt_enable              = true

 stream_over_tcp          = false

 owner                    = ""

 host_Id                  = "00000000000000000000000000000000"

 hostname                 = ""

 ace                      = "0008001901010800"

]

# end of object rule for Camera 'Panasonic_sp306'

 

policy_name = "SecureEye-1080"

[

 type                     = "camcfg"

 version                  = "1.0"

 active                   = true

 name                     = "SecureEye-1080"

 description              = "StoreNet SecureEye"

 model                    = "SecureEye-1080p-IP"

 manufacturer             = "StoreNet"

 pool                     = ""

 user_name                = "admin"

 password                 = "1"

 video_capture_url        = "rtsp://192.168.1.244/stream1"

 live_view_url            = "rtsp://192.168.1.244/stream1"

 mgmt_url                 = "http://192.168.1.244/"

 frame_width              = 0

 frame_height             = 0

 ptz_enable               = true

 live_view_enable         = true

 mgmt_enable              = true

 stream_over_tcp          = true

 owner                    = ""

 host_Id                  = "31b1d2b5c44111e0af6200132051d593"

 hostname                 = "tron"

 ace                      = "0008001901010800"

]

# end of object rule for Camera 'SecureEye-1080'

 

policy_name = "Sharx"

[

 type                     = "camcfg"

 version                  = "1.0"

 active                   = true

 name                     = "Sharx"

 description              = "SCN2607"

 model                    = "SCNC2607"

 manufacturer             = "Sharx"

 pool                     = ""

 user_name                = "admin"

 password                 = "admin"

 video_capture_url        = "rtsp://192.168.5.242/live_mpeg4.sdp"

 live_view_url            = "rtsp://192.168.5.242/live_mpeg4.sdp"

 mgmt_url                 = "http://192.168.5.242/"

 frame_width              = 0

 frame_height             = 0

 ptz_enable               = true

 live_view_enable         = true

 mgmt_enable              = true

 stream_over_tcp          = false

 owner                    = ""

 host_Id                  = "00000000000000000000000000000000"

 hostname                 = ""

 ace                      = "0008001901010800"

]

# end of object rule for Camera 'Sharx'