[Config Support]: How to keep all video from X number past days, along with detections #22029
Replies: 3 comments 2 replies
|
Your configuration looks correct for retaining all continuous recordings for 2 days along with detection recordings for 15 days(1)(2). Based on your config, Frigate should be:
To verify recordings are being saved, check:
Your configuration should look like this at the camera level: cameras:
your_camera_name:
ffmpeg:
inputs:
- path: rtsp://your_camera_path
roles:
- detect
- record # Make sure this is presentIf recordings still aren't appearing, verify that:
📚 Sources: Have another question? Just tag @inkeep. |
|
This is actually somewhat confusing in Frigate 0.16, which is why recording retention has been improved in Frigate 0.17 (currently in release candidate status) to be fully tiered. In 0.17, you can do something like this: For users deploying Frigate in environments where it is important to have contiguous video stored even if there was no detectable motion, the following config will store all video for 3 days. After 3 days, only video containing motion will be saved for 7 days. After 7 days, only video containing motion and overlapping with alerts or detections will be retained until 30 days have passed. See the dev docs for more examples: https://docs-dev.frigate.video/configuration/record/ |
|
Your configuration for Frigate 0.16.4 is set up correctly for continuous recording with Check the recordings directory structure: Recordings are stored at
Verify storage and retention: As of Frigate 0.12, if there is less than an hour left of storage, the oldest 2 hours of recordings will be deleted(1). Check your System metrics page to ensure:
Understand retention behavior: Frigate chooses the largest matching retention value between the recording retention and the tracked object retention when determining if a recording should be removed(1). With your config:
This means segments with alerts/detections will be kept for 15 days, while all other continuous footage will be kept for 2 days(1). Note about Frigate 0.17: As mentioned by @hawkeye217, Frigate 0.17 (currently in release candidate status) introduces improved tiered retention that makes this configuration clearer and more flexible. If continuous recording visibility continues to be an issue in 0.16, you may want to consider upgrading to 0.17 when it's released. 📚 Sources: Have another question? Just tag @inkeep. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Describe the problem you are having
THANK YOU for providing Frigate. It's been a great addition to our HAOS, and it's awesome it can utilize Coral and inference models.
I'm struggling to figure out how to keep all video from X prior days. Frigate is keeping events, and I see those when I review in the GUI, but I'm not seeing the continuous video recordings from the past X days.
Where am I going wrong?
Thanks in advance,
Ari
Here's the relevant part of my config:
Version
0.16.4-4131252
Frigate config file
Relevant Frigate log output
Relevant go2rtc log output
Frigate stats
No response
Operating system
Home Assistant OS
Install method
Home Assistant Add-on
docker-compose file or Docker CLI command
n/aObject Detector
Coral
Screenshots of the Frigate UI's System metrics pages
No response
Any other information that may be helpful
No response
All reactions