[Config Support]: One camera not deleting old recordings #15729
-
Describe the problem you are havingRecently switched to retaining all recordings for 1 day to see how much space it would take. One of my cameras (porch) stabilized around 85-90 GiB per day. Whereas my other camera (Driveway) has continued to store video and is around 155 GiB and growing. I can go back more than 1 day and see live recordings. The recording setting i have is global, so im unsure why this happening, or how to fix it. Version0.14.1-f4f3cfa Frigate config filemqtt:
enabled: true
host: 192.168.1.30
port: 1883
topic_prefix: frigate
user: '{FRIGATE_MQTT_USER}'
password: '{FRIGATE_MQTT_PASSWORD}'
##### Logging
logger:
default: info
logs:
frigate.detectors: debug
##### Video
ffmpeg:
hwaccel_args: preset-nvidia-h264
##### Recording
record:
sync_recordings: true
enabled: true
retain:
days: 1
mode: all
events:
pre_capture: 15
post_capture: 15
retain:
default: 30
mode: all
##### Detection
detectors:
tensorrt:
type: tensorrt
device: 0
audio:
enabled: false
min_volume: 1000 # <----- Low sensitivity
##### Snapshots
snapshots:
enabled: true
timestamp: true
bounding_box: true
retain:
default: 10
##### birdseye
birdseye:
enabled: true
mode: motion
##### Model
model:
# path: /config/model_cache/tensorrt/yolov4-tiny-416.trt # <----- Tiny Model
path: /config/model_cache/tensorrt/yolov4-416.trt # <----- Full model
input_tensor: nchw
input_pixel_format: rgb
width: 416
height: 416
labelmap:
15: cat # <----- was incorrectly mapped as "15: bird" but 15 is cat
16: dog # <----- was incorrectly mapped as "16: cat" but 16 is dog
##### Objects
objects:
track:
- person
- car
- cat
- dog
# filters:
# cat:
# min_score: 0.6 #
# dog:
# min_score: 0.6
###### Review Settings (Global)
review:
alerts:
labels:
- person
- car
# detections:
# labels:
# - person
# - car
# - cat
# - dog
###### Web streams
go2rtc:
streams:
Livingroom:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_main
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_main
Livingroom_sub:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_sub
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_sub
Kitchen:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_main
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_main
Kitchen_sub:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_sub
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_sub
Driveway:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_main
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_main
Driveway_sub:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_sub
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_sub
Porch:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_main
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_main
Porch_sub:
- ffmpeg:rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_sub
- rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_sub
###### Cameras
cameras:
## LIVINGROOM ##
Livingroom:
enabled: true
record: # <----- Recording setting
enabled: false
detect:
enabled: false
width: 1280
height: 720
audio:
enabled: false
birdseye:
order: 3
ffmpeg:
inputs:
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_sub # <----- The stream you want to use for detection.. add one for recording later
input_args: preset-rtsp-restream
roles:
- detect
- audio
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.10/h264Preview_01_main # <----- Recording stream
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-copy # <----- audio on recordings
onvif:
host: 192.168.80.10
port: 8000
user: '{FRIGATE_REOLINK_USER}'
password: '{FRIGATE_REOLINK_PASSWORD}'
review:
detections:
labels:
- person
- car
- cat
- dog
alerts:
labels: []
motion:
mask: 0.01,0.075,0.315,0.079,0.316,0.01,0.012,0.01
## KITCHEN ##
Kitchen:
enabled: true
record:
enabled: false
detect:
enabled: false
width: 1280
height: 720
review:
detections:
labels:
- person
- cat
- dog
- car
alerts:
labels: []
audio:
enabled: false
birdseye:
order: 4
ffmpeg:
inputs:
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_sub # <----- The stream you want to use for detection.. add one for recording later
input_args: preset-rtsp-restream
roles:
- detect
- audio
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.11/h264Preview_01_main
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-copy # <----- audio on recordings
onvif:
host: 192.168.80.11
port: 8000
user: '{FRIGATE_REOLINK_USER}'
password: '{FRIGATE_REOLINK_PASSWORD}'
motion:
mask: 0.01,0.07,0.308,0.075,0.311,0.019,0.01,0.014
## DRIVEWAY ##
Driveway:
enabled: true
detect:
enabled: true
width: 1280
height: 720
review:
alerts:
required_zones: Driveway_zone
birdseye:
order: 2
ffmpeg:
inputs:
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_sub
input_args: preset-rtsp-restream
roles:
- detect
# - audio
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.12/h264Preview_01_main
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-copy
# ffmpeg: ## TESTING CONFIG ##
# inputs:
# - path: /media/frigate/testing/nodetect2.mp4 # TESTING
# input_args: -re -stream_loop -1 -fflags +genpts # TESTING
# roles:
# - detect
# - audio
# - record
# # output_args:
# # record: preset-record-generic-audio-copy # <----- audio on recordings
onvif:
host: 192.168.80.12
port: 8000
user: '{FRIGATE_REOLINK_USER}'
password: '{FRIGATE_REOLINK_PASSWORD}'
zones:
Street:
coordinates: 0,0.51,0,0.865,0.17,0.677,0.438,0.346,0.778,0.087,0.727,0.02,0.29,0.286
loitering_time: 0
inertia: 3
Driveway_zone:
coordinates: 0.914,0.261,0.613,0.228,0.444,0.365,0.068,0.85,0.162,1,0.995,1,1,0.383
loitering_time: 0
inertia: 3
motion:
mask:
- 0,0.207,0.305,0.064,0.32,0,0,0
- 0,0.786,0.049,0.645,0.041,0.368,0,0.254
- 1,0.268,0.754,0.164,0.615,0.088,0.576,0.043,0.566,0,1,0
threshold: 50
contour_area: 20
improve_contrast: 'true'
## PORCH ##
Porch:
enabled: true
detect:
enabled: true
width: 1280
height: 720
review:
alerts:
required_zones:
- Porch_zone
- Front_Yard
birdseye:
order: 1
ffmpeg:
inputs:
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_sub # <----- RTSP Stream... stutters sometimes? Specific to RLC-1240A
# rtmp://192.168.80.13/bcs/channel0_sub.bcs?channel=0&stream=0&user=admin&password=c4nBudpQGxwyjiuJEMCc #<----- RTMP stream is smooth
input_args: preset-rtsp-restream
# input_args: preset-rtmp-generic #<------ RTSP stream
roles:
- detect
# - audio
- path:
rtsp://{FRIGATE_REOLINK_USER}:{FRIGATE_REOLINK_PASSWORD}@192.168.80.13/h264Preview_01_main
input_args: preset-rtsp-restream
roles:
- record
output_args:
record: preset-record-generic-audio-copy
# ffmpeg: ## TESTING CONFIG ##
# hwaccel_args: preset-nvidia-h264
# inputs:
# - path: /media/frigate/testing/car.mp4 # TESTING
# input_args: -re -stream_loop -1 -fflags +genpts # TESTING
# roles:
# - detect
# - audio
# - record
# output_args:
# record: preset-record-generic-audio-copy # <----- audio on recordings
onvif:
host: 192.168.80.13
port: 8000
user: '{FRIGATE_REOLINK_USER}'
password: '{FRIGATE_REOLINK_PASSWORD}'
motion:
mask:
- 0.005,0.078,0.428,0.083,0.43,0.011,0.006,0.01
- 0.921,0.596,0.896,0.472,0.881,0.325,0.874,0.154,1,0.267,1,0.722,0.972,0.697
threshold: 30
contour_area: 10
improve_contrast: 'true'
zones:
Street:
coordinates:
0.998,0.755,0.805,0.5,0.542,0.237,0.343,0.105,0.342,0.005,0.47,0.009,0.794,0.17,0.955,0.346,0.999,0.445
loitering_time: 0
inertia: 3
Porch_zone:
coordinates:
0.334,0.347,0.322,0.331,0.31,0.339,0.288,0.313,0.16,0.388,0.253,0.999,0.828,0.998,0.338,0.388
loitering_time: 0
objects:
- cat
- dog
- person
Front_Yard:
coordinates: 0.509,0.266,0.78,0.56,0.901,0.722,0.876,0.815,0.345,0.243,0.455,0.206
loitering_time: 0
objects:
- cat
- dog
- person
##### Groups
camera_groups:
Indoors:
order: 2
icon: LuCat
cameras:
- Kitchen
- Livingroom
Outdoors:
order: 1
icon: LuTrees
cameras:
- Driveway
- Porch
Birdseye:
order: 3
icon: LuEye
cameras: birdseye
version: 0.14 Relevant Frigate log output2024-12-29 23:12:19.496813647 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::ScatterND version 1
2024-12-29 23:12:19.496847599 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::SeqLen2Spatial version 1
2024-12-29 23:12:19.496850059 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::SpecialSlice_TRT version 1
2024-12-29 23:12:19.496852410 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::SplitGeLU version 1
2024-12-29 23:12:19.496853910 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::Split version 1
2024-12-29 23:12:19.496856014 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt DEBUG : Registered plugin creator - ::VoxelGeneratorPlugin version 1
2024-12-29 23:12:19.885250827 [2024-12-29 23:12:19] frigate.detectors.plugins.tensorrt INFO : Loaded engine size: 382 MiB
2024-12-29 23:12:20.099958708 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Trying to load shared library libcublas.so.11
2024-12-29 23:12:20.100527177 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Loaded shared library libcublas.so.11
2024-12-29 23:12:20.122795703 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cublas as plugin tactic source
2024-12-29 23:12:20.122883606 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cublas as core library tactic source
2024-12-29 23:12:20.123064794 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +6, GPU +8, now: CPU 522, GPU 500 (MiB)
2024-12-29 23:12:20.123289624 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Trying to load shared library libcudnn.so.8
2024-12-29 23:12:20.123439093 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Loaded shared library libcudnn.so.8
2024-12-29 23:12:20.123555826 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cuDNN as plugin tactic source
2024-12-29 23:12:20.131560585 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cuDNN as core library tactic source
2024-12-29 23:12:20.131564300 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +1, GPU +10, now: CPU 523, GPU 510 (MiB)
2024-12-29 23:12:20.136695729 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Deserialization required 93969 microseconds.
2024-12-29 23:12:20.137407352 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +384, now: CPU 0, GPU 384 (MiB)
2024-12-29 23:12:20.162297063 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Trying to load shared library libcublas.so.11
2024-12-29 23:12:20.163501278 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Loaded shared library libcublas.so.11
2024-12-29 23:12:20.163848122 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cublas as plugin tactic source
2024-12-29 23:12:20.163930087 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cublas as core library tactic source
2024-12-29 23:12:20.164005510 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuBLAS/cuBLASLt: CPU +0, GPU +8, now: CPU 141, GPU 504 (MiB)
2024-12-29 23:12:20.164081677 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Trying to load shared library libcudnn.so.8
2024-12-29 23:12:20.164136396 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Loaded shared library libcudnn.so.8
2024-12-29 23:12:20.164209189 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cuDNN as plugin tactic source
2024-12-29 23:12:20.164279672 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Using cuDNN as core library tactic source
2024-12-29 23:12:20.164478869 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] Init cuDNN: CPU +1, GPU +8, now: CPU 142, GPU 512 (MiB)
2024-12-29 23:12:20.164482441 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Total per-runner device persistent memory is 3107328
2024-12-29 23:12:20.164485036 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Total per-runner host persistent memory is 245040
2024-12-29 23:12:20.164591041 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Allocated activation device memory of size 67838464
2024-12-29 23:12:20.164663235 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt INFO : [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +67, now: CPU 0, GPU 451 (MiB)
2024-12-29 23:12:20.164736068 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : CUDA lazy loading is enabled.
2024-12-29 23:12:20.164845424 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Allocated Tensor Binding input Memory 2076672 Bytes (519168 * DataType.FLOAT)
2024-12-29 23:12:20.164917031 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Input has Shape (1, 3, 416, 416)
2024-12-29 23:12:20.164979797 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Allocated Tensor Binding detections Memory 298116 Bytes (74529 * DataType.FLOAT)
2024-12-29 23:12:20.165050204 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : Output has Shape (1, 74529, 1, 1)
2024-12-29 23:12:20.165122041 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : TensorRT loaded. Input shape is ((416, 416), <class 'numpy.float32'>)
2024-12-29 23:12:20.165199209 [2024-12-29 23:12:20] frigate.detectors.plugins.tensorrt DEBUG : TensorRT version is 8 Relevant go2rtc log output2024-12-29 23:12:14.327534696 [INFO] Preparing new go2rtc config...
2024-12-29 23:12:14.727140109 [INFO] Starting go2rtc...
2024-12-29 23:12:14.864996167 23:12:14.864 INF go2rtc platform=linux/amd64 revision=b2399f3 version=1.9.2
2024-12-29 23:12:14.865041987 23:12:14.864 INF config path=/dev/shm/go2rtc.yaml
2024-12-29 23:12:14.865430055 23:12:14.865 INF [api] listen addr=:1984
2024-12-29 23:12:14.865660411 23:12:14.865 INF [rtsp] listen addr=:8554
2024-12-29 23:12:14.865997635 23:12:14.865 INF [webrtc] listen addr=:8555/tcp
2024-12-29 23:12:24.322708001 [INFO] Starting go2rtc healthcheck service... Frigate statsNo response Operating systemUNRAID Install methodDocker CLI docker-compose file or Docker CLI commandUnraid docker manager Object DetectorTensorRT 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 9 replies
-
Would be good to see the recordings directories and what each camera shows as. What does the storage metrics page show? |
Beta Was this translation helpful? Give feedback.
Driveway likely detected objects, so some recordings are being kept for it