Skip to content

Recording only when motion is detected

To start recording only when motion is detected:

RecordingOnMotion_Enabled : specifies to record only when motion is detected

RecordingOnMotion_MotionThreshold : specifies the minimum motion ratio to (re)start the recording

RecordingOnMotion_NoMotionPauseDelayMs : specifies the delay after which the recording is switched back in a paused state when no motion is detected

E.g.:

VideoGrabber1->MotionDetector_Enabled = true;

VideoGrabber1->RecordingCanPause = true;

VideoGrabber1->RecordingOnMotion_Enabled = true;

VideoGrabber1->RecordingOnMotion_NoMotionPauseDelayMs = 2000;

VideoGrabber1->RecordingOnMotion_MotionThreshold = 0.001;

VideoGrabber1->RecordingPauseCreatesNewFile := true;

VideoGrabber1->StartRecording();