[SUPPORT] blakeblackshear - Frigate


Recommended Posts

ich777 thanks for the confirmation . I  had read in various post that you could only use 1 lane , however i took a chance as the other  unit were out of stock at the time and some thing is better than nothing  but still struggling  to get it right. I will  get there  in the end. At one point i had it working in  Proxmox for a while  unRaid is a friendlier system for a newbie. 

 

So the edgetpu  will work with 1 lane in a m2  slot  as it is found by the software?

 

 thanks again

Screenshot 2021-11-19 at 07.40.44.png

Link to comment

Speaking of the above.

Can someone recommend me a Coral for PCIe or and adapter? 

Which works well with what adapter? 

 

I unfortunately dont have any m.2 slots on my mobo, but would really like to use a Coral. 

Was thinking of some M.2 adapter but I got really lost as to what would actually work.

Link to comment
4 minutes ago, mikey6283 said:

So the edgetpu  will work with 1 lane in a m2  slot  as it is found by the software?

Exactly. Only one Edge TPU will work because only one lane is available, if you got two lanes both TPUs will work.

 

Please keep in mind you have to come up with a way to cool the TPU(s) since they are really hot in your case if they are currently idling.

Link to comment
Just now, ich777 said:

Are you owning the real M.2 (only one TPU) or the Dual Edge TPU (two TPUs) or better speaking how is it keyed?

Currently I dont have any of them. 

I was looking the last couple of days but got lost in the woods. 

I was thinking maybe getting a dual m.2 to pcie adapter with 2x coral m.2's but honestly no idea. 

 

I have 5 cams maybe more in the future if this helps, and i'd love to get into face detection. 

Link to comment
7 minutes ago, SavellM said:

I was thinking maybe getting a dual m.2 to pcie adapter with 2x coral m.2's but honestly no idea. 

I bought this Adapter for my Dual Edge TPU, this is basically a WiFi key (you don't need to plug in the USB cable).

 

But keep in mind if you buy this adapter you only have a single PCIe lane so only one TPU will work.

This adapter should also work with the module that @mikey6283 recommended... ;)

Link to comment
1 minute ago, ich777 said:

I bought this Adapter for my Dual Edge TPU, this is basically a WiFi key.

 

But keep in mind if you buy this adapter you only have a single PCIe lane so only one TPU will work.

This adapter should also work with the module that @mikey6283 recommended... ;)

 

Sorry was just looking up my mobo:

With that adapter would I need to plug in the usb and all that? 

 

So a wifi adapter should work. 

 

Link to comment
9 minutes ago, SavellM said:

With that adapter would I need to plug in the usb and all that? 

Those adapters only have a USB connector because most of the WiFi combo cards have Bluetooth too and Bluetooth is most of the times connected through the USB bus.

 

10 minutes ago, SavellM said:

So a wifi adapter should work. 

Yes, but only has one lane, so to speak if you buy a Dual Edge TPU only one will work, all others should work fine.

Link to comment

Trying to get this setup while waiting for my tpu (have a dual m.2 already, but no adapter yet)

 

Im having some trouble with it consuming massive CPU (50+ % of all the cores on a i5-6500) with only 1 camera, no detect, and using a substream at 5fps.

 

Heres my config.yml:

 

mqtt:
  host: 192.168.1.11
  user: mqtt
  password: password
cameras:
  back:
    ffmpeg:
      inputs:
        - path: rtsp://username:[email protected]/cam/realmonitor?channel=1&subtype=2
          roles:
#           - detect
            - rtmp
#     detect:
#      width: 1920
#      height: 1080

 

Here's my logs

 

[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.
[2021-11-19 09:57:33] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
Starting migrations
[2021-11-19 09:57:33] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-11-19 09:57:33] peewee_migrate INFO : There is nothing to migrate
[2021-11-19 09:57:33] detector.cpu INFO : Starting detection process: 217
[2021-11-19 09:57:33] frigate.mqtt INFO : MQTT connected
[2021-11-19 09:57:33] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.

[2021-11-19 09:57:33] frigate.app INFO : Output process started: 219
[2021-11-19 09:57:33] ws4py INFO : Using epoll
[2021-11-19 09:57:33] frigate.app INFO : Camera processor started for back: 224
[2021-11-19 09:57:33] frigate.app INFO : Capture process started for back: 226
[2021-11-19 09:57:33] ws4py INFO : Using epoll

 

Standard frigate app right off the store, standard settings.   

 

Link to comment
13 hours ago, ich777 said:

Exactly. Only one Edge TPU will work because only one lane is available, if you got two lanes both TPUs will work.

 

Please keep in mind you have to come up with a way to cool the TPU(s) since they are really hot in your case if they are currently idling.

 

How do you know whether you got two lanes or just one?

 

If your motherboard shows (1x M.2/M-Key (PCIe 3.0) ), does it indicate i have even three lanes available and it would work with the dual edge?

Link to comment
5 hours ago, sylus said:

How do you know whether you got two lanes or just one?

You'll never know, you can just try it and you have to research it.

 

I don't have a board on hand with a M key but I have to buy a Asrock J4205-ITX in a few weeks and I can report back if this board has a slot with one or two lanes.

 

The main problem is that if the slot is labled with M.2-WiFi the slot will be mostly limited to one PCIe lane and one USB connection because as said above most combo cards only need one PCIe lane and a USB connection.

 

5 hours ago, sylus said:

PCIe 3.0

If it say PCIe 3.0 x2 it would be fine...

Link to comment

 I  keep on getting these RTMP errors  


[2021-11-20 16:48:56] watchdog.garage_driveway       ERROR   : You may have invalid args defined for this camera.

[2021-11-20 16:48:56] ffmpeg.garage_driveway.detect  ERROR   : [rtsp @ 0x55eb04b9aa80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.garage_driveway.detect  ERROR   : rtsp://192.168.0.51/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] ffmpeg.front_driveway.record_rtmp ERROR   : [rtsp @ 0x561e264f8e80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.front_driveway.record_rtmp ERROR   : rtsp://192.168.0.48/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Front1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] watchdog.front_driveway        INFO    : Terminating the existing ffmpeg process...

[2021-11-20 16:48:56] watchdog.front_driveway        INFO    : Waiting for ffmpeg to exit gracefully...

[2021-11-20 16:48:56] ffmpeg.garage_driveway.record_rtmp ERROR   : [rtsp @ 0x55c266776e80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.garage_driveway.record_rtmp ERROR   : rtsp://192.168.0.51/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] watchdog.garage_driveway       INFO    : Terminating the existing ffmpeg process...

[2021-11-20 16:48:56] watchdog.garage_driveway       INFO    : Waiting for ffmpeg to exit gracefully...

[2021-11-20 16:48:56] frigate.video                  INFO    : front_driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

[2021-11-20 16:48:56] frigate.video                  INFO    : front_driveway: ffmpeg process is not running. exiting capture thread...

[2021-11-20 16:48:56] frigate.video                  INFO    : garage_driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

[2021-11-20 16:48:56] frigate.video                  INFO    : garage_driveway: ffmpeg process is not running. exiting capture thread...

      
      
    

Config is as follows :  I initially had the path as http://reolink_ 192.168 XXXX but i was getting the same errors.  Running TPU.

 

Link to comment

I see the 2 post labeled as answered to this question, but i cannot find a solution to my problem so im asking anyways. My coral pci device is detected by my unraid server, but the drivers will not load as seen by 

ls /dev/apex_0

and of course my coral device does not show up in the settings -> coral driver tab in unraid.

 

Inside the system devices tab on unraid i get this, when hovering over the "System peripheral: Global Unichip Corp. Coral Edge TPU"

kernel driver in use: vfio-pci
kernel modules:apex

 

2.PNG

Link to comment
On 11/19/2021 at 9:52 AM, ich777 said:

I bought this Adapter for my Dual Edge TPU, this is basically a WiFi key (you don't need to plug in the USB cable).

 

But keep in mind if you buy this adapter you only have a single PCIe lane so only one TPU will work.

This adapter should also work with the module that @mikey6283 recommended... ;)

 

I ordered one of these which arrived yesterday, which should allow both TPU to be seen via a single PCIe lane.

 

When I can find time to remove the server from the rack and test I'll reply back

 

Dave 

 

Link to comment
17 minutes ago, Flubster said:

I ordered one of these which arrived yesterday, which should allow both TPU to be seen via a single PCIe lane.

Wow, cool thing. ;)

Yes, since it has a PLX chip on it this will work.

But everyone that buys a Dual Edge TPU don't forget to set up proper cooling, otherwise the Dual Edge TPU can be a fire hazard, even memtioned in the documentation.

Link to comment
On 11/19/2021 at 7:01 PM, jbrukardt said:

Trying to get this setup while waiting for my tpu (have a dual m.2 already, but no adapter yet)

 

Im having some trouble with it consuming massive CPU (50+ % of all the cores on a i5-6500) with only 1 camera, no detect, and using a substream at 5fps.

 

Heres my config.yml:

 

mqtt:
  host: 192.168.1.11
  user: mqtt
  password: password
cameras:
  back:
    ffmpeg:
      inputs:
        - path: rtsp://username:[email protected]/cam/realmonitor?channel=1&subtype=2
          roles:
#           - detect
            - rtmp
#     detect:
#      width: 1920
#      height: 1080

 

Here's my logs

 

[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.
[2021-11-19 09:57:33] frigate.app INFO : Starting Frigate (0.9.4-26ae608)
Starting migrations
[2021-11-19 09:57:33] peewee_migrate INFO : Starting migrations
There is nothing to migrate
[2021-11-19 09:57:33] peewee_migrate INFO : There is nothing to migrate
[2021-11-19 09:57:33] detector.cpu INFO : Starting detection process: 217
[2021-11-19 09:57:33] frigate.mqtt INFO : MQTT connected
[2021-11-19 09:57:33] frigate.edgetpu WARNING : CPU detectors are not recommended and should only be used for testing or for trial purposes.

[2021-11-19 09:57:33] frigate.app INFO : Output process started: 219
[2021-11-19 09:57:33] ws4py INFO : Using epoll
[2021-11-19 09:57:33] frigate.app INFO : Camera processor started for back: 224
[2021-11-19 09:57:33] frigate.app INFO : Capture process started for back: 226
[2021-11-19 09:57:33] ws4py INFO : Using epoll

 

Standard frigate app right off the store, standard settings.   

 

FFMPEG with no hardware acc can cause this consume of CPU. This is not a config/urnaid error, so open a issue on github maybe someone can help you with your specific hardware.

Link to comment
On 11/20/2021 at 6:00 PM, mikey6283 said:

 I  keep on getting these RTMP errors  


[2021-11-20 16:48:56] watchdog.garage_driveway       ERROR   : You may have invalid args defined for this camera.

[2021-11-20 16:48:56] ffmpeg.garage_driveway.detect  ERROR   : [rtsp @ 0x55eb04b9aa80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.garage_driveway.detect  ERROR   : rtsp://192.168.0.51/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Garage1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] ffmpeg.front_driveway.record_rtmp ERROR   : [rtsp @ 0x561e264f8e80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.front_driveway.record_rtmp ERROR   : rtsp://192.168.0.48/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Front1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] watchdog.front_driveway        INFO    : Terminating the existing ffmpeg process...

[2021-11-20 16:48:56] watchdog.front_driveway        INFO    : Waiting for ffmpeg to exit gracefully...

[2021-11-20 16:48:56] ffmpeg.garage_driveway.record_rtmp ERROR   : [rtsp @ 0x55c266776e80] method DESCRIBE failed: 401 Unauthorized

[2021-11-20 16:48:56] ffmpeg.garage_driveway.record_rtmp ERROR   : rtsp://192.168.0.51/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Garage1: Server returned 401 Unauthorized (authorization failed)

[2021-11-20 16:48:56] watchdog.garage_driveway       INFO    : Terminating the existing ffmpeg process...

[2021-11-20 16:48:56] watchdog.garage_driveway       INFO    : Waiting for ffmpeg to exit gracefully...

[2021-11-20 16:48:56] frigate.video                  INFO    : front_driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

[2021-11-20 16:48:56] frigate.video                  INFO    : front_driveway: ffmpeg process is not running. exiting capture thread...

[2021-11-20 16:48:56] frigate.video                  INFO    : garage_driveway: ffmpeg sent a broken frame. memoryview assignment: lvalue and rvalue have different structures

[2021-11-20 16:48:56] frigate.video                  INFO    : garage_driveway: ffmpeg process is not running. exiting capture thread...

      
      
    

Config is as follows :  I initially had the path as http://reolink_ 192.168 XXXX but i was getting the same errors.  Running TPU.

 

Are you sure you can access to these stream for example through VLC? Anyway, I don't know reolink cameras, you can ask for help on the github as this doesn't look it is related to Unraid config.

Link to comment
22 minutes ago, yayitazale said:

Are you sure you can access to these stream for example through VLC? Anyway, I don't know reolink cameras, you can ask for help on the github as this doesn't look it is related to Unraid config.

 Hi  I have  checked VLC and i can see the image  however only with rtsp:// admin: xxxx. 

 

 I will try on blakeblackshear github

 

 thanks for replay 

Link to comment

  I have had to install Frigate/ Mgtt plugin again  as they both stopped working. Now  I am unable to get Spants Mgtt to  statr and  Frigate   seems  not to be configure correctly. when I try to  insert my config thru smb  I am unable to insert  it due to the diretory for Frigate is not there. Instead MQTT is there . If i try thru the terminal I have the same error Input/Output as MQTT.

 

Any advise  would be appreciated.

Screenshot 2021-11-21 at 22.47.59.png

Screenshot 2021-11-21 at 22.51.39.png

Link to comment
8 hours ago, mikey6283 said:

  I have had to install Frigate/ Mgtt plugin again  as they both stopped working. Now  I am unable to get Spants Mgtt to  statr and  Frigate   seems  not to be configure correctly. when I try to  insert my config thru smb  I am unable to insert  it due to the diretory for Frigate is not there. Instead MQTT is there . If i try thru the terminal I have the same error Input/Output as MQTT.

 

Any advise  would be appreciated.

Screenshot 2021-11-21 at 22.47.59.png

Screenshot 2021-11-21 at 22.51.39.png

Do you have the array started an working on unraid? It looks like you have some failure on disk2. Did you change the bind point to the array share or you are writting still directly to the disk?

Link to comment

yayitazale

Do you have the array started an working on unraid? It looks like you have some failure on disk2. Did you change the bind point to the array share or you are writting still directly to the disk?

  Thanks you  are correct i have a faulty disk in my array so i have removed it and had to set up my unraid.  Now the  coral drivers are not loaded. there seem  to be a problem  as i cannot click on the logo to see if they are running just.

 

 I understand that my TPU are binded to Vfio-pci . I have tried to unbind them without success, any points  how to unbind them. I have laso rebooted but nothing is happening.

 

 I await your comments thanks

Screenshot 2021-11-22 at 11.21.39.png

Screenshot 2021-11-22 at 11.20.42.png

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.