Compare commits
2 commits
5f377d15e0
...
71a4dcdb7d
| Author | SHA1 | Date | |
|---|---|---|---|
| 71a4dcdb7d | |||
| 4b762a4df6 |
3 changed files with 94 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -77,8 +77,6 @@ scans/
|
||||||
**/queue/
|
**/queue/
|
||||||
# Node-Red dependencies
|
# Node-Red dependencies
|
||||||
**/node_modules/
|
**/node_modules/
|
||||||
# Frigate database/clips
|
|
||||||
**/frigate/
|
|
||||||
# Home Assistant State Registry (Contains secrets)
|
# Home Assistant State Registry (Contains secrets)
|
||||||
**/.storage/
|
**/.storage/
|
||||||
# Text-to-speech cache
|
# Text-to-speech cache
|
||||||
|
|
|
||||||
77
lxc2/frigate/config/frigate.yml
Normal file
77
lxc2/frigate/config/frigate.yml
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
mqtt:
|
||||||
|
enabled: False # Set to True and add host/user/pass if you use Home Assistant
|
||||||
|
|
||||||
|
go2rtc:
|
||||||
|
streams:
|
||||||
|
camera_1:
|
||||||
|
- "ffmpeg:rtsp://<USER>:<PASS>@<IP_ADDRESS>:554/stream1#video=copy#audio=copy#audio=aac"
|
||||||
|
camera_1_sub:
|
||||||
|
- rtsp://<USER>:<PASS>@<IP_ADDRESS>:554/stream2
|
||||||
|
camera_2:
|
||||||
|
- "ffmpeg:rtsp://<USER>:<PASS>@<IP_ADDRESS_2>:554/stream1#video=copy#audio=copy#audio=aac"
|
||||||
|
camera_2_sub:
|
||||||
|
- rtsp://<USER>:<PASS>@<IP_ADDRESS_2>:554/stream2
|
||||||
|
camera_3:
|
||||||
|
- "ffmpeg:rtsp://<USER>:<PASS>@<IP_ADDRESS_3>:554/stream1#video=copy#audio=copy#audio=aac"
|
||||||
|
camera_3_sub:
|
||||||
|
- rtsp://<USER>:<PASS>@<IP_ADDRESS_3>:554/stream2
|
||||||
|
|
||||||
|
cameras:
|
||||||
|
camera_1: # 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
|
||||||
|
|
||||||
|
camera_2:
|
||||||
|
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
|
||||||
|
|
||||||
|
camera_3:
|
||||||
|
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
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
services:
|
services:
|
||||||
frigate:
|
frigate:
|
||||||
image: ghcr.io/blakeblackshear/frigate:stable
|
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
|
||||||
|
privileged: true
|
||||||
|
devices:
|
||||||
|
- /dev/nvidia0:/dev/nvidia0
|
||||||
|
- /dev/nvidiactl:/dev/nvidiactl
|
||||||
|
- /dev/nvidia-uvm:/dev/nvidia-uvm
|
||||||
|
- /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
|
||||||
container_name: frigate
|
container_name: frigate
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|
@ -16,7 +22,7 @@ services:
|
||||||
runtime: nvidia
|
runtime: nvidia
|
||||||
environment:
|
environment:
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
- NVIDIA_DRIVER_CAPABILITIES=all
|
- NVIDIA_DRIVER_CAPABILITIES=all,video,compute
|
||||||
- FRIGATE_SQLITE_PATH=/config/frigate.db
|
- FRIGATE_SQLITE_PATH=/config/frigate.db
|
||||||
- FRIGATE_SQLITE_JOURNAL_MODE=DELETE
|
- FRIGATE_SQLITE_JOURNAL_MODE=DELETE
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
|
|
@ -24,3 +30,12 @@ services:
|
||||||
cpus: "2.0"
|
cpus: "2.0"
|
||||||
mem_limit: "6144m"
|
mem_limit: "6144m"
|
||||||
mem_reservation: "2048m"
|
mem_reservation: "2048m"
|
||||||
|
|
||||||
|
services:
|
||||||
|
frigate:
|
||||||
|
container_name: frigate
|
||||||
|
# Use the TensorRT image to use your 3050 for detection as well as decoding
|
||||||
|
|
||||||
|
environment:
|
||||||
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
# ... rest of your config (volumes, ports)
|
||||||
Loading…
Reference in a new issue