Open krzysztofkuczek opened 1 year ago
Hi, I'm trying to run visioner on dell terminal equipped with AMD G-T48E Processor CPU. I use following compose file to create docker container
version: "2.4" services: viseron: image: roflcoopter/viseron:latest container_name: viseron privileged: true volumes: - ./recordings:/recordings - ./config:/config - /etc/localtime:/etc/localtime:ro ports: - 8888:8888 devices: - /dev/bus/usb:/dev/bus/usb
Then example configuration grabbed from https://viseron.netlify.app/docs/documentation/configuration The google edge tpu is connected via USB but as i understood according to the configuration it's not in use.
The docker starts correctly, I can even see partially loaded web UI with pictures from 2 of 3 cameras, but it crashing. The log:
[2023-06-22 22:42:33] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/nvr/motion_detector/scan, <bound method AbstractMotionDetectorScanner.handle_stop_scan of <viseron.components.mog2.motion_detector.MotionDetector object at 0x7f51f804ce20>> [2023-06-22 22:42:33] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method AbstractMotionDetectorScanner.stop of <viseron.components.mog2.motion_detector.MotionDetector object at 0x7f51f804ce20>> [2023-06-22 22:42:33] [DEBUG ] [viseron.core] - Registering domain motion_detector with identifier viseron_camera2 [2023-06-22 22:42:33] [INFO ] [viseron.components] - Setup of domain motion_detector for component mog2 with identifier viseron_camera2 took 0.0 seconds [2023-06-22 22:42:33] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/objects, <bound method ObjectDetectedBinarySensorLabel.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5218000a90>> [2023-06-22 22:42:33] [DEBUG ] [viseron.states] - Adding entity Camera 2 Object Detected Person from component darknet [2023-06-22 22:42:33] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensorLabel.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoVLabel object at 0x7f5218000a90>> [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_object_detected_person to state: off, attributes {'name': 'Camera 2 Object Detected Person', 'domain': 'binary_sensor', 'count': 0, 'objects': []} [2023-06-22 22:42:34] [DEBUG ] [viseron.watchdog] - Registering <RestartableThread(viseron_camera2.object_detection, initial daemon)> in the watchdog [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic object_detector/viseron_camera2/scan, <queue.Queue object at 0x7f5218000a30> [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/nvr/object_detector/scan, <bound method AbstractObjectDetector.handle_stop_scan of <viseron.components.darknet.object_detector.ObjectDetector object at 0x7f52180000a0>> [2023-06-22 22:42:34] [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 0x7f52180000a0>> [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/objects, <bound method ObjectDetectedBinarySensor.handle_event of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoV object at 0x7f5218000b20>> [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Adding entity Camera 2 Object Detected from component darknet [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/nvr/object_detector/scan, <bound method ObjectDetectedBinarySensor.handle_stop_scan of <viseron.domains.object_detector.binary_sensor.ObjectDetectedBinarySensorFoV object at 0x7f5218000b20>> [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_object_detected to state: off, attributes {'name': 'Camera 2 Object Detected', 'domain': 'binary_sensor', 'count': 0, 'objects': []} [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Adding entity Camera 2 Object Detector FPS from component darknet [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera2_object_detector_fps to state: 0, attributes {'name': 'Camera 2 Object Detector FPS', 'domain': 'sensor', 'preprocessor_fps': 0, 'inference_fps': 0, 'theoretical_max_fps': 0} [2023-06-22 22:42:34] [DEBUG ] [viseron.core] - Registering domain object_detector with identifier viseron_camera2 [2023-06-22 22:42:34] [INFO ] [viseron.components] - Setup of domain object_detector for component darknet with identifier viseron_camera2 took 0.0 seconds [2023-06-22 22:42:34] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera2] - Initializing NVR for camera Camera 2 [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic motion_detector/viseron_camera2/result, <queue.Queue object at 0x7f521800b8b0> [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic object_detector/viseron_camera2/result, <queue.Queue object at 0x7f5218000100> [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic viseron_camera2/camera/frame_bytes, <queue.Queue object at 0x7f51d8a77160> [2023-06-22 22:42:34] [DEBUG ] [viseron.watchdog] - Registering <RestartableThread(<viseron.components.nvr.nvr.NVR object at 0x7f521800b850>, initial)> in the watchdog [2023-06-22 22:42:34] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera2] - Waiting for first frame [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Adding entity Camera 2 Operation State from component nvr [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_object_detected_person to state: off, attributes {'name': 'Camera 2 Object Detected Person', 'domain': 'binary_sensor', 'count': 0, 'objects': []} [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/viseron_camera2/nvr/operation_state, <bound method OperationStateSensor.handle_event of <viseron.components.nvr.sensor.OperationStateSensor object at 0x7f51d8a77940>> [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_object_detected to state: off, attributes {'name': 'Camera 2 Object Detected', 'domain': 'binary_sensor', 'count': 0, 'objects': []} [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera2_operation_state to state: unknown, attributes {'name': 'Camera 2 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:34] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic viseron/signal/shutdown, <bound method NVR.stop of <viseron.components.nvr.nvr.NVR object at 0x7f521800b850>> [2023-06-22 22:42:34] [DEBUG ] [viseron.components.ffmpeg.camera.viseron_camera2] - Starting capture thread [2023-06-22 22:42:34] [DEBUG ] [viseron.watchdog] - Registering <RestartableThread(viseron.camera.viseron_camera2, initial daemon)> in the watchdog [2023-06-22 22:42:34] [DEBUG ] [viseron.components.ffmpeg.stream.viseron_camera2] - FFmpeg decoder command: ffmpeg_viseron_camera2 -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 -i https://storatorg.halmstad.se:443/mjpg/video.mjpg -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy /segments/viseron_camera2/%Y%m%d%H%M%S.mp4 -vf fps=1.0 -f rawvideo -pix_fmt nv12 pipe:1 [2023-06-22 22:42:34] [INFO ] [viseron.components.nvr.nvr.viseron_camera2] - NVR for camera Camera 2 initialized [2023-06-22 22:42:34] [INFO ] [viseron.components] - Setup of domain nvr for component nvr with identifier viseron_camera2 took 0.0 seconds [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of toggle.viseron_camera2_connection to state: on, attributes {'name': 'Camera 2 Connection', 'domain': 'toggle'} [2023-06-22 22:42:34] [INFO ] [viseron.core] - Viseron initialized in 3.3 seconds [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera_operation_state to state: scanning_for_objects, attributes {'name': 'Camera 1 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:34] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera3_operation_state to state: scanning_for_motion, attributes {'name': 'Camera 3 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:34] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera] - [mjpeg @ 0x5609d7d46440] No support for codec mjpeg profile 192. [2023-06-22 22:42:34] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera] - [mjpeg @ 0x5609d7d46440] Failed setup for format vaapi: hwaccel initialisation returned error. [2023-06-22 22:42:35] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera3] - [mjpeg @ 0x56481c5fc400] No support for codec mjpeg profile 192. [2023-06-22 22:42:35] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera3] - [mjpeg @ 0x56481c5fc400] Failed setup for format vaapi: hwaccel initialisation returned error. [2023-06-22 22:42:35] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera2_operation_state to state: scanning_for_motion, attributes {'name': 'Camera 2 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:35] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera2] - [mjpeg @ 0x5627f76720c0] No support for codec mjpeg profile 192. [2023-06-22 22:42:35] [ERROR ] [viseron.components.ffmpeg.stream.viseron_camera2] - [mjpeg @ 0x5627f76720c0] Failed setup for format vaapi: hwaccel initialisation returned error. [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - WebSocket opened [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"get_config","command_id":1} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"domain/registered/camera","command_id":2} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"domain/setup/domain_failed/camera/*","command_id":3} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"domain/registered/camera","command_id":4} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"*/recorder/complete","command_id":5} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/domain/registered/camera, <function subscribe_event.<locals>.forward_event at 0x7f522959c0d0> [2023-06-22 22:42:36] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/domain/setup/domain_failed/camera/*, <function subscribe_event.<locals>.forward_event at 0x7f5229e34ca0> [2023-06-22 22:42:36] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/domain/registered/camera, <function subscribe_event.<locals>.forward_event at 0x7f522805d310> [2023-06-22 22:42:36] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/*/recorder/complete, <function subscribe_event.<locals>.forward_event at 0x7f522805d5e0> [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CamerasAPIHandler.get_cameras(*args=[], **kwargs={}, request_arguments={}) [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CamerasAPIHandler.get_failed_cameras(*args=[], **kwargs={}, request_arguments={}) [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_camera(*args=[], **kwargs={'camera_identifier': 'viseron_camera'}, request_arguments={'failed': False}) [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.websocket_api] - Received {"type":"subscribe_event","event":"domain/setup/domain_loaded/camera/*","command_id":6} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_camera(*args=[], **kwargs={'camera_identifier': 'viseron_camera2'}, request_arguments={'failed': False}) [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_camera(*args=[], **kwargs={'camera_identifier': 'viseron_camera3'}, request_arguments={'failed': False}) [2023-06-22 22:42:36] [DEBUG ] [viseron.components.data_stream] - Subscribing to data topic event/domain/setup/domain_loaded/camera/*, <function subscribe_event.<locals>.forward_event at 0x7f5228044820> [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_snapshot(*args=[], **kwargs={'camera_identifier': 'viseron_camera'}, request_arguments={'rand': '1jznu', 'width': 613, 'height': None, 'access_token': *****}) [2023-06-22 22:42:36] [WARNING ] [tornado.access] - 404 GET /api/v1/camera/viseron_camera/snapshot?rand=1jznu&width=613 (192.168.1.121) 5.90ms [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_snapshot(*args=[], **kwargs={'camera_identifier': 'viseron_camera2'}, request_arguments={'rand': 'exc1y', 'width': 613, 'height': None, 'access_token': *****}) [2023-06-22 22:42:36] [WARNING ] [tornado.access] - 404 GET /api/v1/camera/viseron_camera2/snapshot?rand=exc1y&width=613 (192.168.1.121) 5.10ms [2023-06-22 22:42:36] [DEBUG ] [viseron.components.webserver.api.handlers] - Routing to CameraAPIHandler.get_snapshot(*args=[], **kwargs={'camera_identifier': 'viseron_camera3'}, request_arguments={'rand': 'n60xz', 'width': 613, 'height': None, 'access_token': *****}) [2023-06-22 22:42:36] [WARNING ] [tornado.access] - 404 GET /api/v1/camera/viseron_camera3/snapshot?rand=n60xz&width=613 (192.168.1.121) 14.80ms [2023-06-22 22:42:36] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera_connected to state: on, attributes {'name': 'Camera 1 Connected', 'domain': 'binary_sensor'} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera] - First frame received [2023-06-22 22:42:36] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera3_connected to state: on, attributes {'name': 'Camera 3 Connected', 'domain': 'binary_sensor'} [2023-06-22 22:42:36] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera3] - First frame received [2023-06-22 22:42:36] [DEBUG ] [viseron.components.background_subtractor.motion_detector.viseron_camera3] - Max motion area: 0 [2023-06-22 22:42:37] [DEBUG ] [viseron.components.background_subtractor.motion_detector.viseron_camera3] - Max motion area: 0, message repeated 2 times [2023-06-22 22:42:37] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera2] - First frame received [2023-06-22 22:42:37] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_connected to state: on, attributes {'name': 'Camera 2 Connected', 'domain': 'binary_sensor'} [2023-06-22 22:42:37] [DEBUG ] [viseron.components.mog2.motion_detector.viseron_camera2] - Max motion area: 0.99334 [2023-06-22 22:42:37] [DEBUG ] [viseron.components.mog2.motion_detector.viseron_camera2] - Motion detected [2023-06-22 22:42:37] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_motion_detected to state: on, attributes {'name': 'Camera 2 Motion Detected', 'domain': 'binary_sensor'} [2023-06-22 22:42:37] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera2] - Starting object detector [2023-06-22 22:42:37] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera2_operation_state to state: scanning_for_objects, attributes {'name': 'Camera 2 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:38] [DEBUG ] [viseron.components.mog2.motion_detector.viseron_camera2] - Max motion area: 0 [2023-06-22 22:42:38] [DEBUG ] [viseron.components.mog2.motion_detector.viseron_camera2] - Motion stopped [2023-06-22 22:42:38] [DEBUG ] [viseron.states] - Setting state of binary_sensor.viseron_camera2_motion_detected to state: off, attributes {'name': 'Camera 2 Motion Detected', 'domain': 'binary_sensor'} [2023-06-22 22:42:38] [DEBUG ] [viseron.components.background_subtractor.motion_detector.viseron_camera3] - Max motion area: 0 [2023-06-22 22:42:39] [ERROR ] [viseron.components.nvr.nvr.viseron_camera] - Failed to retrieve result for object_detector [2023-06-22 22:42:39] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera] - Frame is 2.3747668266296387 seconds old. Discarding [2023-06-22 22:42:39] [DEBUG ] [viseron.states] - Setting state of sensor.viseron_camera_operation_state to state: error_scanning_frame, attributes {'name': 'Camera 1 Operation State', 'domain': 'sensor'} [2023-06-22 22:42:39] [DEBUG ] [viseron.components.nvr.nvr.viseron_camera] - Frame is 1.1984095573425293 seconds old. Discarding [2023-06-22 22:42:39] [DEBUG ] [viseron.components.background_subtractor.motion_detector.viseron_camera3] - Max motion area: 0 [viseron-finish] Viseron exit code 256 [viseron-finish] Viseron received signal 4 [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] waiting for services. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting.
What can i do? Thank you in advance Kris
Sorry for not responding sooner. What is the architecture of that CPU?
Hi, I'm trying to run visioner on dell terminal equipped with AMD G-T48E Processor CPU. I use following compose file to create docker container
Then example configuration grabbed from https://viseron.netlify.app/docs/documentation/configuration The google edge tpu is connected via USB but as i understood according to the configuration it's not in use.
The docker starts correctly, I can even see partially loaded web UI with pictures from 2 of 3 cameras, but it crashing. The log:
What can i do? Thank you in advance Kris