I’m running frigate using docker, and I’m using a coral tpu and my amd APU for video acceleration. I have two cameras, the living_room camera is a wyze cam v1 with the rtsp firmware, the family_room camera is a tapo 210. This is how I my docker compose:
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb"
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/kfd:/dev/kfd
- /dev/dri/card0:/dev/dri/card0
volumes:
- /etc/localtime:/etc/localtime:ro
- nfs-frigate-config:/config
- nfs-frigate:/media/frigate
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
- FRIGATE_RTSP_PASSWORD:PASSWORD
- LIBVA_DRIVER_NAME:radeonsi
volumes:
nfs-frigate-config:
external: true
nfs-frigate:
external: true
1. Am missing anything in my docker-compose?
This is my frigate configuration file:
# yaml-language-server: $schema=http://192.168.86.124/:5000/api/config/schema.json
mqtt:
enabled: True
host: 192.168.86.124
port: 1883
topic_prefix: frigate
client_id: frigate
user: ignacio
password: PASSWORD
go2rtc:
streams:
family_room:
- rtsp://ignacio:[email protected]:554/stream1
- "ffmpeg:family_room#audio=aac"
family_room_sub:
- rtsp://ignacio:[email protected]:554/stream2
living_room:
- rtsp://ignacio:[email protected]:554/stream1
- "ffmpeg:living_room#audio=aac"
living_room_sub:
- rtsp://ignacio:[email protected]:554/stream2
cameras:
garage:
ffmpeg:
inputs:
- path: rtsp://ignacio82:[email protected]/live
input_args: preset-rtsp-restream
roles:
- detect
- record
family_room:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://ignacio:[email protected]:554/family_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://ignacio:[email protected]:554/family_room_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: family_room
quality: 8
living_room:
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: rtsp://ignacio:[email protected]:554/living_room
input_args: preset-rtsp-restream
roles:
- record
- path: rtsp://ignacio:[email protected]:554/living_room_sub
input_args: preset-rtsp-restream
roles:
- detect
live:
stream_name: family_room
quality: 8
objects:
track:
- person
- dog
detect:
enabled: True
width: 1920
height: 1080
fps: 5
record:
enabled: True
snapshots:
enabled: True
bounding_box: True
detectors:
coral:
type: edgetpu
device: usb
birdseye:
enabled: True
mode: motion
restream: True
width: 1280
height: 720
quality: 8
ffmpeg:
hwaccel_args: preset-vaapi
2. Anything that you would recommend changing there?
Thanks for the help!