Running Docker on Mac M1 with USB Coral Accelerator #1247
Replies: 8 comments 35 replies
-
You need to find a way to mount the usb device into the virtual machine that runs docker(Hyperkit?), or create another virtual machine(e.g., using Virtualbox) and mount the USB. |
Beta Was this translation helpful? Give feedback.
-
Were you able to use your USB Coral with you M1 Mac? I am running 3 1920x1080 cameras with, CPU only, at the moment and I am seeing inference speed consistently 9-10ms. The M1 seems to do a really good job running frigate. I am not sure I would need to use a Coral with my M1 Mac mini. |
Beta Was this translation helpful? Give feedback.
-
thanks for this thread, everyone! I was getting really poor performance before realizing i was using the wrong container (amd64 instead of aarch64). One thing I was curious about is, if I manage to get a different version of ffmpeg into the mix, compiled with h264_videotoolbox (e.g. the current version [5.0] from homebrew), is that likely to provide a separate boost in the encoding as well? thanks for any tips |
Beta Was this translation helpful? Give feedback.
-
Anyone made a direct comparison between the Google Coral and Mac Mini M1 CPU? Would be really interesting as I am planning to use my Mac Mini M1 (used normally for iOS development) for Frigate and I do not really want to buy a Coral if it is not necessary. Also any info about hwaccel_args for Mac Mini M1? |
Beta Was this translation helpful? Give feedback.
-
is there a way to pass -c:v h264_videotoolbox on the M1 ? |
Beta Was this translation helpful? Give feedback.
-
Has anyone managed to access VideoToolBox inside docker? I found two new leads. The Jellyfin community is using an SSH method to access the host ffmpeg. ( https://oliverbley.github.io/posts/2022-12-27-jellyfin-in-docker-hardware-acceleration-on-macos/ ) Then I also found this project that seems to be utilising VideoToolBox inside docker somehow. https://github.com/photoprism/photoprism I am to much of a noob with these things to get it to work. but will be great if someone is willing to help. |
Beta Was this translation helpful? Give feedback.
-
apologies for reviving this old thread as I could not find relevant info anywhere else... @jimshaggy @bmclapham1973 would you mind sharing your docker compose/run command and your frigate config's Here's what I have so far:
|
Beta Was this translation helpful? Give feedback.
-
Running on M4 Mac mini with 2 CPU detectors. Inference speeds mostly stay under 7 and spike up when lots of activity. CPU user usage ranges between 20-40% overall (also has a Debian vm in utm running Homebridge)
|
Beta Was this translation helpful? Give feedback.
-
Good day all.
Relatively new to Frigate and Home Assistant, really really new to Docker. I am attempting to move my Frigate off of my ODroid-N2+ and onto a separate dedicated machine.
While Frigate and the USB Coral Accelerator works on my ODroid, it's pretty heavy and keeps my CPU pinned. I've decided to try to move it, which has necessitated learning about Docker and getting that setup on my Mac Mini M1. That has been relatively straight forward and I've been successful getting Frigate working, but only with CPU detectors. I haven't been successful in getting the USB Accelerator connected. Any hints or success stories?
Thanks Jim
Beta Was this translation helpful? Give feedback.
All reactions