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

Compression? #5

Open
ruslanjabari opened this issue Dec 28, 2023 · 2 comments
Open

Compression? #5

ruslanjabari opened this issue Dec 28, 2023 · 2 comments

Comments

@ruslanjabari
Copy link
Contributor

@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
Copy link
Owner

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

  • remove certain things
  • Don’t include a line if it’s already been seen in the current text. And this is only useful for “copy recent context” currently. But a small tweak could be to check the previous frame’s text and add only a diff. I’m sure there are way better ways to do this

@jasonjmcghee
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants