[Config Support]: Adding a hard drive to house recorded video #15067
-
Describe the problem you are havingI have added and mounted my new drive to the frigate LXC. mounted the drive. I can see the drive and have configured my docker-compose.yml to point the media to this drive. Frigate is still showing ~20g main drive as storage. I can't figure out how to run docker compose on this LXC. Filesystem 1K-blocks Used Available Use% Mounted on Version0.14.1 Frigate config filemqtt:
host: 10.146.1.10
port: 1883
user: mqtt-user
password: MA5on20!3!
topic_prefix: frigate
client_id: frigate
stats_interval: 60
#birdseye:
# enabled: True
# mode: continuous
cameras:
Office:
detect:
width: 640
height: 480
fps: 15
ffmpeg:
hwaccel_args: preset-nvidia-h264
inputs:
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
FrontYard:
detect:
width: 640
height: 480
fps: 15
ffmpeg:
hwaccel_args: preset-nvidia-h264
inputs:
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
BackYard:
detect:
width: 640
height: 480
fps: 15
ffmpeg:
hwaccel_args: preset-nvidia-h264
inputs:
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=0
roles:
- record
- path: rtsp://frigate:[email protected]:554/cam/realmonitor?channel=1&subtype=1
roles:
- detect
detectors:
coral1:
type: edgetpu
device: pci:0
coral2:
type: edgetpu
device: pci:1
record:
enabled: True
retain:
days: 7
mode: all
events:
retain:
default: 30
mode: motion
#ov:
# type: openvino
# device: CPU
# model:
# path: /openvino-model/FP16/ssdlite_mobilenet_v2.xml
#model:
# width: 320
# height: 320
# input_tensor: nhwc
# input_pixel_format: bgr
# labelmap_path: /openvino-model/coco_91cl_bkgr.txt
version: 0.14 Relevant Frigate log output2024-11-19 08:00:31.371461 [INFO] Preparing Frigate...
2024-11-19 08:00:31.371514 [INFO] Starting Frigate...
2024-11-19 08:00:32.434807 [2024-11-19 08:00:32] frigate.app INFO : Starting Frigate (0.14.1-)
2024-11-19 08:00:32.434877 [2024-11-19 08:00:32] frigate.util.config INFO : Checking if frigate config needs migration...
2024-11-19 08:00:32.448519 [2024-11-19 08:00:32] frigate.util.config INFO : frigate config does not need migration...
2024-11-19 08:00:34.012461 [2024-11-19 08:00:34] frigate.util.services WARNING : Did not detect hwaccel, using a GPU for accelerated video decoding is highly recommended
2024-11-19 08:00:34.013083 [2024-11-19 08:00:34] frigate.config WARNING : Office detect fps is set to 15. This does NOT need to match your camera's frame rate. High values could lead to reduced performance. Recommended value is 5.
2024-11-19 08:00:34.013883 [2024-11-19 08:00:34] frigate.config WARNING : FrontYard detect fps is set to 15. This does NOT need to match your camera's frame rate. High values could lead to reduced performance. Recommended value is 5.
2024-11-19 08:00:34.014335 [2024-11-19 08:00:34] frigate.config WARNING : BackYard detect fps is set to 15. This does NOT need to match your camera's frame rate. High values could lead to reduced performance. Recommended value is 5.
2024-11-19 08:00:34.046104 [2024-11-19 08:00:34] peewee_migrate.logs INFO : Starting migrations
2024-11-19 08:00:34.046135 [2024-11-19 08:00:34] peewee_migrate.logs INFO : There is nothing to migrate
2024-11-19 08:00:34.053996 [2024-11-19 08:00:34] frigate.app INFO : Recording process started: 4968
2024-11-19 08:00:34.058589 [2024-11-19 08:00:34] frigate.app INFO : Recording process started: 4973
2024-11-19 08:00:34.060688 [2024-11-19 08:00:34] frigate.app INFO : go2rtc process pid: 146
2024-11-19 08:00:34.092841 [2024-11-19 08:00:34] detector.coral1 INFO : Starting detection process: 5001
2024-11-19 08:00:34.102089 [2024-11-19 08:00:34] detector.coral2 INFO : Starting detection process: 5009
2024-11-19 08:00:34.102135 [2024-11-19 08:00:34] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci:0
2024-11-19 08:00:34.102152 [2024-11-19 08:00:34] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-11-19 08:00:34.104462 [2024-11-19 08:00:34] frigate.detectors.plugins.edgetpu_tfl INFO : Attempting to load TPU as pci:1
2024-11-19 08:00:34.104491 [2024-11-19 08:00:34] frigate.detectors.plugins.edgetpu_tfl INFO : TPU found
2024-11-19 08:00:34.104855 [2024-11-19 08:00:34] frigate.app INFO : Output process started: 5017
2024-11-19 08:00:34.122847 [2024-11-19 08:00:34] frigate.app INFO : Camera processor started for Office: 5042
2024-11-19 08:00:34.130377 [2024-11-19 08:00:34] frigate.app INFO : Camera processor started for FrontYard: 5051
2024-11-19 08:00:34.138201 [2024-11-19 08:00:34] frigate.app INFO : Camera processor started for BackYard: 5064
2024-11-19 08:00:34.151661 [2024-11-19 08:00:34] frigate.app INFO : Capture process started for Office: 5068
2024-11-19 08:00:34.157778 [2024-11-19 08:00:34] frigate.app INFO : Capture process started for FrontYard: 5078
2024-11-19 08:00:34.157856 [2024-11-19 08:00:34] frigate.app INFO : Capture process started for BackYard: 5084
2024-11-19 08:10:34.165578 [2024-11-19 08:10:34] frigate.storage INFO : Less than 1 hour of recording space left, running storage maintenance...
2024-11-19 08:10:34.413402 [2024-11-19 08:10:34] frigate.storage ERROR : Could not clear 7790.72 MB, currently 2413.599999999993 MB have been cleared. Retained recordings must be deleted. Relevant go2rtc log outputnot used yet Frigate statsNo response Operating systemProxmox Install methodProxmox via TTeck Script docker-compose file or Docker CLI commandversion: "3"
services:
devcontainer:
container_name: frigate-devcontainer
# add groups from host for render, plugdev, video
group_add:
- "109" # render
- "110" # render
- "44" # video
- "46" # plugdev
shm_size: "256mb"
build:
context: .
dockerfile: docker/main/Dockerfile
# Use target devcontainer-trt for TensorRT dev
target: devcontainer
## Uncomment this block for nvidia gpu support
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
environment:
YOLO_MODELS: yolov7-320
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/apex_0:/dev/apex_0
- /dev/apex_1:/dev/apex_1
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
volumes:
- .:/workspace/frigate:cached
- ./web/dist:/opt/frigate/web:cached
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./recording:/media/frigate
- /dev/bus/usb:/dev/bus/usb
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
mqtt:
container_name: mqtt
image: eclipse-mosquitto:1.6
ports:
- "1883:1883" Object DetectorCoral Screenshots of the Frigate UI's System metrics pagesAny other information that may be helpfulNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is more of a Proxmox question than a Frigate support issue. None of the maintainers use Proxmox, so maybe someone from the community can be of help. |
Beta Was this translation helpful? Give feedback.
then your docker compose file is not doing anything as you don't have docker installed. You need to use the LXC to mount the recordings drive to /media/frigate/recordings in the LXC