viseron icon indicating copy to clipboard operation
viseron copied to clipboard

Unable to get anything to trigger record.

Open Dvalin21 opened this issue 1 year ago • 15 comments

So I've been working on getting Viseron to work (thanks for all the hard work by the way). I've got what I THINK is suppose to be working, however I can't get anything to trigger record. Initially when I installed Viseron there was a few recordings, but I have no clue what I changed to get back to that. Since the update I haven't been able to do anything at all other than stream.

So to give you a breakdown of Hardware and setup.

Hardware/Software: OS: Ubuntu 22.04.2 LTS x86_64/CasaOS (If you want to see what CasaOS is about check here: https://casaos.io/) Host: B550 AORUS ELITE AX Kernel: 5.15.0-70-generic CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz GPU: AMD ATI Radeon RX 5500/5500M / Pro 5500M Memory: 6594MiB / 64211MiB

Cameras: Anbiux A8SB https://www.aliexpress.us/item/3256804753989807.html?spm=a2g0o.productlist.main.3.44133502z8rSwM&algo_pvid=631787c7-5efa-4985-9f54-cb0888704e93&algo_exp_id=631787c7-5efa-4985-9f54-cb0888704e93-1&pdp_npi=3%40dis%21USD%2190.58%2142.57%21%21%21%21%21%40212243c016822844120603866d06cc%2112000031093088702%21sea%21US%212131105761&curPageLogUid=YzC1BAn2bBqQ

Wait for this one to come in: https://www.aliexpress.us/item/3256804881846727.html?spm=a2g0o.order_list.order_list_main.28.457d1802wWNjNr&gatewayAdapt=glo2usa&_randl_shipto=US Not sure if the software will be able to handle the 180 degree angle view.

Example of Camera Domain:

ffmpeg: camera: camera_1: # This value has to be unique across all cameras name: a name host: ipaddress port: 554 path: /user=admin_password=1bpcecDK_channel=0_stream=0&onvif=0.sdp?real_stream username: pass password: word protocol: rtsp width: 2560 height: 1440 fps: 10 codec: hevc audio_codec: aac recorder: codec: hevc audio_codec: aac idle_timeout: 1 lookback: 15 thumbnail: save_to_disk: true

Config for Motion, Object Detector, Face Recognition: (I'll be switching back to darknet however it didn't trigger with that either) deepstack: (Its actually CodeProject.AI https://www.codeproject.com/Articles/5322557/CodeProject-AI-Server-AI-the-easy-way) host: ipaddress port: 32168 object_detector: cameras: camera_1: scan_on_motion_only: false fps: 10
labels: - label: person confidence: 0.75 height_min: 0 height_max: 1 width_min: 0 width_max: 1 require_motion: true trigger_recorder: true - label: dog confidence: 0.8 require_motion: true height_min: 0 height_max: 1 width_min: 0 width_max: 1 trigger_recorder: true - label: cat confidence: 0.8 require_motion: true height_min: 0 height_max: 1 width_min: 0 width_max: 1 trigger_recorder: true

Face Recognition (from CodeProject.AI)

face_recognition: save_unknown_faces: false unknown_faces_path: /config/face_recognition/faces/unknown face_recognition_path: /config/face_recognition/faces cameras: camera_1: labels: - person

(Posting so you could see my darknet settings) darknet: object_detector: model_path: /detectors/models/darknet/yolov7-tiny.weights model_config: /detectors/models/darknet/yolov7-tiny.cfg label_path: /detectors/models/darknet/coco.names cameras: camera_1: scan_on_motion_only: false fps: 10 labels: - label: person confidence: 0.75 height_min: 0 height_max: 1 width_min: 0 width_max: 1 require_motion: true trigger_recorder: true - label: dog confidence: 0.8 require_motion: true height_min: 0 height_max: 1 width_min: 0 width_max: 1 trigger_recorder: true - label: cat confidence: 0.8 require_motion: true height_min: 0 height_max: 1 width_min: 0 width_max: 1 trigger_recorder: true

mog2: motion_detector: cameras: camera_1: detect_shadows: true

trigger_recording: true (If I uncomment this, it breaks everything)

    recorder_keepalive: true
    learning_rate: -1
    max_recorder_keepalive: 30
    fps: 10
    width: 2560
    height: 1440

nvr: camera_1: # Run NVR for camera_1

Now, no matter what I've tried I have not gotten this to record except before the update and the config had different settings. Even then, when it did, it recorded the audio and not the video. It did however took a thumbnail. Any help would be great. I appreciate everything that has been done in this project and those who are help out.

Logs from Portainer on the container for Viseron when booting and running https://pastebin.com/6xxgbxYD

Also this seems to happen from time to time. Not sure why a connection loss or time out is happening

[2023-04-23 21:43:43] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - [tcp @ 0x55b7677f5500] Connection to tcp://ipaddress9:554?timeout=5000000 failed: Connection timed out [2023-04-23 21:43:43] [ERROR ] [viseron.components.ffmpeg.stream.camera_2] - rtsp://:@ipaddress:554/user=admin_password=1bpcecDK_channel=0_stream=0&onvif=0.sdp?real_stream: Connection timed out [2023-04-23 21:43:43] [ERROR ] [viseron.components.ffmpeg.camera.camera_2] - FFmpeg process has exited [2023-04-23 21:43:48] [ERROR ] [viseron.components.ffmpeg.camera.camera_2] - Restarting frame pipe

OH!!! 3 cups of coffee your brother. You honestly deserve more.

Dvalin21 avatar Apr 23 '23 21:04 Dvalin21

THanks for the detailed report, will have a deeper look.

Can you repost your config between triple back-ticks? (```) It keeps indentation so its easier to read, like this:

ffmpeg:
  cameras:
    camera_one:

OH!!! 3 cups of coffee your brother. You honestly deserve more.

Thanks! Means a lot :)

roflcoopter avatar Apr 24 '23 06:04 roflcoopter

Also regarding the logs, can you restart, walk infront of the camera in a way that should trigger recordings and then send the logs? Then i should be able to figure out what is wrong.

roflcoopter avatar Apr 24 '23 06:04 roflcoopter

Also regarding the logs, can you restart, walk infront of the camera in a way that should trigger recordings and then send the logs? Then i should be able to figure out what is wrong.

I've been trying that, even when I walk in front of the camera, wave and everything, no logs are produced.

Dvalin21 avatar Apr 24 '23 07:04 Dvalin21

Also regarding the logs, can you restart, walk infront of the camera in a way that should trigger recordings and then send the logs? Then i should be able to figure out what is wrong.

I've been trying that, even when I walk in front of the camera, wave and everything, no logs are produced.

Enable debug logging and try again. You can do that like this:

logger:
  default_level: debug

Edit: Can you try with require_motion: false?

roflcoopter avatar Apr 24 '23 08:04 roflcoopter

require_motion: false

Yep, I have that enabled along with viseron.components.mog2: debug

Here is what I got [2023-04-24 20:30:45] [ERROR ] [viseron.components] - Error validating config for component mog2: extra keys not allowed @ data['mog2']['motion_detector']['cameras']['camera_1']['require_motion']. Got False Traceback (most recent call last): File "/src/viseron/components/init.py", line 114, in validate_component_config return component_module.CONFIG_SCHEMA(self._config) # type: ignore File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 272, in call return self._compiled([], data) File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 594, in validate_dict return base_validate(path, iteritems(data), out) File "/usr/local/lib/python3.8/dist-packages/voluptuous/schema_builder.py", line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: extra keys not allowed @ data['mog2']['motion_detector']['cameras']['camera_1']['require_motion'] [2023-04-24 20:30:45] [ERROR ] [viseron.components] - Setup of component mog2 failed [2023-04-24 20:30:45] [ERROR ] [viseron.components] - Failed setup of component mog2

everytime I've gotten it to trigger, I had to have the record settings codec set to h264 audio I keep at aac, but extension mkv.

I also tried scan_on_motion_only: false and got the same error

Dvalin21 avatar Apr 24 '23 20:04 Dvalin21

Screenshot_20230424_155337 Here is a screen shot on the info of the one recording that actually recorded

Dvalin21 avatar Apr 24 '23 20:04 Dvalin21

After some more tinkering, it seems like its hit or miss. I've turned on each component debug that I'm using. I'm not getting errors when monitoring. I've played with the codec and audio codec. When I have hevc and aac set, when I did finally get it to trigger, the player only plays the audio. I downloaded the video to my computer and the video as well as the audio works. I had loopback set as well, and when the detector triggers, it would only record the length of the loop back. I didn't think of it before deleting them, but on v2.1.1, it seem it recorded, but I didn't think to download to my pc to view. Its like something is causing lag maybe? I couldn't tell ya.

Dvalin21 avatar Apr 25 '23 00:04 Dvalin21

Was able to pull this log during testing.

[2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame I: 1, Avg QP:21.41 kb/s: 31861.92 [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame P: 14, Avg QP:23.69 kb/s: 5297.65 [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame B: 45, Avg QP:30.60 kb/s: 360.03 [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: consecutive B-frames: 6.7% 6.7% 6.7% 40.0% 40.0% [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - [2023-04-24 21:51:46] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - encoded 60 frames in 2.92s (20.57 fps), 2037.17 kb/s, Avg QP:28.84 [2023-04-24 21:51:46] [DEBUG ] [viseron.components.ffmpeg.recorder.camera_1] - Removing segment: 20230424215132.mkv [2023-04-24 21:51:46] [DEBUG ] [viseron.components.ffmpeg.recorder.camera_1] - Segments concatenated [2023-04-24 21:51:46] [DEBUG ] [viseron.components.ffmpeg.recorder.camera_1] - Resuming segment cleanup

Dvalin21 avatar Apr 25 '23 03:04 Dvalin21

[2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame I: 2, Avg QP:24.49 kb/s: 11223.84 [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame P: 33, Avg QP:29.18 kb/s: 77.69 [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: frame B: 72, Avg QP:31.57 kb/s: 19.49 [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - x265 [info]: consecutive B-frames: 28.6% 11.4% 17.1% 11.4% 31.4% [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - [2023-04-24 22:06:29] [ERROR ] [viseron.components.ffmpeg.recorder.camera_1] - encoded 107 frames in 2.50s (42.72 fps), 246.87 kb/s, Avg QP:30.70

Dvalin21 avatar Apr 25 '23 03:04 Dvalin21

Info update:

So to give you the info that worked with the recording info above

object detector: edgetpu (m.2) motion detector: background subtractor face recognition: compreface

Now the experience that I'm having is anytime I switch the object det or mot det, it would render record triggering dead. I can go outside and see that my cameras are tripping, but no recording happens.

I switched from background to mog2 to test, but it will not record. I would completely not add mot det, but viseron errors and says a object det and a mot det must be enabled.

I was able to get very little done with darknet. Even if I switch, because of the behavior it may or may not work. So even if it start working, it may not if I switch to something else to test.

As you see above, even when it would record no matter the file extension I used, it came as an error.

What I have noticed is that darknet and mog2 seem to take a lot of resource to run. Leaving my cpu usage at 58% when running it. Wouldn't be an issue if I can get consistent trippers.

Still have the issue of loopback being the majority of whats recorded and MAYBE a couple of seconds and then end. I have.

If I switch the codec to h264 and get it to record, then I'm able to view the recording in the browser and hear audio. I heard there is an issue with h265 video being viewed in browsers. Anyway, I hope this helps and gives you as much info as needed. For the time being or at least when I go to bed, Ill switch back to frigate, but I am determined to see viseron work consistent as possible.

Thanks for all the work your doing and research going into this.

Dvalin21 avatar Apr 25 '23 04:04 Dvalin21

Motion detection is not required, and i think the best way is to first test without motion detection.

I need you to post your config between triple backticks(```), then i can help you out with the config

roflcoopter avatar Apr 28 '23 07:04 roflcoopter

Motion detection is not required, and i think the best way is to first test without motion detection.

I need you to post your config between triple backticks(```), then i can help you out with the config

Sorry for taking so long to reply. Been pretty busy.

mqtt:
  broker: 
  port: 
  home_assistant:
    discovery_prefix: homeassistant
    retain_config: true
    
## Start by adding some cameras
ffmpeg:
  camera:
    camera_1: # This value has to be unique across all cameras
      name: Front Door
      host: 
      port: 554
      path: /user=admin_password=1bpcecDK_channel=0_stream=0&onvif=0.sdp?real_stream
      username: 
      password: 
      protocol: rtsp
      width: 2560
      height: 1440
      fps: 10
      codec: hevc
      audio_codec: aac
      recorder:
        codec: hevc
        audio_codec: aac
        idle_timeout: 1
        lookback: 10
        thumbnail:
          save_to_disk: true

  
## Then add an object detector
darknet:
  object_detector:
    model_path: /detectors/models/darknet/yolov7-tiny.weights
    model_config: /detectors/models/darknet/yolov7-tiny.cfg
    label_path: /detectors/models/darknet/coco.names
    cameras:
      camera_1:
        scan_on_motion_only: false
        fps: 10
        labels:
          - label: person
            confidence: 0.75
            height_min: 0
            height_max: 1
            width_min: 0
            width_max: 1
            require_motion: true
            trigger_recorder: true
          - label: dog
            confidence: 0.8
            require_motion: true
            height_min: 0
            height_max: 1
            width_min: 0
            width_max: 1
            trigger_recorder: true
          - label: cat
            confidence: 0.8
            require_motion: true
            height_min: 0
            height_max: 1
            width_min: 0
            width_max: 1
            trigger_recorder: true
      

#edgetpu:
#  object_detector:
#    device: pci
#    cameras:
#      camera_1:  # Attach detector to the configured camera_1 above
#        fps: 10
#        scan_on_motion_only: false  # Scan for objects even when there is no motion
#        labels:
#          - label: person
#            confidence: 0.75
#            trigger_recorder: true
#          - label: dog
#            confidence: 0.8
#            trigger_recorder: false
#          - label: cat
#            confidence: 0.8
#            trigger_recorder: false
#  image_classification:
#    device: cpu
#    label_path: /classifiers/models/edgetpu/labels.txt
#    cameras:
#      camera_1:
#      camera_2:
#      camera_3:
#    labels:
#      - person
#      - dog
#      - cat

## Then add an Face Recognition
compreface:
  face_recognition:
    host: 
    port: 
    recognition_api_key: 
    train: true
    face_plugins: age,gender
    save_unknown_faces: true
    status: true
    cameras:
      camera_1:
      camera_2:
      camera_3:
    labels:
      - person


## Then add an Motion Detection
#background_subtractor:
#  motion_detector:
#    cameras:
#      camera_1:
#        detect_shadows: true
#        recorder_keepalive: true
#        max_recorder_keepalive: 30
#        fps: 10
#        width: 2560
#        height: 1440
#      camera_2:
#        detect_shadows: true
#        recorder_keepalive: true
#        max_recorder_keepalive: 30
#        fps: 10
#        width: 2560
#        height: 1440
#      camera_3:
#        detect_shadows: true
#        recorder_keepalive: true
#        max_recorder_keepalive: 30
#        fps: 10
#        width: 2560
#        height: 1440

##Debugging and logs
logger:
  default_level: debug
  logs:
#    viseron.components.ffmpeg: debug
    viseron.components.nvr: debug
#    viseron.components.edgetpu: debug
    viseron.components.darknet: debug
#    viseron.components.background_subtractor: debug
    viseron.components.compreface: debug
#    viseron.components.mog2: debug
#  cameras:
#    camera_1: debug
#    camera_2: debug
#    camera_3: debug


## To tie everything together we need to configure one more component.
nvr:
  camera_1: # Run NVR for camera_1
  camera_2: # Run NVR for camera_2
  camera_3: # Run NVR for camera_3
# Now you can restart Viseron and you should be good to go!

Dvalin21 avatar May 04 '23 18:05 Dvalin21

LOL, so not only is darknet working, it is trying to record every rain drop that is coming down today. So removing motion did work. However, how do I keep it from doing that and just recording what I've placed in labels?

usermod: no changes
************************ UID/GID *************************
User uid:    0
User gid:    0
************************** Done **************************
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 20-gid-video-device: executing... 
[cont-init.d] 20-gid-video-device: exited 0.
[cont-init.d] 30-edgetpu-permission: executing... 
************** Setting EdgeTPU permissions ***************
Coral Vendor IDs:
"1a6e"
"18d1"
No EdgeTPU USB device was found
************************** Done **************************
[cont-init.d] 30-edgetpu-permission: exited 0.
[cont-init.d] 40-set-env-vars: executing... 
****** Checking for hardware acceleration platforms ******
OpenCL cannot be used
VA-API is available!
CUDA cannot be used
*********************** Done *****************************
[cont-init.d] 40-set-env-vars: exited 0.
[cont-init.d] 50-check-if-rpi: executing... 
********** Checking if we are running on an RPi **********
Not running on any supported RPi
*********************** Done *****************************
[cont-init.d] 50-check-if-rpi: exited 0.
[cont-init.d] 55-check-if-jetson: executing... 
****** Checking if we are running on a Jetson Board ******
Not running on any supported Jetson board
*********************** Done *****************************
[cont-init.d] 55-check-if-jetson: exited 0.
[cont-init.d] 60-ffmpeg-path: executing... 
****************** Getting FFmpeg path *******************
FFmpeg path: /home/abc/bin/ffmpeg
*********************** Done *****************************
[cont-init.d] 60-ffmpeg-path: exited 0.
[cont-init.d] 70-gstreamer-path: executing... 
***************** Getting GStreamer path *****************
GStreamer path: /usr/bin/gst-launch-1.0
*********************** Done *****************************
[cont-init.d] 70-gstreamer-path: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-05-04 13:46:14] [INFO    ] [viseron.core] - -------------------------------------------
[2023-05-04 13:46:14] [INFO    ] [viseron.core] - Initializing Viseron
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component logger
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component logger took 0.0 seconds
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component data_stream
[2023-05-04 13:46:14] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(data_stream, initial daemon)> in the watchdog
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component data_stream took 0.0 seconds
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component webserver
[2023-05-04 13:46:14] [DEBUG   ] [asyncio] - Using selector: EpollSelector
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/domain/registered/camera, <bound method Webserver.camera_registered of <Webserver(Tornado Webserver, initial daemon)>>
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/domain/setup/domain_failed/camera/*, <bound method Webserver.camera_registered of <Webserver(Tornado Webserver, initial daemon)>>
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method Webserver.stop of <Webserver(Tornado Webserver, initial daemon)>>
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component webserver took 0.0 seconds
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component nvr
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component ffmpeg
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component mqtt
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component nvr took 0.0 seconds
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component darknet
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setting up component compreface
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component ffmpeg took 0.0 seconds
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.darknet] - Using OpenCV DNN Darknet
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.darknet] - Using weights /detectors/models/darknet/yolov7-tiny.weights and config /detectors/models/darknet/yolov7-tiny.cfg, 416x416
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.darknet] - DNN backend: 0
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.darknet] - DNN target: 0
[2023-05-04 13:46:14] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(viseron.components.mqtt.publisher, initial daemon)> in the watchdog
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component darknet took 0.0 seconds
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.mqtt] - MQTT connected with returncode 0
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/entity_added, <bound method MQTT.entity_added of <viseron.components.mqtt.MQTT object at 0x7f5fe80578b0>>
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/state_changed, <bound method MQTT.state_changed of <viseron.components.mqtt.MQTT object at 0x7f5fe80578b0>>
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method MQTT.stop of <viseron.components.mqtt.MQTT object at 0x7f5fe80578b0>>
[2023-05-04 13:46:14] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/mqtt/entity_added, <bound method HassMQTTInterface.entity_added of <viseron.components.mqtt.homeassistant.HassMQTTInterface object at 0x7f5fe8050af0>>
[2023-05-04 13:46:14] [INFO    ] [viseron.components] - Setup of component mqtt took 0.0 seconds
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of component compreface took 0.0 seconds
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain camera for component ffmpeg with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain object_detector for component darknet with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain nvr for component nvr with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain camera for component ffmpeg with identifier camera_2
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain nvr for component nvr with identifier camera_2
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain camera for component ffmpeg with identifier camera_3
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain nvr for component nvr with identifier camera_3
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain face_recognition for component compreface with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain face_recognition for component compreface with identifier camera_2
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setting up domain face_recognition for component compreface with identifier camera_3
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain face_recognition for component compreface with identifier camera_1 will wait for dependencies ['domain: camera, identifier: camera_1']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain object_detector for component darknet with identifier camera_1 will wait for dependencies ['domain: camera, identifier: camera_1']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain nvr for component nvr with identifier camera_2 will wait for dependencies ['domain: camera, identifier: camera_2']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain nvr for component nvr with identifier camera_3 will wait for dependencies ['domain: camera, identifier: camera_3']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain face_recognition for component compreface with identifier camera_3 will wait for dependencies ['domain: camera, identifier: camera_3']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain face_recognition for component compreface with identifier camera_2 will wait for dependencies ['domain: camera, identifier: camera_2']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain nvr for component nvr with identifier camera_1 will wait for dependencies ['domain: camera, identifier: camera_1']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components] - Domain nvr for component nvr with identifier camera_1 will wait for optional dependencies ['domain: object_detector, identifier: camera_1']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Connected from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/camera/status, <bound method ConnectionStatusBinarySensor.handle_event of <viseron.domains.camera.entity.binary_sensor.ConnectionStatusBinarySensor object at 0x7f5fb0076f40>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_connected to state: off, attributes {'name': 'Front Door Connected', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Connected from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/camera/status, <bound method ConnectionStatusBinarySensor.handle_event of <viseron.domains.camera.entity.binary_sensor.ConnectionStatusBinarySensor object at 0x7f5fb007b070>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_2_connected to state: off, attributes {'name': 'Storage Room Connected', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Connection from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/camera/start, <bound method CameraConnectionToggle.handle_start_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/camera/stop, <bound method CameraConnectionToggle.handle_stop_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/camera/started, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/camera/stopped, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of toggle.camera_1_connection to state: off, attributes {'name': 'Front Door Connection', 'domain': 'toggle'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Connection from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/camera/start, <bound method CameraConnectionToggle.handle_start_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b790>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/camera/stop, <bound method CameraConnectionToggle.handle_stop_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b790>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/camera/started, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b790>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/camera/stopped, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb007b790>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of toggle.camera_2_connection to state: off, attributes {'name': 'Storage Room Connection', 'domain': 'toggle'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Connected from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/camera/status, <bound method ConnectionStatusBinarySensor.handle_event of <viseron.domains.camera.entity.binary_sensor.ConnectionStatusBinarySensor object at 0x7f5fb007b910>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_3_connected to state: off, attributes {'name': 'Backyard Connected', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Connection from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/camera/start, <bound method CameraConnectionToggle.handle_start_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb0080130>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/camera/stop, <bound method CameraConnectionToggle.handle_stop_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb0080130>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/camera/started, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb0080130>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/camera/stopped, <bound method CameraConnectionToggle.handle_started_stopped_event of <viseron.domains.camera.entity.toggle.CameraConnectionToggle object at 0x7f5fb0080130>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of toggle.camera_3_connection to state: off, attributes {'name': 'Backyard Connection', 'domain': 'toggle'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Access Token from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_3_access_token to state: dafd8b23bfcc5f0d716c23c7b844d1a5e1ccdd47d999f99720640b74c53014094043dc2b2837a11ccfb050f8bfb3d1b06c45927db81d1ba7ad4541e1e6ca397b, attributes {'name': 'Backyard Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Access Token from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_access_token to state: 980f5c2e15fcf89e272ec10a63cffa68f1d5f8d6e3edc38835273d61bb3e1bbc4064769ab977a3c2bacdf4af483fd8f6ff4cb6916705aa40eaf761e0728495dc, attributes {'name': 'Front Door Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_access_token to state: 933f6c4f0483325bab50354947406d1a5ad1313e1f077b0d7f07404b56394062bcbc7c51004b85c23b0449634d4cddd47e0aedaaad78a49662862317fc44d3e4, attributes {'name': 'Front Door Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Access Token from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_2_access_token to state: 9c961d332cfdecff370c04549178ef41bb74325d28a95782d9d9203332b677cba695862e7f4b5cfe9023619c28e305294716c86d5a2d216d180d8deb71f4794d, attributes {'name': 'Storage Room Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_2_access_token to state: a037af232af24347298be1854aa8e962af21cc801772e66d666e1e6dcdd4eb5ad40846986a60eb69be99d89ce91599e7f7d7d2910b0d6e3de6fae8bbce86e605, attributes {'name': 'Storage Room Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_3_access_token to state: cd91741fc8475421eaf93fbcfa7482d1747e0ff9f4ff88497343c459872385e983025d9fe4f494f4427f21750cf426631cb7df5360dc207938d47bd7c7e05dd3, attributes {'name': 'Backyard Access Token', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.mqtt] - Subscribing to topic viseron/toggle/camera_1_connection/command
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.mqtt] - Subscribing to topic viseron/toggle/camera_2_connection/command
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.mqtt] - Subscribing to topic viseron/toggle/camera_3_connection/command
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_2] - Running cleanup
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_3] - Running cleanup
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_1] - Running cleanup
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Recorder from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/recorder/start, <bound method RecorderBinarySensor.handle_start_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb0024160>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/recorder/stop, <bound method RecorderBinarySensor.handle_stop_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb0024160>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_3_recorder to state: off, attributes {'name': 'Backyard Recorder', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Latest Thumbnail from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/recorder/start, <bound method ThumbnailImage.handle_event of <viseron.domains.camera.entity.image.ThumbnailImage object at 0x7f5fb0080ac0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of image.camera_3_latest_thumbnail to state: unknown, attributes {'name': 'Backyard Latest Thumbnail', 'domain': 'image', 'start_time': None, 'path': None, 'thumbnail_path': None}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_3] - Initializing recorder
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method SegmentCleanup.shutdown of <viseron.components.ffmpeg.segments.SegmentCleanup object at 0x7f5fb0026b20>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_3] - Initializing camera Backyard
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_3] - Resolution: 2560x1440 @ 10 FPS
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_3] - Camera Backyard initialized
[2023-05-04 13:46:15] [DEBUG   ] [viseron.core] - Registering domain camera with identifier camera_3
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain camera for component ffmpeg with identifier camera_3 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.compreface.face_recognition.camera_3] - Post processor will run for labels: ['person']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(viseron.domains.post_processor, initial daemon)> in the watchdog
[2023-05-04 13:46:15] [ERROR   ] [viseron.components.nvr.nvr] - Failed setup of domain nvr for camera camera_3. At least one object or motion detector has to be configured
[2023-05-04 13:46:15] [ERROR   ] [viseron.components] - Setup of domain nvr for component nvr with identifier camera_3 failed
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/objects, <queue.Queue object at 0x7f5fb007be80>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/zone/*/objects, <queue.Queue object at 0x7f5fb007be80>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Recorder from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/recorder/start, <bound method RecorderBinarySensor.handle_start_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb00240d0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/recorder/stop, <bound method RecorderBinarySensor.handle_stop_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb00240d0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_2_recorder to state: off, attributes {'name': 'Storage Room Recorder', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Latest Thumbnail from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/recorder/start, <bound method ThumbnailImage.handle_event of <viseron.domains.camera.entity.image.ThumbnailImage object at 0x7f5fb0080c10>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of image.camera_2_latest_thumbnail to state: unknown, attributes {'name': 'Storage Room Latest Thumbnail', 'domain': 'image', 'start_time': None, 'path': None, 'thumbnail_path': None}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_2] - Initializing recorder
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Face Detected Keith from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/detected/keith, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0039040>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/expired/keith, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0039040>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_3_face_detected_keith to state: off, attributes {'name': 'Backyard Face Detected Keith', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Face Detected Lorri from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/detected/lorri, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb00392b0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/expired/lorri, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb00392b0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_3_face_detected_lorri to state: off, attributes {'name': 'Backyard Face Detected Lorri', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Backyard Face Detected Leah from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/detected/leah, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0039520>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_3/face/expired/leah, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0039520>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_3_face_detected_leah to state: off, attributes {'name': 'Backyard Face Detected Leah', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain face_recognition for component compreface with identifier camera_3 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method SegmentCleanup.shutdown of <viseron.components.ffmpeg.segments.SegmentCleanup object at 0x7f5fb0118a00>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_2] - Initializing camera Storage Room
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_2] - Resolution: 2560x1440 @ 10 FPS
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_2] - Camera Storage Room initialized
[2023-05-04 13:46:15] [DEBUG   ] [viseron.core] - Registering domain camera with identifier camera_2
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain camera for component ffmpeg with identifier camera_2 took 0.0 seconds
[2023-05-04 13:46:15] [ERROR   ] [viseron.components.nvr.nvr] - Failed setup of domain nvr for camera camera_2. At least one object or motion detector has to be configured
[2023-05-04 13:46:15] [ERROR   ] [viseron.components] - Setup of domain nvr for component nvr with identifier camera_2 failed
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.compreface.face_recognition.camera_2] - Post processor will run for labels: ['person']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(viseron.domains.post_processor, initial daemon)> in the watchdog
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/objects, <queue.Queue object at 0x7f5fb00267c0>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/zone/*/objects, <queue.Queue object at 0x7f5fb00267c0>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Face Detected Keith from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/detected/keith, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fe8057880>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/expired/keith, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fe8057880>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_2_face_detected_keith to state: off, attributes {'name': 'Storage Room Face Detected Keith', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Face Detected Lorri from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/detected/lorri, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb00473a0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/expired/lorri, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb00473a0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_2_face_detected_lorri to state: off, attributes {'name': 'Storage Room Face Detected Lorri', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Storage Room Face Detected Leah from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/detected/leah, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0047610>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_2/face/expired/leah, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0047610>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_2_face_detected_leah to state: off, attributes {'name': 'Storage Room Face Detected Leah', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain face_recognition for component compreface with identifier camera_2 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_1] - Items in /recordings/camera_1/2023-05-04: 99
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Recorder from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/recorder/start, <bound method RecorderBinarySensor.handle_start_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb0024c10>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/recorder/stop, <bound method RecorderBinarySensor.handle_stop_event of <viseron.domains.camera.entity.binary_sensor.RecorderBinarySensor object at 0x7f5fb0024c10>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_recorder to state: off, attributes {'name': 'Front Door Recorder', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Latest Thumbnail from component ffmpeg
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/recorder/start, <bound method ThumbnailImage.handle_event of <viseron.domains.camera.entity.image.ThumbnailImage object at 0x7f5fe805e6a0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of image.camera_1_latest_thumbnail to state: unknown, attributes {'name': 'Front Door Latest Thumbnail', 'domain': 'image', 'start_time': None, 'path': None, 'thumbnail_path': None}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.recorder.camera_1] - Initializing recorder
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method SegmentCleanup.shutdown of <viseron.components.ffmpeg.segments.SegmentCleanup object at 0x7f5fb003faf0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_1] - Initializing camera Front Door
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_1] - Resolution: 2560x1440 @ 10 FPS
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_1] - Camera Front Door initialized
[2023-05-04 13:46:15] [DEBUG   ] [viseron.core] - Registering domain camera with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain camera for component ffmpeg with identifier camera_1 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.compreface.face_recognition.camera_1] - Post processor will run for labels: ['person']
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(viseron.domains.post_processor, initial daemon)> in the watchdog
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/objects, <bound method ObjectDetectedBinarySensorLabel.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb00390d0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Object Detected Person from component darknet
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensorLabel.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb00390d0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_object_detected_person to state: off, attributes {'name': 'Front Door Object Detected Person', 'domain': 'binary_sensor', 'count': 0, 'objects': []}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/objects, <bound method ObjectDetectedBinarySensorLabel.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb0039340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Object Detected Dog from component darknet
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensorLabel.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb0039340>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_object_detected_dog to state: off, attributes {'name': 'Front Door Object Detected Dog', 'domain': 'binary_sensor', 'count': 0, 'objects': []}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/objects, <bound method ObjectDetectedBinarySensorLabel.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb0047160>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Object Detected Cat from component darknet
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensorLabel.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5fb0047160>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_object_detected_cat to state: off, attributes {'name': 'Front Door Object Detected Cat', 'domain': 'binary_sensor', 'count': 0, 'objects': []}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(camera_1.object_detection, initial daemon)> in the watchdog
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/objects, <queue.Queue object at 0x7f5fb0030d60>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/zone/*/objects, <queue.Queue object at 0x7f5fb0030d60>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic object_detector/camera_1/scan, <queue.Queue object at 0x7f5fb003f9a0>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/object_detector/scan, <bound method AbstractObjectDetector.handle_stop_scan of <viseron.components.darknet.object_detector.ObjectDetector object at 0x7f5fb003fd30>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method AbstractObjectDetector.stop of <viseron.components.darknet.object_detector.ObjectDetector object at 0x7f5fb003fd30>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/objects, <bound method ObjectDetectedBinarySensor.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoV object at 0x7f5fb003ff10>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Object Detected from component darknet
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensor.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoV object at 0x7f5fb003ff10>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_object_detected to state: off, attributes {'name': 'Front Door Object Detected', 'domain': 'binary_sensor', 'count': 0, 'objects': []}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Object Detector FPS from component darknet
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_object_detector_fps to state: 0, attributes {'name': 'Front Door Object Detector FPS', 'domain': 'sensor', 'preprocessor_fps': 0, 'inference_fps': 0, 'theoretical_max_fps': 0}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.core] - Registering domain object_detector with identifier camera_1
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain object_detector for component darknet with identifier camera_1 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.nvr.nvr.camera_1] - Initializing NVR for camera Front Door
[2023-05-04 13:46:15] [INFO    ] [viseron.components.nvr.nvr.camera_1] - Motion detector is disabled
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Face Detected Keith from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic object_detector/camera_1/result, <queue.Queue object at 0x7f5fb00808b0>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/detected/keith, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0105610>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/expired/keith, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0105610>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_face_detected_keith to state: off, attributes {'name': 'Front Door Face Detected Keith', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Face Detected Lorri from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/detected/lorri, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0049310>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/expired/lorri, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0049310>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_face_detected_lorri to state: off, attributes {'name': 'Front Door Face Detected Lorri', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Face Detected Leah from component compreface
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/detected/leah, <bound method FaceDetectionBinarySensor.face_detected of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0049cd0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/face/expired/leah, <bound method FaceDetectionBinarySensor.face_expired of <viseron.domains.face_recognition.binary_sensor.FaceDetectionBinarySensor object at 0x7f5fb0049cd0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_face_detected_leah to state: off, attributes {'name': 'Front Door Face Detected Leah', 'domain': 'binary_sensor'}
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain face_recognition for component compreface with identifier camera_1 took 0.0 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic camera_1/camera/frame_bytes, <queue.Queue object at 0x7f5fb0054970>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(<viseron.components.nvr.nvr.NVR object at 0x7f5fb006ec70>, initial)> in the watchdog
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.nvr.nvr.camera_1] - Waiting for first frame
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Adding entity Front Door Operation State from component nvr

[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/camera_1/nvr/operation_state, <bound method OperationStateSensor.handle_event of <viseron.components.nvr.sensor.OperationStateSensor object at 0x7f5fb00808e0>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_operation_state to state: unknown, attributes {'name': 'Front Door Operation State', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method NVR.stop of <viseron.components.nvr.nvr.NVR object at 0x7f5fb006ec70>>
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.camera.camera_1] - Starting capture thread
[2023-05-04 13:46:15] [DEBUG   ] [viseron.watchdog] - Registering <RestartableThread(viseron.camera.camera_1, initial daemon)> in the watchdog
[2023-05-04 13:46:15] [DEBUG   ] [viseron.components.ffmpeg.stream.camera_1] - FFmpeg decoder command: ffmpeg_camera_1 -hide_banner -loglevel error -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -timeout 5000000 -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -c:v hevc -rtsp_transport tcp -i rtsp://*****:*****@10.0.0.237:554/user=admin_password=1bpcecDK_channel=0_stream=0&onvif=0.sdp?real_stream -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac /segments/camera_1/%Y%m%d%H%M%S.mp4 -f rawvideo -pix_fmt nv12 pipe:1
[2023-05-04 13:46:15] [INFO    ] [viseron.components.nvr.nvr.camera_1] - NVR for camera Front Door initialized
[2023-05-04 13:46:15] [INFO    ] [viseron.components] - Setup of domain nvr for component nvr with identifier camera_1 took 0.0 seconds
[2023-05-04 13:46:15] [INFO    ] [viseron.core] - Viseron initialized in 1.5 seconds
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_operation_state to state: idle, attributes {'name': 'Front Door Operation State', 'domain': 'sensor'}
[2023-05-04 13:46:15] [DEBUG   ] [viseron.states] - Setting state of toggle.camera_1_connection to state: on, attributes {'name': 'Front Door Connection', 'domain': 'toggle'}
[2023-05-04 13:46:16] [DEBUG   ] [viseron.states] - Setting state of sensor.camera_1_operation_state to state: scanning_for_objects, attributes {'name': 'Front Door Operation State', 'domain': 'sensor'}
[2023-05-04 13:46:16] [DEBUG   ] [viseron.components.webserver.websocket_api] - WebSocket opened
[2023-05-04 13:46:16] [DEBUG   ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"domain/registered/camera","command_id":1}
[2023-05-04 13:46:16] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/domain/registered/camera, <function subscribe_event.<locals>.forward_event at 0x7f5fb0027ca0>
[2023-05-04 13:46:16] [DEBUG   ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"*/recorder/complete","command_id":2}
[2023-05-04 13:46:16] [DEBUG   ] [viseron.components.data_stream] - Subscribing to data topic event/*/recorder/complete, <function subscribe_event.<locals>.forward_event at 0x7f5fb0027790>
[2023-05-04 13:46:18] [ERROR   ] [viseron.components.ffmpeg.stream.camera_1] - [hevc @ 0x560d09a52a40] Could not find ref with POC 1
[2023-05-04 13:46:18] [DEBUG   ] [viseron.states] - Setting state of binary_sensor.camera_1_connected to state: on, attributes {'name': 'Front Door Connected', 'domain': 'binary_sensor'}

Dvalin21 avatar May 04 '23 18:05 Dvalin21

Oh and I believe you had asked on reddit about using darknet with AMD GPU and CPU? I'm running AMD RX 5500XT GPU and AMD Ryzen 5 3600 CPU

Dvalin21 avatar May 04 '23 19:05 Dvalin21

To reduce the false positivies you can increase the confidence and set the min/max heights to filter out unreasonable small or large objects

roflcoopter avatar May 05 '23 09:05 roflcoopter