commit dbdd2a72c18281c2b551cbffbb8dbca0fb973cbe Author: adri Date: Mon Nov 21 19:46:45 2022 +0000 fc diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..a9d335a --- /dev/null +++ b/config.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4ccafba --- /dev/null +++ b/docker-compose.yml @@ -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" diff --git a/sample.env b/sample.env new file mode 100644 index 0000000..33c5a7c --- /dev/null +++ b/sample.env @@ -0,0 +1,4 @@ +FRIGATE_MQTT_USER= +FRIGATE_MQTT_PASSWORD= +FRIGATE_CAMERA_USER1= +FRIGATE_CAMERA_PASSWORD1=