jasonjmcghee / rem

An open source approach to locally record and enable searching everything you view on your Mac.
https://rem.ing
MIT License
2.2k stars 63 forks source link

Compression? #5

Open ruslanjabari opened 6 months ago

ruslanjabari commented 6 months ago

@jasonjmcghee have you thought about doing any sort of compression?

Rewind touts some "tradesecret" compression algo that they use.

Some simple ideas that come to mind:\ sqlite's zipvfs extension - this would compress the overall db but not the frames themselves Swift's Compression package for basic data-level compression.

I am sure there are other –  and much better – ways to go about this.

jasonjmcghee commented 6 months ago

I feel like they are mostly describing what ffmpeg does for you, but they could easily have made cool proprietary stuff.

Text compression is definitely interesting.

You can see my very sophisticated algorithm here

jasonjmcghee commented 5 months ago

In general, I think optimizing the ffmpeg videos (e.g. hevc_videotoolkit stuff, bitrate settings, etc.) is going to give us more in terms of space savings than anything else. The sqlitedb is ~1-2 orders of magnitude smaller than the sum total of their equivalent videos