This commit is contained in:
Administrator 2022-11-21 19:46:45 +00:00
commit dbdd2a72c1
3 changed files with 64 additions and 0 deletions

40
config.yml Normal file
View File

@ -0,0 +1,40 @@
mqtt:
host: 192.168.0.118
user: '{FRIGATE_MQTT_USER}'
password: '{FRIGATE_MQTT_PASSWORD}'
cameras:
# Name of your camera
home_door:
ffmpeg:
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- +genpts+discardcorrupt
- -flags
- low_delay
- -strict
- experimental
- -analyzeduration
- 1000M
- -probesize
- 1000M
- -rw_timeout
- "5000000"
inputs:
- path: http://192.168.1.11/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_CAMERA_USER1}&password={FRIGATE_CAMERA_PASSWORD1}
roles:
- record
- rtmp
- path: http://192.168.1.11/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user={FRIGATE_CAMERA_USER1}&password={FRIGATE_CAMERA_PASSWORD1}
roles:
- detect
detect:
width: 896
height: 672
fps: 7
detectors:
coral:
type: edgetpu
device: usb

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '3'
services:
frigate:
container_name: frigate
image: blakeblackshear/frigate:stable-amd64
restart: always
devices:
- /dev/bus/usb:/dev/bus/usb
volumes:
- /etc/localtime:/etc/localtime
- /home/frigate/config.yml:/config/config.yml:ro
- /mnt/data:/media/frigate
- /run:/tmp/cache
ports:
- 5000:5000
- 1935:1935
env_file:
- .env
# environment:
# FRIGATE_RTSP_PASSWORD: "VEdKo8PgN!^$aPSvJPWmwp&L"

4
sample.env Normal file
View File

@ -0,0 +1,4 @@
FRIGATE_MQTT_USER=
FRIGATE_MQTT_PASSWORD=
FRIGATE_CAMERA_USER1=
FRIGATE_CAMERA_PASSWORD1=