viseron icon indicating copy to clipboard operation
viseron copied to clipboard

Help setup motion detection recording

Open smolattack opened this issue 3 months ago • 3 comments

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: 

smolattack avatar Mar 30 '24 23:03 smolattack

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

roflcoopter avatar Mar 31 '24 09:03 roflcoopter

@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?

smolattack avatar Apr 10 '24 13:04 smolattack

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

roflcoopter avatar Apr 11 '24 21:04 roflcoopter