frigate/frigate
Claude 6248dbf12f
Delete preview files when emergency storage cleanup removes recordings
When reduce_storage_consumption deletes old recording segments to free
disk space, it now also deletes preview files that overlap the same
time range. Without this, preview mp4 files on the same disk continued
to consume space, causing the storage maintainer to delete progressively
newer recordings while old previews accumulated — resulting in archives
where older periods had previews but no video.

This is particularly impactful for multi-path setups where each camera's
preview directory shares a disk with its recordings.

https://claude.ai/code/session_016bxjbVpx8DqpjysnGYmXdx
2026-03-13 08:51:42 +00:00
..
api Fix recordings storage roots to ignore pseudo stat paths 2026-03-07 21:58:44 +11:00
camera Various Fixes (#22263) 2026-03-04 15:53:20 -07:00
comms Debug replay (#22212) 2026-03-04 10:07:34 -06:00
config Add camera ui.rotate config/type plumbing 2026-03-08 17:49:11 +11:00
data_processing Masks and zones improvements (#22163) 2026-02-28 07:04:43 -07:00
db Improve LPR regex support (#19767) 2025-08-26 08:11:37 -05:00
detectors Full UI configuration (#22151) 2026-02-27 08:55:36 -07:00
embeddings Debug replay (#22212) 2026-03-04 10:07:34 -06:00
events Debug replay (#22212) 2026-03-04 10:07:34 -06:00
genai Fixes (#22280) 2026-03-05 14:11:32 -06:00
images Replace green screen with error message and force camera_fps to 0 (#4544) 2022-11-28 21:47:20 -06:00
jobs Fix multi-root cleanup/sync behavior and add tests 2026-03-07 10:30:46 +11:00
motion Skip motion threshold configuration (#22255) 2026-03-05 18:20:03 -06:00
object_detection [MemryX] Clean shutdown of detector process (#21035) 2025-11-25 10:25:07 -07:00
output Fix preview frame tracking and partial file cleanup 2026-03-13 05:24:38 +00:00
ptz Masks and zones improvements (#22163) 2026-02-28 07:04:43 -07:00
record Fix multi-path storage: clean all paths per cycle, prevent death loop 2026-03-13 03:33:36 +00:00
review Debug replay (#22212) 2026-03-04 10:07:34 -06:00
service_manager Add metrics page for embeddings and face / license plate processing times (#15818) 2025-02-08 12:47:01 -06:00
stats Fix multi-root cleanup/sync behavior and add tests 2026-03-07 10:30:46 +11:00
test Fix preview media sync for per-root preview directories 2026-03-09 21:03:41 +11:00
track Debug replay (#22212) 2026-03-04 10:07:34 -06:00
util Fix preview media sync for per-root preview directories 2026-03-09 21:03:41 +11:00
__init__.py app container and config schema 2021-01-26 21:40:33 -06:00
__main__.py Handle SIGINT with forkserver (#18860) 2025-08-16 10:20:33 -05:00
app.py Fix multi-root cleanup/sync behavior and add tests 2026-03-07 10:30:46 +11:00
const.py Debug replay (#22212) 2026-03-04 10:07:34 -06:00
debug_replay.py Debug replay (#22212) 2026-03-04 10:07:34 -06:00
ffmpeg_presets.py Miscellaneous Fixes (0.17 beta) (#21301) 2025-12-16 08:11:53 -06:00
log.py Add languages (#21870) 2026-02-03 13:29:52 -06:00
models.py Improve motion review and add motion search (#22253) 2026-03-05 17:53:48 -06:00
mypy.ini Enable mypy for track and fix typing errors (#19529) 2025-08-17 12:27:42 -05:00
plus.py Add ability to update Frigate+ model to latest from UI (#17324) 2025-03-24 09:19:58 -06:00
storage.py Delete preview files when emergency storage cleanup removes recordings 2026-03-13 08:51:42 +00:00
timeline.py Debug replay (#22212) 2026-03-04 10:07:34 -06:00
types.py Media sync API refactor and UI (#21542) 2026-02-26 21:27:56 -07:00
video.py Camera connection quality indicator (#21297) 2026-02-26 21:27:56 -07:00
watchdog.py Improve async object detector support (#17712) 2025-04-15 08:55:38 -05:00