Local realtime person detection for RTSP cameras

And be sure to set rtsp authentication to digest/basic.

Fock, wil I ever get this stable?

I have a coral but to no avial… I cant see (dont know where to look and never seen a message no tpu detected fallling back to cpu) it does not use coral usb…

I tried:

detectors:
  coral:
    type: edgetpu
    device: 'usb3:2'
detectors:
  coral:
    type: edgetpu
    device: usb
detectors:
  coral:
    type: edgetpu
    device: 'usb0'

This is the device in the ubuntu os:
root@frigate:/etc/frigate/config# lsusb

Bus 003 Device 002: ID 18d1:9302 Google Inc.
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

How can I be sure this coral is used?

I get this errors:

root@frigate:/etc/frigate/config# docker attach 8facad07ebb2
frigate.http                   DEBUG   : Received mqtt message on frigate200/stats.
frigate.events                 WARNING : More than 90% of the cache is used.
frigate.events                 WARNING : Consider increasing space available at /tmp/cache or reducing max_seconds in your clips config.
frigate.events                 WARNING : Proactively cleaning up the cache...
frigate.events                 WARNING : More than 90% of the cache is used.
frigate.events                 WARNING : Consider increasing space available at /tmp/cache or reducing max_seconds in your clips config.
frigate.events                 WARNING : Proactively cleaning up the cache...
frigate.video                  INFO    : schuurachter: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : schuurachter: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : voordeur: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : voordeur: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : terras: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : terras: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : parkeerplaats: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : parkeerplaats: ffmpeg process is not running. exiting capture thread...
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d6447a0140] moov atom not found
/tmp/cache/parkeerplaats-20210505135854.mp4: Invalid data found when processing input
frigate.events                 INFO    : bad file: parkeerplaats-20210505135854.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55bfd1aa6140] moov atom not found
/tmp/cache/terras-20210505135854.mp4: Invalid data found when processing input
frigate.events                 INFO    : bad file: terras-20210505135854.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55fd53f23140] moov atom not found
/tmp/cache/voordeur-20210505135853.mp4: Invalid data found when processing input
frigate.events                 INFO    : bad file: voordeur-20210505135853.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55569f3dd140] moov atom not found
/tmp/cache/schuurachter-20210505135853.mp4: Invalid data found when processing input
frigate.events                 INFO    : bad file: schuurachter-20210505135853.mp4
frigate.events                 WARNING : More than 90% of the cache is used.
frigate.events                 WARNING : Consider increasing space available at /tmp/cache or reducing max_seconds in your clips config.
frigate.events                 WARNING : Proactively cleaning up the cache...
ffmpeg.schuurachter.detect     ERROR   : [swscaler @ 0x55ab9896b540] deprecated pixel format used, make sure you did set range correctly
ffmpeg.schuurachter.detect     ERROR   : av_interleaved_write_frame(): No space left on device
ffmpeg.schuurachter.detect     ERROR   : [segment @ 0x55ab987e6640] Failure occurred when ending segment '/tmp/cache/schuurachter-20210505135853.mp4'
ffmpeg.schuurachter.detect     ERROR   : Error writing trailer of /tmp/cache/schuurachter-%Y%m%d%H%M%S.mp4: No space left on device
ffmpeg.parkeerplaats.detect    ERROR   : [swscaler @ 0x55d160396b80] deprecated pixel format used, make sure you did set range correctly
ffmpeg.parkeerplaats.detect    ERROR   : av_interleaved_write_frame(): No space left on device
ffmpeg.parkeerplaats.detect    ERROR   : [segment @ 0x55d1601f2c40] Failure occurred when ending segment '/tmp/cache/parkeerplaats-20210505135854.mp4'
ffmpeg.parkeerplaats.detect    ERROR   : Error writing trailer of /tmp/cache/parkeerplaats-%Y%m%d%H%M%S.mp4: No space left on device
ffmpeg.terras.detect           ERROR   : [swscaler @ 0x5576e4db6f80] deprecated pixel format used, make sure you did set range correctly
ffmpeg.terras.detect           ERROR   : av_interleaved_write_frame(): No space left on device
ffmpeg.terras.detect           ERROR   : [segment @ 0x5576e4162000] Failure occurred when ending segment '/tmp/cache/terras-20210505135854.mp4'
ffmpeg.terras.detect           ERROR   : Error writing trailer of /tmp/cache/terras-%Y%m%d%H%M%S.mp4: No space left on device
ffmpeg.voordeur.detect         ERROR   : [segment @ 0x55db40a8cc40] 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
ffmpeg.voordeur.detect         ERROR   : [segment @ 0x55db40a8cc40] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
ffmpeg.voordeur.detect         ERROR   : [swscaler @ 0x55db409b8340] deprecated pixel format used, make sure you did set range correctly
ffmpeg.voordeur.detect         ERROR   : av_interleaved_write_frame(): No space left on device
ffmpeg.voordeur.detect         ERROR   : [segment @ 0x55db40a8cc40] Failure occurred when ending segment '/tmp/cache/voordeur-20210505135853.mp4'
ffmpeg.voordeur.detect         ERROR   : Error writing trailer of /tmp/cache/voordeur-%Y%m%d%H%M%S.mp4: No space left on device

how to solve?

@karldonteljames
I actually added the hardware acceleration when I couldn’t get the display working the first time
I’ve removed the h/w acceleration lines and it’s still the same issue
Here’s the log btw, I forgot to add it on my previous post

frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...
ffmpeg.backyard.detect         ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.backyard.rtmp           ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.backyard              INFO    : Terminating the existing ffmpeg process...
watchdog.backyard              INFO    : Waiting for ffmpeg to exit gracefully...
ffmpeg.back_lawn.detect        ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
ffmpeg.back_lawn.rtmp          ERROR   : rtsp://user:[email protected]:554/Streaming/channels/102/: Invalid data found when processing input
watchdog.back_lawn             INFO    : Terminating the existing ffmpeg process...
watchdog.back_lawn             INFO    : Waiting for ffmpeg to exit gracefully...
frigate.video                  INFO    : backyard: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : backyard: ffmpeg process is not running. exiting capture thread...
frigate.video                  INFO    : back_lawn: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
frigate.video                  INFO    : back_lawn: ffmpeg process is not running. exiting capture thread...

On my hikvision camera settings, it’s on basic.

For me it was this url and working fine on streaming on vlc

@ukro

Mine’s already set to H264, I never did use H265 or the + codec on the camera settings. Using the subchannel since I don’t really wanna put too much strain on the cpu yet.

@NoFace
I’ve got a similar question, just that my mac mini (running on debian) doesn’t have any nvme slots
Would something like nvme to sata adaptor would work? Just throwing it out there
There’s still no coral usb stock at my place but plenty of those m.2 coral boards

I have portainer and when looking at container log in portainer UI I will get “TPU found” and “attempting to load TPU” message when working and TPU error message when not.

Your logs show many Cache error messages so this may be bigger issue for you. You should maybe look at increasing cache size.

How would I need to do that?

Ok, got the TPU message… although my NUC CPU goes wild (fan) after restart of container and during the time it “does” work (before crashing).

frigate.edgetpu                INFO    : Attempting to load TPU as usb
frigate.edgetpu                INFO    : TPU found

@sender

reduce input image size and that may resolve your remaining issues.
after try reduce size you can look at increase memory if issues remain

Sorry, answered in the other thread…

Where did you stick the Coral inside of the Argon case? I won’t get my Coral for a few weeks but would be interested in how you snuck it in there and how you cabled the USB.

Jason

Thank You! when i originally set up home assistant on a raspberry pie i tested frigate as a home assistant custom component and was able to use all the sensor info. if i do it as a separate docker container in unraid will i still be able to get the frigate sensors and controls in home assistant? and if i want to add it as a ha addon and not as a separate docker will it be able to use the mini pcie coral?

Yes, but you’ll still need to add the Frigate custom component for that. The custom component provides the integration with Home Assistant. The docker container is the equivalent of the add-on, i.e., the main instance of Frigate.

You would have to pass through the PCI device to the virtual machine. I haven’t tried it myself. It would probably work but based on other posts here and in the instructions, using a Coral with a VM adds a lot of latency. Honestly, if you’ve ever set up another Docker container in Unraid, it’s almost as simply as using the add on.

In theory it should work, adapters for mac mini are available, but it has to be tested.
I assume, that it should be also possible to use usb external enclosure for m.2 b+m key version, in case usb versions are not available and it might be also cheaper dependent on the enclosure price.

Hello Folks, Trying run Frigate on a Synology DS415+.
It seems I have a few issues, but first is that I can’t seem to get Frigate find the Coral TPU.
Can you have a look and tell me what I might be doing wrong?
@scstraus , looks like you are running on a Synology as well, maybe you can spot my mistake easily =)

Logs:

2021-05-06 14:37:17 stdout * Starting nginx nginx
2021-05-06 14:37:17 stdout …done.
2021-05-06 14:37:20 stderr Starting migrations
2021-05-06 14:37:20 stderr peewee_migrate INFO : Starting migrations
2021-05-06 14:37:20 stderr There is nothing to migrate
2021-05-06 14:37:20 stderr peewee_migrate INFO : There is nothing to migrate
2021-05-06 14:37:20 stderr frigate.mqtt INFO : MQTT connected
2021-05-06 14:37:20 stderr detector.coral INFO : Starting detection process: 33
2021-05-06 14:37:20 stderr frigate.edgetpu INFO : Attempting to load TPU as usb
2021-05-06 14:37:20 stderr frigate.app INFO : Camera processor started for back: 36
2021-05-06 14:37:20 stderr frigate.app INFO : Capture process started for back: 37
2021-05-06 14:37:20 stderr frigate.edgetpu INFO : No EdgeTPU detected.
2021-05-06 14:37:20 stderr Process detector:coral:
2021-05-06 14:37:20 stderr Traceback (most recent call last):
2021-05-06 14:37:20 stderr File /usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py, line 152, in load_delegate
2021-05-06 14:37:20 stderr delegate = Delegate(library, options)
2021-05-06 14:37:20 stderr File /usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py, line 111, in init
2021-05-06 14:37:20 stderr raise ValueError(capture.message)
2021-05-06 14:37:20 stderr ValueError
2021-05-06 14:37:20 stderr
2021-05-06 14:37:20 stderr During handling of the above exception, another exception occurred:
2021-05-06 14:37:20 stderr
2021-05-06 14:37:20 stderr Traceback (most recent call last):
2021-05-06 14:37:20 stderr File /usr/lib/python3.8/multiprocessing/process.py, line 315, in _bootstrap
2021-05-06 14:37:20 stderr self.run()
2021-05-06 14:37:20 stderr File /usr/lib/python3.8/multiprocessing/process.py, line 108, in run
2021-05-06 14:37:20 stderr self._target(*self._args, **self._kwargs)
2021-05-06 14:37:20 stderr File /opt/frigate/frigate/edgetpu.py, line 124, in run_detector
2021-05-06 14:37:20 stderr object_detector = LocalObjectDetector(tf_device=tf_device, num_threads=num_threads)
2021-05-06 14:37:20 stderr File /opt/frigate/frigate/edgetpu.py, line 63, in init
2021-05-06 14:37:20 stderr edge_tpu_delegate = load_delegate(‘libedgetpu.so.1.0’, device_config)
2021-05-06 14:37:20 stderr File /usr/local/lib/python3.8/dist-packages/tflite_runtime/interpreter.py, line 154, in load_delegate
2021-05-06 14:37:20 stderr raise ValueError(‘Failed to load delegate from {}\n{}’.format(
2021-05-06 14:37:20 stderr ValueError: Failed to load delegate from libedgetpu.so.1.0
2021-05-06 14:37:20 stderr
2021-05-06 14:37:20 stderr frigate.video INFO : back: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures
2021-05-06 14:37:20 stderr frigate.video INFO : back: ffmpeg process is not running. exiting capture thread…
2021-05-06 14:37:30 stderr ffmpeg.back.detect ERROR : Option rw_timeout not found.
2021-05-06 14:37:30 stderr frigate.video INFO : back: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

Docker run:

docker run -d \
  --name frigate \
  --privileged \
  --shm-size=1g \
  --mount type=tmpfs,target=/tmp/cache,tmpfs-size=1000000000 \
  --device /dev/bus/usb:/dev/bus/usb \
  -v /volume1/docker/frigate/config.yml:/config/config.yml \
  -v /etc/localtime:/etc/localtime:ro \
  -v /volume1/docker/frigate/media:/media/frigate \
  -p 25000:5000 \
  -p 1935:1935 \
  -e FRIGATE_RTSP_PASSWORD=******** \
  blakeblackshear/frigate:stable-amd64

and config:

mqtt:
  host: ********
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: ********
  password: ********
  stats_interval: 60
detectors:
  coral:
    type: edgetpu
    device: usb
cameras:
  back:
    ffmpeg:
      inputs:
        - path: rtsp://********:********@********:554/h264Preview_01_sub
          roles:
            - detect
            - rtmp
      input_args:
        - -avoid_negative_ts
        - make_zero
        - -fflags
        - nobuffer
        - -flags
        - low_delay
        - -strict
        - experimental
        - -fflags
        - +genpts+discardcorrupt
        - -rw_timeout
        - '5000000'
        - -use_wallclock_as_timestamps
        - '1'
    width: 640
    height: 480
    fps: 7

from lsusb I know Coral is in 3-1

ash-4.3# lsusb
|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (ehci_hcd 0000:00:16.0) hub
  |__1-1         8087:07db:0002 09  2.00  480MBit/s 0mA 1IF  ( ffffffd1ffffffb2ffffffdbffffffad) hub
    |__1-1.1     f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 65004B7A2BB76D65)
|__usb2          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
  |__2-2         2109:2815:0704 09  2.10  480MBit/s 0mA 1IF  (VIA Labs, Inc.          USB2.0 Hub              ffffff94ffffffb4ffffff94ffffffb0) hub
    |__2-2.1     0451:16a8:0009 02  2.00   12MBit/s 50mA 2IFs (Texas Instruments TI CC2531 USB CDC __0X00124B0014D9AA5F)
    |__2-2.2     0a12:0001:8891 e0  2.00   12MBit/s 100mA 2IFs ( ffffff84ffffffb5fffffff4ffffffd4)
    |__2-2.4     0658:0200:0000 02  2.00   12MBit/s 100mA 2IFs ( ffffffd1ffffffb2ffffffdbffffffa0)
|__usb3          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.105 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
  |__3-1         1a6e:089a:0100 00  3.10 5000MBit/s 896mA 1IF  ( ffffffd1ffffffb2ffffffdbffffffa1)
  |__3-2         2109:0815:0704 09  3.20 5000MBit/s 0mA 1IF  (VIA Labs, Inc.          USB3.0 Hub              ffffff94ffffffb4ffffff94ffffffb4) hub

Thanks for the help in advance!

Hello,
I’ve been trying to follow this thread since it started. I finally got a PC to run Frigate on, but it looks like a bad time to buy a Coral. I’m probably going to try to set it up before I get the Coral.

My question is about which Coral to buy…
The computer I have to run Frigate is a Dell OptiPlex 9020M. The “M” is for micro case size.
It has an M2 B&M slot, but it is tucked in between the motherboard and the SATA drive.
My concern is that there would be little air flow for cooling. and there doesn’t appear to be much heat sinking on the M2 devices.
Would I be better off with the USB device?

Thanks,
-Mike

@MikeSherman i have a dell optiplex 9020m and I tried the coral a+e m2 card in the wifi slot and it worked fine under unraid. I did that as a test before moving it to the wifi slot in my more powerful optiplex 7060.
No issues with heat as far as I can tell.

The a+e card was cheaper than usb and is actually available right now.

Both optiplex machines have SSD in the b+m m2 slot.

1 Like

You can also get Home Assistant to keep an eye on the Coral PCI temps. Mine hit 57.8C today, under heavy load inside a case with an room temp of about 30c. They begin to throttle performance at 85C and shut down at crazy temps (105C or so).

I feel that the USB Corals actually get hotter than the PCI Corals, despite having a heatsink and running in restricted performance mode. The case can certainly feel toasty to the touch.

So you’ll probably be fine with the M.2 Coral… perhaps better off.

That’s really good information! I didn’t know an a+e card would work. I’ll order one.

Thanks!
-Mike

1 Like

I have recently migrated to portainer on my synology using this guide and couldn’t be happier. Works so much better than the built in docker management (which won’t really allow you to run frigate right). If you want to do that, I can share my docker compose. Otherwise you have to run it from the command line. I think the last example I have from when I did that was v5, but maybe I’ve done it with v7 too.