update
This commit is contained in:
96
Frigate/config.yml
Normal file
96
Frigate/config.yml
Normal file
@ -0,0 +1,96 @@
|
||||
cameras:
|
||||
garden:
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://cameraIP:554/s0
|
||||
roles:
|
||||
- detect
|
||||
- rtmp
|
||||
detect:
|
||||
width: 1920 # <---- update for your camera's resolution
|
||||
height: 1080 # <---- update for your camera's resolution
|
||||
fps: 25
|
||||
garage:
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://cameraIP:554/s0
|
||||
roles:
|
||||
- detect
|
||||
- rtmp
|
||||
detect:
|
||||
width: 1920 # <---- update for your camera's resolution
|
||||
height: 1080 # <---- update for your camera's resolution
|
||||
fps: 25
|
||||
motion:
|
||||
mask:
|
||||
- 0,0,1920,0,1920,393,297,241,314,464,0,541
|
||||
|
||||
# Optional: Database configuration
|
||||
database:
|
||||
# The path to store the SQLite DB (default: shown below)
|
||||
path: /media/frigate/frigate.db
|
||||
|
||||
detectors:
|
||||
coral1:
|
||||
type: edgetpu
|
||||
device: pci:0
|
||||
coral2:
|
||||
type: edgetpu
|
||||
device: pci:1
|
||||
|
||||
objects:
|
||||
track:
|
||||
- person
|
||||
- dog
|
||||
- cat
|
||||
- bird
|
||||
|
||||
snapshots:
|
||||
enabled: True
|
||||
timestamp: true
|
||||
bounding_box: true
|
||||
retain:
|
||||
default: 30
|
||||
mqtt:
|
||||
host: 192.168.200.14
|
||||
|
||||
ffmpeg:
|
||||
#hwaccel_args:
|
||||
# - -hwaccel
|
||||
# - vaapi
|
||||
# - -hwaccel_device
|
||||
# - /dev/dri/renderD128
|
||||
# - -hwaccel_output_format
|
||||
# - yuv420p
|
||||
output_args:
|
||||
record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
|
||||
|
||||
record:
|
||||
enabled: True
|
||||
events:
|
||||
pre_capture: 5
|
||||
post_capture: 5
|
||||
retain:
|
||||
default: 30
|
||||
mode: active_objects
|
||||
objects:
|
||||
- person
|
||||
- bird
|
||||
- cat
|
||||
- dog
|
||||
|
||||
birdseye:
|
||||
# Optional: Enable birdseye view (default: shown below)
|
||||
enabled: True
|
||||
# Optional: Width of the output resolution (default: shown below)
|
||||
width: 1280
|
||||
# Optional: Height of the output resolution (default: shown below)
|
||||
height: 720
|
||||
# Optional: Encoding quality of the mpeg1 feed (default: shown below)
|
||||
# 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
|
||||
quality: 8
|
||||
# Optional: Mode of the view. Available options are: objects, motion, and continuous
|
||||
# objects - cameras are included if they have had a tracked object within the last 30 seconds
|
||||
# motion - cameras are included if motion was detected in the last 30 seconds
|
||||
# continuous - all cameras are included always
|
||||
mode: continuous
|
46
Frigate/docker-compose.yaml
Normal file
46
Frigate/docker-compose.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
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
|
||||
devices:
|
||||
#- /dev/bus/usb:/dev/bus/usb
|
||||
- /dev/apex_0:/dev/apex_0
|
||||
- /dev/apex_1:/dev/apex_1
|
||||
#- /dev/dri/renderD128:/dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /home/ubuntu/docker/frigate/config.yml:/config/config.yml:ro
|
||||
- /home/ubuntu/freenas/Frigate/media/clips:/media/frigate/clips
|
||||
- /home/ubuntu/freenas/Frigate/media/recordings:/media/frigate/recordings
|
||||
- /home/ubuntu/docker/frigate/database:/media/frigate
|
||||
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
||||
target: /tmp/cache
|
||||
tmpfs:
|
||||
size: 2000000000
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "1935:1935" # RTMP feeds (deprecated)
|
||||
- "8554:8554" # RTSP feeds
|
||||
environment:
|
||||
FRIGATE_RTSP_PASSWORD: "password"
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.frigate.entrypoints=http"
|
||||
- "traefik.http.routers.frigate.rule=Host(`frigate.jimsgarage.co.uk`)"
|
||||
- "traefik.http.middlewares.frigate-https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.routers.frigate.middlewares=frigate-https-redirect"
|
||||
- "traefik.http.routers.frigate-secure.entrypoints=https"
|
||||
- "traefik.http.routers.frigate-secure.rule=Host(`frigate.jimsgarage.co.uk`)"
|
||||
- "traefik.http.routers.frigate-secure.tls=true"
|
||||
- "traefik.http.routers.frigate-secure.service=frigate"
|
||||
- "traefik.http.services.frigate.loadbalancer.server.port=5000"
|
||||
- "traefik.docker.network=proxy"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
Reference in New Issue
Block a user