Outdoor Home Security Camera (2)

This is part 2 of a DIY outdoor home security camera built using a Raspberry Pi.

As you go through the next few steps, play around with the MotionEye settings.

Step 2.1. Configure Motion Detection (see image above)

MotionEye OS detects motion by comparing frames. So, there is no need for a motion detector.

Open browser and go to http://♣hostname♣ or http://your-ip-address

Scroll down and click on Motion Settings.

MotionDetection On

Here are my settings, but you might want to change them:

  • Frame Change Threshold = 1%

        • Frame Change Threshold above 5% is unlikely to detect motion

  • Light Switch Detection = 10%

  • Motion Gap = 10

        • Gap in seconds between two motion detections

  • Captured Before = 10

  • Captured After = 1

  • Minimum Motion Frames = 10

        • Minimum Motion Frames are the number of frames required to be moving before motion is detected

Click Apply

Optional Motion Detection Masking

Check the number of videos created each day. If too many are being created, then turn the Mask feature On and change to editable, and create a mask.

One of my cameras has a nearby tree that waves with the slightest breeze. I was getting about 180 videos a day. The mask dropped the number to ~10.

This tutorial shows how to Enable, Create and Save a mask to exclude non-interesting parts of the view from creating a video

Step 2.2. Configure Text Overlay

I increased the size of the text from 1 to 4.

The image above doesn't show it, but I also changed the name to the hostname of the camera, which is more descriptive

Always click Apply

Step 2.3. Stop (or Start) Video Streaming

I am not quite sure about this, but it doesn't appear that I can stream and capture videos. I must choose. So, I set Video Streaming to Off. Also, I don't want my LAN consumed by streaming video when I am not looking at it.

Open browser and go to http://♣hostname♣ or http://your-ip-address

Scroll down and switch Video Streaming to OFF (or ON)

Set Motion Optimization to On

Set Streaming Quality to ~80%

Click Apply

Note: When no user subscribes to a MotionEye stream, then nothing is streamed. It does this automatically. I checked this using my gateway’s built in port monitor. If I opened a browser and connected to a camera, then bytes transmitted and received would increase significantly. If I closed the window, then the byte count stayed the same.


Step 2.4. Configure Movies

Open browser and go to http://♣hostname♣ or http://your-ip-address

Scroll down and click on Movies:

Movie Quality = 100%

Maximum Movie Length = leave at 0 seconds and it will record as long as motion is detected

Preserve Movies = 1 Week


Movie Format = H.264

Movie Passthrough = On

Click Apply

Go to the next part (Part 3) or previous part of the Security Camera project