With this config I faced the situation when neverending recording began (now recording despite no motion). Viseron “sees” standing cars and detects them, and recording never stops…
# See the README for the full list of configuration options.
cameras:
- name: FrontYard
host: 192.168.0.4
port: 554
username: root
password: pass
path: /axis-media/media.amp?streamprofile=viseron
publish_image: true
fps: 10
motion_detection:
area: 0.02
interval: 0.25
threshold: 3
trigger_detector: true
timeout: true
max_timeout: 5
zones:
- name: zone1
points:
- x: 1715
y: 343
- x: 1788
y: 399
- x: 1920
y: 589
- x: 1920
y: 1075
- x: 0
y: 1077
- x: 0
y: 612
- x: 203
y: 306
- x: 415
y: 248
- x: 761
y: 195
- x: 1091
y: 187
- x: 1339
y: 204
- x: 1529
y: 229
labels:
- label: person
confidence: 0.4
- label: car
confidence: 0.7
object_detection:
interval: 0.25
labels:
- label: person
confidence: 0.4
- label: car
confidence: 0.7
object_detection:
interval: 0.25
labels: []
triggers_recording: false
recorder:
lookback: 2
timeout: 3
retain: 3
folder: /recordings
# MQTT is optional
mqtt:
broker: 192.168.0.3
port: 1883
username: Max
password: pass
logging:
level: debug
Logs:
[2021-03-29 13:15:22] [lib.nvr.frontyard ] [DEBUG ] - NVR thread initialized
[2021-03-29 13:15:22] [lib.nvr.frontyard ] [DEBUG ] - Waiting for first frame
[2021-03-29 13:15:22] [root ] [INFO ] - Initialization complete
[2021-03-29 13:15:22] [lib.camera.frontyard ] [DEBUG ] - Running object detection at 0.25s interval, every 2 frame(s)
[2021-03-29 13:15:22] [lib.camera.frontyard ] [DEBUG ] - Running motion detection at 0.25s interval, every 2 frame(s)
[2021-03-29 13:15:22] [lib.mqtt ] [DEBUG ] - MQTT connected with returncode 0
[2021-03-29 13:15:22] [lib.mqtt ] [DEBUG ] - Got topic viseron/frontyard/switch/set, message ON
[2021-03-29 13:15:53] [lib.nvr.frontyard ] [DEBUG ] - First frame received
[2021-03-29 13:25:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 1, max area size: 0.02065
[2021-03-29 13:25:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 2, max area size: 0.02194
[2021-03-29 13:25:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 3, max area size: 0.02349
[2021-03-29 13:25:28] [lib.nvr.frontyard.motion] [DEBUG ] - Motion detected
[2021-03-29 13:25:28] [lib.nvr.frontyard ] [DEBUG ] - Starting object detector
[2021-03-29 13:25:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 4, max area size: 0.02534
[2021-03-29 13:25:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 5, max area size: 0.02697
[2021-03-29 13:25:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 6, max area size: 0.02815
[2021-03-29 13:25:29] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 7, max area size: 0.0294
[2021-03-29 13:25:29] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 8, max area size: 0.03068
[2021-03-29 13:25:29] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 9, max area size: 0.03151
[2021-03-29 13:25:30] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 10, max area size: 0.03222
[2021-03-29 13:25:30] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 11, max area size: 0.03244
[2021-03-29 13:25:30] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 12, max area size: 0.03246
[2021-03-29 13:25:30] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 13, max area size: 0.03207
[2021-03-29 13:25:30] [lib.camera.frontyard ] [WARNING ] - object_detection input queue is full. Removing oldest entry
[2021-03-29 13:25:31] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 14, max area size: 0.0316
[2021-03-29 13:25:31] [lib.recorder.frontyard ] [INFO ] - Starting recorder
[2021-03-29 13:25:31] [lib.cleanup ] [DEBUG ] - Pausing segment cleanup
[2021-03-29 13:25:31] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 15, max area size: 0.031
[2021-03-29 13:25:31] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 16, max area size: 0.0299
[2021-03-29 13:25:31] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 17, max area size: 0.02889
[2021-03-29 13:25:31] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 18, max area size: 0.02779
[2021-03-29 13:25:32] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 19, max area size: 0.02627
[2021-03-29 13:25:32] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 20, max area size: 0.02073
[2021-03-29 13:25:32] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 21, max area size: 0.02001
[2021-03-29 13:25:32] [lib.nvr.frontyard.motion] [DEBUG ] - Motion stopped
[2021-03-29 13:26:19] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 1, max area size: 0.02098
[2021-03-29 13:26:19] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 2, max area size: 0.02213
[2021-03-29 13:26:19] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 3, max area size: 0.02313
[2021-03-29 13:26:19] [lib.nvr.frontyard.motion] [DEBUG ] - Motion detected
[2021-03-29 13:26:19] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 4, max area size: 0.02431
[2021-03-29 13:26:20] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 5, max area size: 0.02586
[2021-03-29 13:26:20] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 6, max area size: 0.02738
[2021-03-29 13:26:20] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 7, max area size: 0.02847
[2021-03-29 13:26:20] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 8, max area size: 0.02997
[2021-03-29 13:26:20] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 9, max area size: 0.03143
[2021-03-29 13:26:21] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 10, max area size: 0.03309
[2021-03-29 13:26:21] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 11, max area size: 0.03446
[2021-03-29 13:26:21] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 12, max area size: 0.03523
[2021-03-29 13:26:21] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 13, max area size: 0.03678
[2021-03-29 13:26:21] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 14, max area size: 0.03756
[2021-03-29 13:26:22] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 15, max area size: 0.03926
[2021-03-29 13:26:22] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 16, max area size: 0.04114
[2021-03-29 13:26:22] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 17, max area size: 0.04266
[2021-03-29 13:26:22] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 18, max area size: 0.04469
[2021-03-29 13:26:22] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 19, max area size: 0.04584
[2021-03-29 13:26:23] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 20, max area size: 0.04786
[2021-03-29 13:26:23] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 21, max area size: 0.04968
[2021-03-29 13:26:23] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 22, max area size: 0.05169
[2021-03-29 13:26:23] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 23, max area size: 0.0526
[2021-03-29 13:26:23] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 24, max area size: 0.05423
[2021-03-29 13:26:24] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 25, max area size: 0.05542
[2021-03-29 13:26:24] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 26, max area size: 0.05663
[2021-03-29 13:26:24] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 27, max area size: 0.05742
[2021-03-29 13:26:24] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 28, max area size: 0.05817
[2021-03-29 13:26:24] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 29, max area size: 0.05844
[2021-03-29 13:26:25] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 30, max area size: 0.05688
[2021-03-29 13:26:25] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 31, max area size: 0.05714
[2021-03-29 13:26:25] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 32, max area size: 0.05748
[2021-03-29 13:26:25] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 33, max area size: 0.05638
[2021-03-29 13:26:25] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 34, max area size: 0.05618
[2021-03-29 13:26:26] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 35, max area size: 0.05574
[2021-03-29 13:26:26] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 36, max area size: 0.05462
[2021-03-29 13:26:26] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 37, max area size: 0.05303
[2021-03-29 13:26:26] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 38, max area size: 0.05272
[2021-03-29 13:26:26] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 39, max area size: 0.05236
[2021-03-29 13:26:27] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 40, max area size: 0.05278
[2021-03-29 13:26:27] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 41, max area size: 0.05172
[2021-03-29 13:26:27] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 42, max area size: 0.05032
[2021-03-29 13:26:27] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 43, max area size: 0.04884
[2021-03-29 13:26:27] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 44, max area size: 0.04641
[2021-03-29 13:26:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 45, max area size: 0.04501
[2021-03-29 13:26:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 46, max area size: 0.04193
[2021-03-29 13:26:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 47, max area size: 0.04069
[2021-03-29 13:26:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 48, max area size: 0.03869
[2021-03-29 13:26:28] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 49, max area size: 0.03781
[2021-03-29 13:26:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 50, max area size: 0.03607
[2021-03-29 13:26:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 51, max area size: 0.03402
[2021-03-29 13:26:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 52, max area size: 0.03217
[2021-03-29 13:26:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 53, max area size: 0.03162
[2021-03-29 13:26:29] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 54, max area size: 0.02949
[2021-03-29 13:26:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 55, max area size: 0.02812
[2021-03-29 13:26:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 56, max area size: 0.02657
[2021-03-29 13:26:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 57, max area size: 0.02518
[2021-03-29 13:26:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 58, max area size: 0.02334
[2021-03-29 13:26:30] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 59, max area size: 0.02175
[2021-03-29 13:26:31] [lib.nvr.frontyard.motion] [DEBUG ] - Motion stopped
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 1, max area size: 0.02007
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 2, max area size: 0.02302
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 3, max area size: 0.02581
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Motion detected
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 4, max area size: 0.02849
[2021-03-29 13:34:09] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 5, max area size: 0.03173
[2021-03-29 13:34:10] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 6, max area size: 0.03242
[2021-03-29 13:34:10] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 7, max area size: 0.03741
[2021-03-29 13:34:10] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 8, max area size: 0.04048
[2021-03-29 13:34:10] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 9, max area size: 0.04439
[2021-03-29 13:34:10] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 10, max area size: 0.04735
[2021-03-29 13:34:11] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 11, max area size: 0.05081
[2021-03-29 13:34:11] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 12, max area size: 0.05331
[2021-03-29 13:34:11] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 13, max area size: 0.05415
[2021-03-29 13:34:11] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 14, max area size: 0.04651
[2021-03-29 13:34:11] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 15, max area size: 0.04459
[2021-03-29 13:34:12] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 16, max area size: 0.04437
[2021-03-29 13:34:12] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 17, max area size: 0.04389
[2021-03-29 13:34:12] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 18, max area size: 0.04359
[2021-03-29 13:34:12] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 19, max area size: 0.03636
[2021-03-29 13:34:12] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 20, max area size: 0.03512
[2021-03-29 13:34:13] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 21, max area size: 0.03558
[2021-03-29 13:34:13] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 22, max area size: 0.03512
[2021-03-29 13:34:13] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 23, max area size: 0.03373
[2021-03-29 13:34:13] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 24, max area size: 0.03118
[2021-03-29 13:34:13] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 25, max area size: 0.02966
[2021-03-29 13:34:14] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 26, max area size: 0.02769
[2021-03-29 13:34:14] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 27, max area size: 0.02304
[2021-03-29 13:34:14] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 28, max area size: 0.02192
[2021-03-29 13:34:14] [lib.nvr.frontyard.motion] [DEBUG ] - Consecutive frames with motion: 29, max area size: 0.02119
[2021-03-29 13:34:14] [lib.nvr.frontyard.motion] [DEBUG ] - Motion stopped
Again, this is not within my Zone… Looks like recorder reacts to object_detection
settings set for Camera (and corresponding zone), but records all screen.
When I see logs I still notice:
[2021-03-29 14:31:25] [lib.recorder.frontyard ] [ERROR ] - Could not get duration for: /segments/FrontYard/20210329143113.mp4. Error: [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55abe9102b00] moov atom not found
/segments/FrontYard/20210329143113.mp4: Invalid data found when processing input