From 3b06b7a1882800bc7610b56d863282c27e54b580 Mon Sep 17 00:00:00 2001 From: admin_jk Date: Tue, 17 Feb 2026 12:20:56 -0700 Subject: [PATCH] update frigate config --- lxc2/frigate/config/frigate.yml | 33 +++++++++++++++++++-------------- lxc2/frigate/frigate.yml | 2 ++ 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/lxc2/frigate/config/frigate.yml b/lxc2/frigate/config/frigate.yml index 8ef41d7..59c2826 100644 --- a/lxc2/frigate/config/frigate.yml +++ b/lxc2/frigate/config/frigate.yml @@ -4,20 +4,20 @@ mqtt: go2rtc: streams: camera_1: - - "ffmpeg:rtsp://:@:554/stream1#video=copy#audio=copy#audio=aac" + - "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.2:554/stream1#video=copy#audio=copy#audio=aac" camera_1_sub: - - rtsp://:@:554/stream2 + - rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.2:554/stream2 camera_2: - - "ffmpeg:rtsp://:@:554/stream1#video=copy#audio=copy#audio=aac" + - "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.4:554/stream1#video=copy#audio=copy#audio=aac" camera_2_sub: - - rtsp://:@:554/stream2 + - rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.4:554/stream2 camera_3: - - "ffmpeg:rtsp://:@:554/stream1#video=copy#audio=copy#audio=aac" + - "ffmpeg:rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.3:554/stream1#video=copy#audio=copy#audio=aac" camera_3_sub: - - rtsp://:@:554/stream2 + - rtsp://{TAPO_USER}:{TAPO_PASS}@192.168.19.3:554/stream2 cameras: - camera_1: # Change name to match your location (e.g., driveway) + EntryCam: # Change name to match your location (e.g., driveway) ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/camera_1 @@ -31,7 +31,7 @@ cameras: height: 360 fps: 5 - camera_2: + GarageFront: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/camera_2 @@ -45,7 +45,7 @@ cameras: height: 360 fps: 5 - camera_3: + GarageRear: ffmpeg: inputs: - path: rtsp://127.0.0.1:8554/camera_3 @@ -69,9 +69,14 @@ record: ffmpeg: hwaccel_args: preset-nvidia -# If you want to use the GPU for object detection (requires Frigate + TensorRT) -# Note: This is separate from decoding and requires the tensorrt detector image detectors: - ov: - type: openvino - device: GPU # This uses Intel iGPU if available, use 'tensorrt' for Nvidia \ No newline at end of file + 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 \ No newline at end of file diff --git a/lxc2/frigate/frigate.yml b/lxc2/frigate/frigate.yml index 7563352..df7fe1a 100755 --- a/lxc2/frigate/frigate.yml +++ b/lxc2/frigate/frigate.yml @@ -2,6 +2,8 @@ services: frigate: image: ghcr.io/blakeblackshear/frigate:stable-tensorrt privileged: true + env_file: + - /docker/frigate/creds.env devices: - /dev/nvidia0:/dev/nvidia0 - /dev/nvidiactl:/dev/nvidiactl