🔧 frigate

This commit is contained in:
auricom
2023-08-31 17:26:46 +02:00
parent 99a6cfa6ef
commit 621f78e6f3
5 changed files with 44 additions and 120 deletions

View File

@@ -23,7 +23,7 @@ ffmpeg:
global_args: ["-hide_banner", "-loglevel", "warning"] global_args: ["-hide_banner", "-loglevel", "warning"]
hwaccel_args: ["-hwaccel", "vaapi", "-hwaccel_device", "/dev/dri/renderD128", "-hwaccel_output_format", "yuv420p"] hwaccel_args: ["-hwaccel", "vaapi", "-hwaccel_device", "/dev/dri/renderD128", "-hwaccel_output_format", "yuv420p"]
output_args: output_args:
record: preset-record-reolink record: preset-record-generic-audio-aac
snapshots: snapshots:
enabled: true enabled: true
@@ -50,116 +50,29 @@ objects:
max_area: 100000 max_area: 100000
threshold: 0.7 threshold: 0.7
# go2rtc: go2rtc:
# streams: streams:
# frigate_porch_hq: rtspx://unifi-protect.turbo.ac:7441/j0GwJJkeqgWeDict # cam_01_bedroom: ffmpeg:https://cam-01-bedroom.home.arpa:443/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_CAMERA_USER}&password={FRIGATE_CAMERA_PASSWORD}#video=copy#audio=copy#audio=opus
# frigate_porch_lq: rtspx://unifi-protect.turbo.ac:7441/vXHPHzP9FVRJfDuY cam_01_bedroom: rtsp://{FRIGATE_CAMERA_USER}:{FRIGATE_CAMERA_PASSWORD}@cam-01-bedroom.{FRIGATE_SECRET_DOMAIN}:554/h265Preview_01_main
# frigate_driveway_hq: rtspx://unifi-protect.turbo.ac:7441/Ccg9H1IizE1vs1uY cam_01_bedroom_sub: ffmpeg:https://cam-01-bedroom.home.arpa:443/flv?port=1935&app=bcs&stream=channel0_main.bcs&user={FRIGATE_CAMERA_USER}&password={FRIGATE_CAMERA_PASSWORD}
# frigate_driveway_lq: rtspx://unifi-protect.turbo.ac:7441/yTDnSmMVDs6C8Zn2
# frigate_garage_hq: rtspx://unifi-protect.turbo.ac:7441/m5oOVxjEFf0a7An8
# frigate_garage_lq: rtspx://unifi-protect.turbo.ac:7441/rfX5a2wiqGcwhkkT
# frigate_river_hq: rtspx://unifi-protect.turbo.ac:7441/4TS1FINEr5tOeF7Q
# frigate_river_lq: rtspx://unifi-protect.turbo.ac:7441/LgRGGzkoV1lelHBE
# frigate_study_hq: rtspx://unifi-protect.turbo.ac:7441/SViFPpsChGahJTpR
# frigate_study_lq: rtspx://unifi-protect.turbo.ac:7441/fHV4bNS1KiYJb3nK
# frigate_living_room_hq: rtspx://unifi-protect.turbo.ac:7441/XRuGR7p9aDEg9jdB
# frigate_living_room_lq: rtspx://unifi-protect.turbo.ac:7441/7qEIbCsbYqn4SMEj
# frigate_basement_1_hq: rtspx://unifi-protect.turbo.ac:7441/0MoNwT3jxtK7jU37
# frigate_basement_1_lq: rtspx://unifi-protect.turbo.ac:7441/M5bhAT4dLAKZfmTD
# cameras: cameras:
# frigate_porch: cam-01-bedroom:
# ffmpeg: ffmpeg:
# inputs: inputs:
# - path: rtsp://localhost:8554/frigate_porch_lq - path: rtsp://localhost:8554/cam_01_bedroom?video=copy&audio=aac
# roles: ["detect"] input_args: preset-rtsp-restream
# - path: rtsp://localhost:8554/frigate_porch_hq roles: ["record"]
# roles: ["record"] - path: rtsp://localhost:8554/cam_01_bedroom_sub?video=copy
# detect: input_args: preset-rtsp-restream
# width: 960 roles: ["detect"]
# height: 720 detect:
# fps: 10 width: 640
# objects: height: 480
# filters: fps: 7
# person: objects:
# mask: filters:
# - 39,445,199,427,198,263,36,228 person:
# - 304,218,304,408,198,434,198,262 mask:
# - 305,411,485,382,615,393,612,335,578,321,574,233,549,118,308,209 - 960,626,800,617,797,0,960,0
- 960,0,960,138,0,149,0,0
# frigate_driveway:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_driveway_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_driveway_hq
# roles: ["record"]
# detect:
# width: 1280
# height: 720
# fps: 10
# objects:
# filters:
# person:
# mask:
# - 822,204,1280,360,1280,0,0,0,0,313
# frigate_garage:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_garage_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_garage_hq
# roles: ["record"]
# detect:
# width: 1024
# height: 576
# fps: 10
# frigate_river:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_river_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_river_hq
# roles: ["record"]
# detect:
# width: 1280
# height: 720
# fps: 10
# frigate_study:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_study_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_study_hq
# roles: ["record"]
# detect:
# width: 1280
# height: 720
# fps: 10
# frigate_living_room:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_living_room_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_living_room_hq
# roles: ["record"]
# detect:
# width: 1024
# height: 576
# fps: 10
# frigate_basement_1:
# ffmpeg:
# inputs:
# - path: rtsp://localhost:8554/frigate_basement_1_lq
# roles: ["detect"]
# - path: rtsp://localhost:8554/frigate_basement_1_hq
# roles: ["record"]
# detect:
# width: 1280
# height: 720
# fps: 10

View File

@@ -17,11 +17,17 @@ spec:
data: data:
# App # App
# PLUS_API_KEY: "{{ .PLUS_API_KEY }}" # PLUS_API_KEY: "{{ .PLUS_API_KEY }}"
# Mosquitto FRIGATE_CAMERA_USER: "{{ .FRIGATE_CAMERA_USER }}"
FRIGATE_CAMERA_PASSWORD: "{{ .FRIGATE_CAMERA_PASSWORD }}"
# EMQX
FRIGATE_MQTT_USERNAME: "{{ .user_1_username }}" FRIGATE_MQTT_USERNAME: "{{ .user_1_username }}"
FRIGATE_MQTT_PASSWORD: "{{ .user_1_password }}" FRIGATE_MQTT_PASSWORD: "{{ .user_1_password }}"
# GENERIC
FRIGATE_SECRET_DOMAIN: "{{ .SECRET_DOMAIN }}"
dataFrom: dataFrom:
# - extract:
# key: frigate
- extract: - extract:
key: emqx key: emqx
- extract:
key: frigate
- extract:
key: generic

View File

@@ -39,6 +39,7 @@ spec:
type: statefulset type: statefulset
annotations: annotations:
reloader.stakater.com/auto: "true" reloader.stakater.com/auto: "true"
podManagementPolicy: Parallel
image: image:
repository: ghcr.io/blakeblackshear/frigate repository: ghcr.io/blakeblackshear/frigate
tag: 0.12.1 tag: 0.12.1
@@ -50,6 +51,9 @@ spec:
name: frigate-secret name: frigate-secret
service: service:
main: main:
type: LoadBalancer
externalTrafficPolicy: Local
loadBalancerIP: ${CLUSTER_LB_FRIGATE}
ports: ports:
http: http:
port: &port 5000 port: &port 5000
@@ -74,7 +78,7 @@ spec:
ingress: ingress:
main: main:
enabled: true enabled: true
ingressClassName: internal ingressClassName: nginx
hosts: hosts:
- host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}" - host: &host "{{ .Release.Name }}.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
@@ -102,7 +106,7 @@ spec:
type: nfs type: nfs
server: "${LOCAL_LAN_OPENMEDIAVAULT}" server: "${LOCAL_LAN_OPENMEDIAVAULT}"
path: /export/frigate path: /export/frigate
mountPath: /export/frigate mountPath: /media/frigate
cache: cache:
enabled: true enabled: true
type: emptyDir type: emptyDir

View File

@@ -44,8 +44,8 @@ sops:
WG82VkdBMlNnRzBySFQzMk41cEtXSlEKBqOmq9UpO61C85+pj0ibdT31y4pmFsbm WG82VkdBMlNnRzBySFQzMk41cEtXSlEKBqOmq9UpO61C85+pj0ibdT31y4pmFsbm
pTi4N0vv81kcf4ilqBU5h1gudNCb42Q2iL0eGNR4e3JzH4iaNsvnEg== pTi4N0vv81kcf4ilqBU5h1gudNCb42Q2iL0eGNR4e3JzH4iaNsvnEg==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2023-07-14T21:58:35Z" lastmodified: "2023-08-31T15:46:42Z"
mac: ENC[AES256_GCM,data:G2sYqZY5/E/4QWVYKV5RGT5XCCnH5SIjdbW/xqw6WCV6G2nIEDpHKXSPKFLlzWHTsW3jRjWW2SOQ59ftkY5CB4doMi8EzEGzqMyw1d0llwl6sXGPzwOBjqlOeoECCc0/xm2BKA6bJ3uTyeifyFNQSx4iBvM8Djv1JTrIE/P8pVE=,iv:x8o2b+wO8FD43RtwHvz73yEtefTsgV6a1pWehLPSHoI=,tag:sqg4/tUSVE3AyZWhUGi9jw==,type:str] mac: ENC[AES256_GCM,data:OSvzXKIJBr8ImiHRk0kK7G5seEDIc7nBFQjLXCrec+QAuHqHlITWovUjkC/vsIsIIspUYL1xuDPKqOMFcq7GXRt6eCkFCkhAyzlfUF2EY+/xifymKCUA9WWLUC92sBQraxXBL4HrVjdzLQg1BBkmI7ukH3YEQO2FkPj9A2FkRco=,iv:hlkzKN/6/ojBYMPzXXpRwZlSxKQ5Ev+XnCjFyyHfcCM=,tag:2gXKLl1a/mx8erqrZNr+kw==,type:str]
pgp: [] pgp: []
encrypted_regex: ^(data|stringData)$ encrypted_regex: ^(data|stringData)$
version: 3.7.3 version: 3.7.3

View File

@@ -21,6 +21,7 @@ data:
CLUSTER_LB_RESILIOSYNC_HELENE: 192.168.169.111 CLUSTER_LB_RESILIOSYNC_HELENE: 192.168.169.111
CLUSTER_LB_MAILRISE: 192.168.169.112 CLUSTER_LB_MAILRISE: 192.168.169.112
CLUSTER_LB_REDIS: 192.168.169.113 CLUSTER_LB_REDIS: 192.168.169.113
CLUSTER_LB_FRIGATE: 192.168.169.114
LOCAL_LAN: 192.168.8.0/22 LOCAL_LAN: 192.168.8.0/22
LOCAL_LAN_OPNSENSE: 192.168.8.1 LOCAL_LAN_OPNSENSE: 192.168.8.1
LOCAL_LAN_TRUENAS: 192.168.9.10 LOCAL_LAN_TRUENAS: 192.168.9.10