Old (non-AVX) CPU build howto? #2065
Unanswered
kiat-huang
asked this question in
Question
Replies: 1 comment
-
Found https://docs.frigate.video/contributing/ and following the tutorial.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've an old nettop PC (Acer Aspire Revo R3160) with Intel Atom CPU 330 (1.60 Ghz) and 4GB ram and I've allocated it for use with Frigate (which was grinding my workstation's Xenon CPU to a halt). My HA runs on an RPI4.
Is there a general build howto so I can pull or create custom Frigate images for my hardware?
The docker target fails:
root@nvr:~# grep flags -m1 /proc/cpuinfo | cut -d ":" -f 2 | tr '[:upper:]' '[:lower:]' | { read FLAGS; OPT="-march=native"; for flag in $FLAGS; do case "$flag" in "sse4_1" | "sse4_2" | "ssse3" | "fma" | "cx16" | "popcnt" | "avx" | "avx2") OPT+=" -m$flag";; esac; done; MODOPT=${OPT//_/\.}; echo "$MODOPT"; }
-march=native -mssse3 -mcx16
This is my docker-compose.yml file
version: "3.9"
services: frigate@nvr:~$
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64nvidia
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/frigate/frigate.yml:/config/config.yml:ro
- /media/tecknet/Security/Footage:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1564516800
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD : "XXXXXXXX"
Beta Was this translation helpful? Give feedback.
All reactions