Open TawfikDaim opened 8 months ago
tawfik@tawfik-IdeaPad-3-15ITL6:~/Docker/frigate/config$ cat frigate.yaml
mqtt:
user: tawfik password: Newipad1! host: 192.168.1.53
cameras: maindoor: ffmpeg: inputs:
motion:
threshold: 25
contour_area: 30
delta_alpha: 0.2
frame_alpha: 0.2
frame_height: 50
improve_contrast: False
detect:
width: 3072
height: 1728
fps: 5
max_disappeared: 25
objects:
track:
filters: person:
min_area: 10000
max_area: 1000000
threshold: 0.7
# roles:
# - rtmp
# - detect
# - path: rtsp://admin:Newipad1@192.168.1.101:554/Steaming/Channels/101
# roles:
# - rtmp
# - detect
# - path: rtsp://admin:Newipad1@192.168.1.106:554/Steaming/Channels/101
# roles:
# - rtmp
# - detect
birdseye:
enabled: True
width: 1280
height: 720
quality: 8
mode: objects
record: sync_recordings: False enabled: True
expire_interval: 10080
retain: days: 2 mode: motion
snapshots:
enabled: True
timestamp: True
bounding_box: True retain:
default: 10
#
8 May 2024: New config working much better, especially with theses camera settings
Docker compose - please note shm_size memory version: "3.1" services: frigate: container_name: frigate image: ghcr.io/blakeblackshear/frigate:stable shm_size: "22484mb" # update for your cameras based on calculation above restart: always volumes:
#sudo apt install sshfs
#sudo mkdir /mnt/
#sudo sshfs -o allow_other Tawfik@192.168.1.100:/share/Dyar153/recordings/ /home/tawfik/Videos/
# can use this on a remote server or on same server at a specific folder
- /home/tawfik/automation/frigate/frigate.yaml:/config/config.yaml
- /home/tawfik/automation/frigate/:/media/frigate
# if using as a local server then will be
# using same logic can get the config file from a emote server or on same server at a specific folder
#- /home/tawfik/frigate/frigate.yaml:/config/config.yaml
#- /home/tawfik/frigate/media:/media/frigate
#- //192.168.1.100/dyar153/recordings:/media/frigate
ports:
- 5000:5000
- 1935:1935
environment:
TZ: Africa/Cairo
FRIGATE_RTSP_PASSWORD: Newipad1
Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
mqtt5: image: eclipse-mosquitto container_name: mqtt5 ports:
z2mqtt: container_name: z2mqtt image: koenkk/zigbee2mqtt restart: always
devices:
- /dev/ttyACM0:/dev/ttyACM0
volumes:
#Mounting a remote volume:
#sudo apt install sshfs
#sudo mkdir /mnt/<folder name>
#sudo sshfs -o allow_other Tawfik@192.168.1.100:/share/Dyar153/recordings/ /home/tawfik/Videos/
# can use this on a remote server or on same server at a specific folder
- /home/tawfik/automation/z2mqtt:/app/data
- /run/udev:/run/udev:ro
# if using as a local server then will be
# using same logic can get the config file from a emote server or on same server at a specific folder
#- /home/tawfik/frigate/frigate.yaml:/config/config.yaml
#- /home/tawfik/frigate/media:/media/frigate
#- //192.168.1.100/dyar153/recordings:/media/frigate
ports:
- 8080:8080
environment:
TZ: Africa/Cairo
#FRIGATE_RTSP_PASSWORD: Newipad1!
#Path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
homeassistant: container_name: homeassistant image: "ghcr.io/home-assistant/home-assistant:stable" volumes:
Camera setting
Frigate config mqtt: host: 10.195.1.51
user: tawfik password: Newipad1!
cameras: basket: ffmpeg: inputs:
path: rtsp://admin:Newipad1@192.168.1.102:554/Steaming/Channels/101 roles:
motion: mask:
path: rtsp://admin:Newipad1@192.168.1.105:554/Steaming/Channels/101 roles:
jacuzzi: ffmpeg: inputs:
threshold: 50
contour_area: 40
delta_alpha: 0.2
frame_alpha: 0.2
frame_height: 50
improve_contrast: false mask:
detect:
width: 3072
height: 1728
fps: 5
max_disappeared: 25
objects:
track:
filters: person:
min_area: 7000
max_area: 1000000
threshold: 0.7
# roles:
# - rtmp
# - detect
# - path: rtsp://admin:Newipad1@192.168.1.101:554/Steaming/Channels/101
# roles:
# - rtmp
# - detect
# - path: rtsp://admin:Newipad1@192.168.1.106:554/Steaming/Channels/101
# roles:
# - rtmp
# - detect
birdseye:
enabled: true
width: 1280
height: 720
quality: 21
mode: objects
record: sync_recordings: false enabled: true
expire_interval: 10080
retain: days: 2 mode: motion
snapshots:
enabled: true
timestamp: true
bounding_box: true retain:
default: 10
#
make sure to disable "Enable Motion Detection" on all cameras
docker-compose file:
version: "3.1" services: frigate: container_name: frigate-dockercompose image: ghcr.io/blakeblackshear/frigate:stable shm_size: "484mb" # update for your cameras based on calculation above restart: always volumes:
Mounting a remote volume:
- /home/tawfik/Videos/:/media/frigate # secind line will be ignored