agent icon indicating copy to clipboard operation
agent copied to clipboard

Feature request: Raw recording compression

Open GHNewbiee opened this issue 2 years ago • 6 comments

Nice to have such a feature to reduce the size of the storage means.

GHNewbiee avatar May 27 '22 17:05 GHNewbiee

@GHNewbiee how would you see this? Any feedback?

cedricve avatar Sep 08 '22 16:09 cedricve

Maybe we could have a config value named "archive old recordings every X hours/days"?

After those x hours, there could be a zip/7zip archive created with all of the recordings made after X hours.

So all of the old recordings could be compressed in their individual archive for a given day, considering they're older than X days, just an idea that could work well.

I already do this myself, after each day I create a new folder in /recordings and move all of the old recordings there.

With this done programmatically, instead of moving the recordings to folders, we could instead compress them into archives instead.

I suggest not using Linux timestamps for archives but regular date timestamps, or at least having an option to choose datetime format. Linux timestamps are epic for individual files, but would make those archives harder to figure out which day was the archive made on.

olokos avatar Sep 09 '22 10:09 olokos

wonderful idea! im just wondering what is the compression ratio you are currently experiencing? Like the total size before and after zipping..

cedricve avatar Sep 09 '22 10:09 cedricve

I just tried on windows 7zip ultra and zip ultra various settings and I was hardly getting size reduction, I guess h264 is compressed enough already.

Maybe with tar on linux results will be better? If not then maybe at least creating/choosing a directory and then moving old recordings there periodically?

Some archiving feature would be amazing, if we can't get it compressed any better with reasonable speed.

olokos avatar Sep 09 '22 22:09 olokos

Thanks I would give tar a try, however the whole idea is to use cloud storage here for backing up, and freeing up disk space.

This cloud can also be a synology at home. So that would mean you are moving recordings from the agent to your local redundant storage.

Kind regards, Verstraeten Cédric

On 10 Sep 2022, at 00:19, olokos @.***> wrote:

 I just tried on windows 7zip ultra and zip ultra various settings and I was hardly getting size reduction, I guess h264 is compressed enough already.

Maybe with tar on linux results will be better? If not then maybe at least creating/choosing a directory and then moving old recordings there periodically?

Some archiving feature would be amazing, if we can't get it compressed any better with reasonable speed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were assigned.

cedricve avatar Sep 10 '22 06:09 cedricve

There's no reason to believe that archiving compressed video would save space in this way. The best way to save space with compressed video is to use a better codec or a lower bit-rate. The redundancies standard compression algorithms would find should already be gone. Re-encoding with H265 would make a huge difference to storage though.

bigntallmike avatar Dec 16 '22 04:12 bigntallmike