viseron
viseron copied to clipboard
Unable to get anything to trigger record.
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.