5 - Frigate Camera Container

Table of Contents

Previous Page

Next Page


Frigate! The reason we’re here!

Frigate is the Linux, and the free, way to view, detect, and record your home security cameras. After the initial fumbling over a text editor style install, it’s not too bad.

Installing Frigate is mostly with config files.

mkdir security && cd security
mkdir storage config
nano docker-compose.yml
nano config/config.yml

Start Frigate by running from within folder containing docker-compose.yml:

docker compose up -d

docker-compose:

# DOCKER-COMPOSE.YML
services:
  frigate:
    container_name: frigate
    restart: unless-stopped
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "128mb" #verify amount in frigate storage view
    environment:
      - LIBVA_DRIVER_NAME=radeonsi  #AMD gpu hardware decoding
    devices:
      - /dev/dri/renderD128      #AMD gpu hardware decoding
      - /dev/apex_0:/dev/apex_0  #this is your coral device
    volumes:
      - ./config:/config
      - ./storage:/media/frigate
      - type: tmpfs
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "5000:5000"
      - "8554:8554"

frigate config:

# CONFIG/CONFIG.YML
mqtt:
 enabled: False
ffmpeg:
  hwaccel_args: preset-vaapi

detectors:
  coral:
    type: edgetpu
    device: pci
objects:
  track:
    - person
    - bicycle
    - motorcycle
    - car
    - cat
    - dog

record:
  enabled: True
  retain:
    days: 10
    mode: motion
  events:
    retain:
      default: 30
      mode: motion
snapshots:
  enabled: True
  retain:
    default: 30

cameras:
  dummy_camera:
    enabled: False
    ffmpeg:
      inputs:
        - path: rtsp://admin:***@192.168.88.***:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif
          roles:
            - record
        - path: rtsp://admin:***@192.168.88.***:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
          roles:
            - detect

Table of Contents

Previous Page

Next Page