roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.5k stars 154 forks source link

Help setup motion detection recording #722

Open smolattack opened 3 months ago

smolattack commented 3 months ago

I have no idea how NVRs work. I managed to get my camera to work in viseron but I don't know what I need to do to make it record on any kind of motion. I don't need any object detection. Cameras will be in a dark-ish loft and I'm just trying to see where rats are coming from.

The following config allows me to see a live feed from a camera but I see no recordings. Am I missing something?

ffmpeg:
  camera:
    bullet:  # This value has to be unique across all cameras
      name: bullet
      host: 172.16.200.201
      port: 554
      path: /media/video1
      fps: 25

mog2:
  motion_detector:
    cameras:
      bullet:  # Attach detector to the configured camera_2 above
        fps: 5

nvr:
  bullet: 
roflcoopter commented 3 months ago

By default motion does not trigger recordings. By using trigger_recorder: true you can accomplish this tho

ffmpeg:
  camera:
    bullet:  # This value has to be unique across all cameras
      name: bullet
      host: 172.16.200.201
      port: 554
      path: /media/video1
      fps: 25

mog2:
  motion_detector:
    cameras:
      bullet:  # Attach detector to the configured camera_2 above
        fps: 5
        trigger_recorder: true

nvr:
  bullet: 

You might need to play around with area as well to make it more sensitive. You can find more info on this in the component docs: https://viseron.netlify.app/components-explorer/components/mog2

smolattack commented 2 months ago

@roflcoopter Thanks for that. Could you clarify how to adjust the sensitivity? Lower area value means higher sensitivity, therefore more likely for a recording to be made? If that's correct, what is the most sensitive setting?

roflcoopter commented 2 months ago

Correct, lower value = more sensitive = more recordings.

Its a float between 1 - 0 so you can go as low as you want really, something like 0.001 should be low enough to trigger on pretty much any movement