Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Automatically free up space on SD card by deleting old clips #100

Open
evilC opened this issue Jan 19, 2023 · 1 comment
Labels
dvr enhancement New feature or request

Comments

@evilC
Copy link
Contributor

evilC commented Jan 19, 2023

Add an option such that when the SD card is full, the oldest file is deleted to make space.
Obviously, with no accurate timestamp, this is not completely trivial.
I would guess that file index could be used instead of timestamp, but I guess over time, unless the recordings were completely cleared, this would result in the indexes getting ever bigger. A quick glance at the code however indicates to me that filenames are a max of 128 characters, so this would leave us with billions of indexes, rendering this issue effectively moot (Although how long would a filename have to get for it to start to be a problem in the UI?)

If implemented (And if #96 / #99 ends up being merged), hot clips should not be deleted when freeing up space

@evilC evilC changed the title Feature request: Circular recording Feature request: Automatically free up space on SD card by deleting old clips Jan 19, 2023
@bkleiner bkleiner added the enhancement New feature or request label Jan 28, 2023
@bkleiner bkleiner added the dvr label Feb 19, 2023
@matyas-brenner
Copy link

This would be great for VRX4 as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dvr enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants