Frigate stops running

I have noticed a few times now that frigate stops running every few days. I think it has happened 3 or 4 times. I recently added coral to my system. I think this has only happened after that but not sure how long after so might not be related.

This is from the system logs:

This error originated from a custom integration.

Logger: custom_components.frigate
Source: helpers/update_coordinator.py:204
Integration: Frigate (documentation, issues)
First occurred: 5 June 2023 at 07:02:21 (60 occurrences)
Last logged: 13:46:24

Error fetching frigate data:

This is from the add on log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-06-14 12:28:59] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
[2023-06-14 12:28:59] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2023-06-14 12:28:59] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2023-06-14 12:28:59] peewee_migrate                 INFO    : There is nothing to migrate
[2023-06-14 12:28:59] detector.coral                 INFO    : Starting detection process: 224
[2023-06-14 12:28:59] frigate.app                    INFO    : Output process started: 226
[2023-06-14 12:28:59] ws4py                          INFO    : Using epoll
[2023-06-14 12:28:59] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2023-06-14 12:28:59] frigate.app                    INFO    : Camera processor started for front_right: 231
[2023-06-14 12:29:02] frigate.edgetpu                INFO    : TPU found
[2023-06-14 12:28:59] frigate.app                    INFO    : Camera processor started for front_door: 233
[2023-06-14 12:28:59] frigate.app                    INFO    : Camera processor started for front_left: 235
[2023-06-14 12:28:59] frigate.app                    INFO    : Camera processor started for back_door: 240
[2023-06-14 12:28:59] frigate.app                    INFO    : Capture process started for front_right: 241
[2023-06-14 12:28:59] frigate.app                    INFO    : Capture process started for front_door: 245
[2023-06-14 12:28:59] frigate.app                    INFO    : Capture process started for front_left: 255
[2023-06-14 12:28:59] frigate.app                    INFO    : Capture process started for back_door: 260
[2023-06-14 12:28:59] frigate.mqtt                   INFO    : Turning off snapshots for back_door via mqtt
[2023-06-14 12:29:00] ws4py                          INFO    : Using epoll
F driver/usb/usb_driver.cc:406] HandleEvent failed. USB transfer error 1 [LibUsbDataInCallback]
Fatal Python error: Aborted
Thread 0x00007f2ccd1a9700 (most recent call first):
  File "/usr/lib/python3.9/threading.py", line 312 in wait
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 233 in _feed
  File "/usr/lib/python3.9/threading.py", line 892 in run
  File "/usr/lib/python3.9/threading.py", line 954 in _bootstrap_inner
  File "/usr/lib/python3.9/threading.py", line 912 in _bootstrap
Thread 0x00007f2ce7901740 (most recent call first):
File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 833 in invoke
  File "/opt/frigate/frigate/edgetpu.py", line 83 in detect_raw
  File "/opt/frigate/frigate/edgetpu.py", line 159 in run_detector
  File "/usr/lib/python3.9/multiprocessing/process.py", line 108 in run
  File "/usr/lib/python3.9/multiprocessing/process.py", line 315 in _bootstrap
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 71 in _launch
  File "/usr/lib/python3.9/multiprocessing/popen_fork.py", line 19 in __init__
  File "/usr/lib/python3.9/multiprocessing/context.py", line 277 in _Popen
  File "/usr/lib/python3.9/multiprocessing/context.py", line 224 in _Popen
  File "/usr/lib/python3.9/multiprocessing/process.py", line 121 in start
  File "/opt/frigate/frigate/edgetpu.py", line 220 in start_or_restart
  File "/opt/frigate/frigate/edgetpu.py", line 189 in __init__
  File "/opt/frigate/frigate/app.py", line 217 in start_detectors
  File "/opt/frigate/frigate/app.py", line 360 in start
  File "/opt/frigate/frigate/__main__.py", line 16 in <module>
File "/usr/lib/python3.9/runpy.py", line 87 in _run_code
  File "/usr/lib/python3.9/runpy.py", line 197 in _run_module_as_main
[2023-06-14 13:46:10] frigate.watchdog               INFO    : Detection appears to have stopped. Exiting frigate...
[2023-06-14 13:46:10] frigate.app                    INFO    : Stopping...
[2023-06-14 13:46:10] ws4py                          INFO    : Closing all websockets with [1001] 'Server is shutting down'
[2023-06-14 13:46:10] frigate.events                 INFO    : Exiting event cleanup...
[2023-06-14 13:46:10] frigate.record                 INFO    : Exiting recording cleanup...
[2023-06-14 13:46:10] frigate.watchdog               INFO    : Exiting watchdog...
[2023-06-14 13:46:10] frigate.stats                  INFO    : Exiting watchdog...
[2023-06-14 13:46:10] frigate.record                 INFO    : Exiting recording maintenance...
[2023-06-14 13:46:10] frigate.object_processing      INFO    : Exiting object processor...
[2023-06-14 13:46:19] frigate.events                 INFO    : Exiting event processor...
[2023-06-14 13:46:19] peewee.sqliteq                 INFO    : writer received shutdown request, exiting.
[2023-06-14 13:46:19] root                           INFO    : Waiting for detection process to exit gracefully...

If I restart the add on it works ok, following from the log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2023-06-14 23:27:15] frigate.app                    INFO    : Starting Frigate (0.11.1-2eada21)
[2023-06-14 23:27:15] frigate.app                    INFO    : Creating directory: /tmp/cache
Starting migrations
[2023-06-14 23:27:15] peewee_migrate                 INFO    : Starting migrations
There is nothing to migrate
[2023-06-14 23:27:15] peewee_migrate                 INFO    : There is nothing to migrate
[2023-06-14 23:27:15] detector.coral                 INFO    : Starting detection process: 224
[2023-06-14 23:27:15] frigate.app                    INFO    : Output process started: 226
[2023-06-14 23:27:15] ws4py                          INFO    : Using epoll
[2023-06-14 23:27:15] frigate.app                    INFO    : Camera processor started for front_right: 229
[2023-06-14 23:27:15] frigate.edgetpu                INFO    : Attempting to load TPU as usb
[2023-06-14 23:27:15] frigate.app                    INFO    : Camera processor started for front_door: 233
[2023-06-14 23:27:19] frigate.edgetpu                INFO    : TPU found
[2023-06-14 23:27:15] frigate.app                    INFO    : Camera processor started for front_left: 235
[2023-06-14 23:27:15] frigate.mqtt                   INFO    : Turning off snapshots for back_door via mqtt
[2023-06-14 23:27:15] frigate.app                    INFO    : Camera processor started for back_door: 238
[2023-06-14 23:27:15] frigate.app                    INFO    : Capture process started for front_right: 239
[2023-06-14 23:27:15] frigate.app                    INFO    : Capture process started for front_door: 243
[2023-06-14 23:27:15] frigate.app                    INFO    : Capture process started for front_left: 247
[2023-06-14 23:27:15] frigate.app                    INFO    : Capture process started for back_door: 253
[2023-06-14 23:27:16] ws4py                          INFO    : Using epoll

Any help to resolve this greatly appreciated

Yes, it is an error with the coral. Most likely the coral is not getting enough power, frigate docs recommend using a powered USB hub

Thanks for that, will try a hub

So I added a usb hub. Now I’ve been getting different errors. When I restart frigate it wil run for a few days or a week then I get this again.

[2023-07-06 15:22:52] watchdog.front_right           INFO    : No frames received from front_right in 20 seconds. Exiting ffmpeg...
[2023-07-06 15:22:52] watchdog.front_right           INFO    : Waiting for ffmpeg to exit gracefully...
[2023-07-06 15:22:52] frigate.video                  ERROR   : front_right: Unable to read frames from ffmpeg process.
[2023-07-06 15:22:52] frigate.video                  ERROR   : front_right: ffmpeg process is not running. exiting capture thread...
[2023-07-06 15:23:02] watchdog.front_right           ERROR   : Ffmpeg process crashed unexpectedly for front_right.
[2023-07-06 15:23:02] watchdog.front_right           ERROR   : The following ffmpeg logs include the last 100 lines prior to exit.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88422d40] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88cc9600] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88ceab80] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d0c100] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d2dac0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d4f280] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d70c40] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d92400] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88db3dc0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88422d40] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88cc39c0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88ce7980] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d2c840] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d50bc0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d0fec0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d76b80] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d99180] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88dba940] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88cbf280] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88ccc240] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88d086c0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88ce9700] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88d2f400] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88d533c0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88d76ac0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88d99180] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88422780] [swscaler @ 0x564a88dba940] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88422780] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88cc3680] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d08e80] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88ce98c0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d2f400] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d533c0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d76dc0] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88d99240] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [swscaler @ 0x564a88414f00] [swscaler @ 0x564a88dbac00] deprecated pixel format used, make sure you did set range correctly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : rtsp://admin:[email protected]/Streaming/Channels/102: Connection timed out
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [flv @ 0x564a884425c0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962135, current: 658962135; changing to 658962136. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962136, current: 658962136; changing to 658962137. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962154, current: 658962154; changing to 658962155. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962161, current: 658962161; changing to 658962162. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962434, current: 658962434; changing to 658962435. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962435, current: 658962435; changing to 658962436. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962472, current: 658962472; changing to 658962473. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962473, current: 658962473; changing to 658962474. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962474, current: 658962474; changing to 658962475. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962475, current: 658962475; changing to 658962476. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962476, current: 658962476; changing to 658962477. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962477, current: 658962477; changing to 658962478. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962478, current: 658962478; changing to 658962479. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962479, current: 658962479; changing to 658962480. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962480, current: 658962480; changing to 658962481. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962481, current: 658962480; changing to 658962482. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962482, current: 658962481; changing to 658962483. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962483, current: 658962482; changing to 658962484. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962484, current: 658962483; changing to 658962485. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962485, current: 658962484; changing to 658962486. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962486, current: 658962485; changing to 658962487. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962487, current: 658962486; changing to 658962488. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962488, current: 658962486; changing to 658962489. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962489, current: 658962487; changing to 658962490. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962490, current: 658962488; changing to 658962491. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962491, current: 658962489; changing to 658962492. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962492, current: 658962490; changing to 658962493. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962493, current: 658962491; changing to 658962494. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962494, current: 658962492; changing to 658962495. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962495, current: 658962493; changing to 658962496. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962496, current: 658962493; changing to 658962497. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962497, current: 658962494; changing to 658962498. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962498, current: 658962495; changing to 658962499. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962499, current: 658962496; changing to 658962500. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962500, current: 658962497; changing to 658962501. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962501, current: 658962498; changing to 658962502. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962502, current: 658962498; changing to 658962503. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962503, current: 658962499; changing to 658962504. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962504, current: 658962500; changing to 658962505. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962505, current: 658962501; changing to 658962506. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962506, current: 658962502; changing to 658962507. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962507, current: 658962503; changing to 658962508. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962508, current: 658962504; changing to 658962509. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962509, current: 658962505; changing to 658962510. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962510, current: 658962505; changing to 658962511. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962511, current: 658962506; changing to 658962512. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962512, current: 658962507; changing to 658962513. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962513, current: 658962508; changing to 658962514. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962514, current: 658962509; changing to 658962515. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962515, current: 658962510; changing to 658962516. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962516, current: 658962511; changing to 658962517. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962517, current: 658962511; changing to 658962518. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [segment @ 0x564a88444480] Non-monotonous DTS in output stream 0:0; previous: 658962518, current: 658962512; changing to 658962519. This may result in incorrect timestamps in the output file.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [flv @ 0x564a884425c0] Failed to update header with correct duration.
[2023-07-06 15:23:02] ffmpeg.front_right.detect      ERROR   : [flv @ 0x564a884425c0] Failed to update header with correct filesize.

Again any help greatly appreciated

A few things here:

rtsp://admin:[email protected]/Streaming/Channels/102: Connection timed out

your camera timed out its connection

[flv @ 0x564a884425c0] Failed to update header with correct duration.

looks like you are still using rtmp, recommendation is remove that and start using go2rtc

Can you please share the model # for the USB hub that you are using?
Is it working well?
Thanks!