mapletree/lxc2/frigate/config/frigate.yml
admin_jk 3b06b7a188
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run
update frigate config
2026-02-17 12:20:56 -07:00

82 lines
No EOL
2 KiB
YAML

mqtt:
enabled: False # Set to True and add host/user/pass if you use Home Assistant
go2rtc:
streams:
camera_1:
- "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.2:554/stream1#video=copy#audio=copy#audio=aac"
camera_1_sub:
- rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.2:554/stream2
camera_2:
- "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.4:554/stream1#video=copy#audio=copy#audio=aac"
camera_2_sub:
- rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.4:554/stream2
camera_3:
- "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.3:554/stream1#video=copy#audio=copy#audio=aac"
camera_3_sub:
- rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.3:554/stream2
cameras:
EntryCam: # Change name to match your location (e.g., driveway)
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/camera_1
roles:
- record
- path: rtsp://127.0.0.1:8554/camera_1_sub
roles:
- detect
detect:
width: 640 # stream2 is typically 640x360
height: 360
fps: 5
GarageFront:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/camera_2
roles:
- record
- path: rtsp://127.0.0.1:8554/camera_2_sub
roles:
- detect
detect:
width: 640
height: 360
fps: 5
GarageRear:
ffmpeg:
inputs:
- path: rtsp://127.0.0.1:8554/camera_3
roles:
- record
- path: rtsp://127.0.0.1:8554/camera_3_sub
roles:
- detect
detect:
width: 640
height: 360
fps: 5
# Optional: Global recording settings
record:
enabled: True
retain:
days: 7
mode: all
ffmpeg:
hwaccel_args: preset-nvidia
detectors:
tensorrt:
type: tensorrt
device: 0 # Matches your first GPU (/dev/nvidia0)
model:
path: /config/model_cache/tensorrt/yolov8s.trt # Frigate will build this
width: 640
height: 640
input_tensor: nchw
input_pixel_format: rgb