To set up "Motion Detection Recording - Go to the camera settings
> "Motion Detection"
Once enabled, you can select to trigger camera recording and image snapshots
You can also change the "Pre-record length" which will add "X" number of
seconds before the motion was detected to the video file saved.