Here are explained the ways to control ContaCam without the user interface. The API works also in service mode because the registry/ini file is used to communicate with ContaCam. This solution allows live controlling ContaCam while it is running, but also when it is not.

1. Enable / disable recording

  • If the settings are stored in an ini file then modify VideoProcessorMode under your CAMERA_ADDR section.
  • When using the registry the wanted path is:
    HKEY_CURRENT_USER\Software\Contaware\ContaCam\CAMERA_ADDR\VideoProcessorMode

CAMERA_ADDR

is a long hardware address for USB/DV/PCI devices and the network address plus port and mode for IP cameras (do not invent those addresses, just get them from the ini file or registry)

VideoProcessorMode

0: recording OFF

1: recording ON

Example: to turn ON the recording for all cameras the following .bat file can be used:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR1" /t REG_DWORD /v VideoProcessorMode /d 1 /f
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR2" /t REG_DWORD /v VideoProcessorMode /d 1 /f
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDRX" /t REG_DWORD /v VideoProcessorMode /d 1 /f

to turn OFF the recording for all cameras the following .bat file can be used:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR1" /t REG_DWORD /v VideoProcessorMode /d 0 /f
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR2" /t REG_DWORD /v VideoProcessorMode /d 0 /f
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDRX" /t REG_DWORD /v VideoProcessorMode /d 0 /f

2. Control motion detection sensitivity

  • If the settings are stored in an ini file then modify DetectionLevel under your CAMERA_ADDR section.
  • When using the registry the wanted path is:
    HKEY_CURRENT_USER\Software\Contaware\ContaCam\CAMERA_ADDR\DetectionLevel

CAMERA_ADDR

is a long hardware address for USB/DV/PCI devices and the network address plus port and mode for IP cameras (do not invent those addresses, just get them from the ini file or registry)

DetectionLevel

0: OFF

10, 20, 30, 40, 50, 60, 70, 80, 90: increasing motion detection sensitivity

100: continuous recording

Example 1: we could increase the sensitivity at some times of the day through the windows scheduler by running the following .bat file:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR" /t REG_DWORD /v DetectionLevel /d 60 /f

at other times we would lower the sensitivity through another .bat file:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR" /t REG_DWORD /v DetectionLevel /d 30 /f

Example 2: a PIR detector attached to the computer which on detection increases the sensitivity through the following .bat file:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR" /t REG_DWORD /v DetectionLevel /d 100 /f

when the PIR detector stops detecting remember to decrease the sensitivity running the following .bat file:

@echo off
reg add "HKCU\Software\Contaware\ContaCam\CAMERA_ADDR" /t REG_DWORD /v DetectionLevel /d 0 /f

Note: when changing the motion detection sensitivity the pre and post buffers are kept!