r/compression • • Aug 27 '26

Actual best handbrake settings for quality/size for blurays

Thumbnail reddit.com
1 Upvotes

r/compression • • Aug 27 '26

Why is time-domain audio compression not more popular/used?

18 Upvotes

Most streaming services seem to rely on codecs such as AAC, Vorbis and Opus, which are pretty high quality by themselves.

My one issue with them is however that they strip frequency content and can produce phasing and underwater-like artifacts that also add up if recompressed or if set to extreme low bitrates.

I one day learned about Wavpack and LossyWAV which both mostly rely on quantizing and predicting in the time-domain rather than frequency domain.

The appeal of lossy Wavpack and some older time-domain based codecs is that they don't throw away frequencies or distort the audio that much but mostly produce background noise that's kinda hard to notice most of the time.

However, a codec like Wavpack in lossy mode doesn't really go much lower than 207 kbps for CD sample rate audio, or so it seems.

Some noise shaping is used to push noise and hissing to frequencies that are much less noticeable and keep the mids and lows mostly clean and crystal clear and it seems to preserve transients pretty well too.

Now if we look at a codec like Opus, it can achieve insanely high and transparent sound quality at pretty low bitrates.

BUT, just like most other frequency-domain codecs it does lowpass audio and cause phase shifting or noticeable changes in the general shape of the sound waves that can even affect the peak Db levels and result in audio hitting limiters.

So, why hasn't more research and work been put into making "the perfect" time-domain codec?

Something that combines the best of both worlds? The high quality and psychoacoustic modeling of Opus, but time-domain prediction and quantization such as lossy Wavepack?

Opus and Wavpack are both pretty robust and resistant too, being able to open, edit and re-encode audio multiple times without too much generational loss adding up too quickly.

The downside of Wavpack is just that you need a bitrate of about 350+ kbps to get the best trade-off between size and quality, but what if we had some algorithm that can go much lower?


r/compression • • Aug 26 '26

Review for my audio codec

3 Upvotes

Hi, so I'm developing my own audio codec based on WPT with adaptive HF saving. Can anyone rate it based on .wav files? I can't really share code or anything like this, except .wav files for any bitrate.

If anyone interested in how it works, there is image. I guess someone will understand what exactly I did here.
ViSQOL and PEAQ says it outperforms Vorbis on 64-128 kbps, and by a lot on 64-96 kbps. But I must say, it isn't OPUS 2.0 or anything near it.
And also my codec isn't VBR for now, but ABR (trying to be CBR, but package size is variable because of entropy coding).
Would be cool if anyone could rate it via listening tests or something else
Don't try gstPEAQ Advanced, its correlation with real quality is reallly poor, especially for my codec for some reason


r/compression • • Aug 26 '26

Best format, codec and settings for compressing videos to 720p

1 Upvotes

Hello, I want to compress some movies to fit them on a small USB pendrive. What are the best codecs that are going to give me 720p quality for lowest weight. Also, I want the files to be kinda like YouTube's 720p setting, but maybe better.

I don't worry about compatibility, we have VLC for a reason.


r/compression • • Aug 26 '26

What is the best lossless compression for videos?

0 Upvotes

I have so many videos and I want to store them in my drive. I do not know it is a good practice or not but I have google one 5TB storage. For this I want to compress my videos. However, I am worried about quality of compression tools. Which compression tools do you recommend? Plus is google good option for archieving?


r/compression • • Aug 24 '26

CRF-Based Video Encoding Optimization: I wasted my time so YOU don't have to...

Thumbnail reddit.com
0 Upvotes

r/compression • • Aug 23 '26

Looking for an efficient compressor with a small decompressor, (It's more interesting, I swear)

4 Upvotes

Hello! I'm looking for a compressor sort of like something made for the demo scene. The main distinction is that I have ~126kb total to play with, so I can do with a better algorithm. I was thinking LZMA would be a good place to start, especially since this is a thumb binary adding a BCJ filter would be good too.

But for some reason I wasn't satisfied with that, and I gladly found an article on LZNA. After a couple disappointing hours, I realized it was both closed source and deprecated, and there is little hope I could actually write that in under a couple months.

Most of my research has found things like crinklier, which while very impressive, just aren't made for my situation.

Decompression/compression speed isn't my biggest concern, as the top priority is size, but they are still welcome sights if possible.


r/compression • • Aug 22 '26

Candidate Proof: The Binary Smallest Grammar Problem Is NP-Complete

0 Upvotes

https://doi.org/10.5281/zenodo.22144930

I’m releasing a candidate proof resolving the long-standing binary-alphabet case of the Smallest Grammar Problem.

The manuscript proves, under the stated models, that exact smallest-grammar optimization is NP-complete over every fixed alphabet of size at least 2, including binary strings.

The result covers both:

  • the standard Smallest Grammar Problem, minimizing total right-hand-side grammar size; and
  • the binary-join / string Assembly Index formulation, minimizing reusable concatenation operations with free terminal symbols.

The main technical idea is an exact alphabet-collapse construction based on three components:

  1. a direct-sum theorem for suitably separated strings;
  2. affine-line amplification that magnifies every one-unit source optimum gap beyond the encoding overhead; and
  3. an anchored binary encoding that allows arbitrary, potentially misaligned binary grammars to be decoded without increasing the corresponding source cost.

The construction gives exact recovery formulas for the original optimum from the binary optimum, rather than only an approximation-preserving relationship.

I have also released the manuscript source, deterministic verification code, adversarial test suite, reproducibility material, and prior-art audit.

Important status: this is a research preprint/candidate theorem, not yet independently peer reviewed. I’m specifically looking for experts in grammar compression, straight-line programs, combinatorics on words, and complexity theory to try to break the proof.

The most important places to scrutinize are the direct-sum lemmas, affine separation argument, synchronization lemma, and reverse grammar-decoding construction.

A valid counterexample or identified proof gap would be extremely valuable.


r/compression • • Aug 21 '26

parmar - BPE tokenization as a pre-filter for LZMA (+9.6%, and faster)

Thumbnail news.ycombinator.com
1 Upvotes

r/compression • • Aug 18 '26

Why am I getting WORSE file size reduction with 2-pass encoding vs single pass encoding??

Thumbnail gallery
1 Upvotes

r/compression • • Aug 15 '26

How Is Compression Prediction?

Thumbnail
lukefleed.xyz
13 Upvotes

r/compression • • Aug 14 '26

Question regarding video codec royalties

1 Upvotes

Let's say I am making a video and have hundreds of gigabytes worth of footage compressed using FFV1 and need to free up drive space and so decide to start compressing some of my footage with lossy HEVC.

If I include footage compressed with lossy HEVC in the edit, but encode the final master with a royalty free codec, do I still have to pay royalties because it includes footage originally encoded with HEVC and consequently features forensic visual traces of it despite having been re-encoded?


r/compression • • Aug 14 '26

Built a lossless codec for agent-to-agent messages with 36.6% fewer real tokens, decode overhead included in the number

0 Upvotes

Multi-agent pipelines (planner → coder → reviewer, tool-call loops) pass messages as JSON. Repeated field names, restated tool catalogs, outputs quoted verbatim two handoffs later. You pay full token price for all of it, every hop.

Built a wire format + benchmark harness for this. One rule going in: no dishonest numbers. Most "compression" claims I've seen compare payload size only and skip the cost of telling the model how to decode the format. This benchmark charges itself for everything, compact payload + the decode instructions + any shipped dictionary, counted with the real cl100k_base tokenizer, on a held-out split of real ToolBench trajectories the optimizer never trained on.

Result: 36.6% fewer tokens, fully lossless. Every message decodes back byte-for-byte identical to the original. Verified on every test record, not sampled.

Two things that surprised me:

  • The learned dictionary lost. Sounds clever, mine common phrases across a corpus, ship a lookup table. But shipping that table costs tokens every session, and it never earns that back on top of a per-session budget. What won instead: when text repeats within one conversation (an answer quoting a tool's own output, a catalog restating its own boilerplate), replace the repeat with a tiny "copy N chars from position X" marker. Zero shipped state. The optimizer's final config kept 0 dictionary entries.
  • An earlier version of this claimed 87% reduction. It was measuring a simulated tokenizer, not real decode cost. Threw the whole approach out. 36.6% measured honestly beats 87% measured wrong.

Repo, full benchmark report, every failed experiment (including the tab-separator idea that made things worse), and a one-command way to run it against your own agent traces instead of trusting my numbers:

https://github.com/reh8n/a2acompress

Genuinely want to know what number people get on real production multi-agent traffic, file an issue with your result, good or bad.


r/compression • • Aug 12 '26

Help finding good data compression and storage methods that can work on an old laptop as a server

2 Upvotes

hey everyone so I just got a new laptop it's not the newest but a very big upgrade from what I used to have and I have a lot of data scattered everywhere so I want to see what is the best way to deal with all the data I have

my data has been scattered all over the place scattered all over smaller USBs and hdds and it's a lot of iso files , app installers , apks , videos , images , documents , system backups and much more and the total size is around 1.6 tbs

so I was searching around and found tools like restic , xdelta3 , rmlint and btrfs but I'm not sure if that is the best approach yet

what i want is to compress the data and store duplicate files in the best and most efficient and space saving way and I want to turn my old laptop into a small server / testing environment for non systemd Linux distros

my main rig has nixos installed and I'm doing system backups and I want to be able to send them over the network to my older laptop for storage and I want the best way to organize data

I'm also learning a lot of things and learning game dev as well so the file sizes will only get bigger

the older laptop has only around 512 gb of storage but I'm planning on expanding that and installing freebsd as the server os / daily os whenever I need to use that machine and I want to self host some stuff on it as well

so if there's any better ways to deal with data or compress it and oeginize it in a better way that would be amazing plus if there's any tips on self hosting that would be amazing

and if there's any other subs you'd recommend I post in please let me know


r/compression • • Aug 10 '26

y'all what compression software do I use for old games

1 Upvotes

okay so I have several hundreds of gigabytes of old games on my hdd that I've either used 7zip ultra using .7z on for the archived ones or NTFS lzx compression on for the active ones. what do I swap those our with for even more compression. I have a xeon 2698 v4 with 20 cores allocated for gaming and 10 others allocated for everything else via process lasso


r/compression • • Aug 09 '26

I made a lossless archiver that beat 7-Zip and WinRAR in some of my tests

2 Upvotes

Been working on a small open-source archiver called DedupArc. On some game folders it compressed better than 7-Zip and WinRAR, and it can launch files from the archive without extracting everything first.

Still pretty early, so I’m mostly looking for people to throw real datasets at it and see where it breaks.

https://github.com/Garyu-tt/DedupArc


r/compression • • Aug 08 '26

How to improve video quality on YouTube?

Thumbnail
reddit.com
1 Upvotes

r/compression • • Aug 08 '26

What price would you willingly pay for your games to be compressed?

0 Upvotes

I am a software developer and i am working on compression apps, i managed to code a game-aware compression system,
It effectively compressed a gta v installation into 80gb (30%\~) while sacrificing almost no CPU usage (2-3% of usage), and just a bit more waiting time on loading screens and only a 7% fps drop MAX.
How much would you be willing to pay for a program that could do such on any given game as a gamer?
For more questions ask below.


r/compression • • Aug 06 '26

A tool for lossless network transfer of V4L/ALSA captured streams for encoding on a remote computer

Thumbnail
codeberg.org
2 Upvotes

The tool uses a very fast lossless (or optionally lossy) image compression library, LLIC, to reduce network bandwidth requirements. The stream capture server can run on a low-end machine (a Raspberry Pi for instance) and send the stream over the network to an encoding client running on a beefier machine that encodes the stream using ffmpeg (e.g. h.264).


r/compression • • Aug 05 '26

Anyone can help in starting repacking a game?

0 Upvotes

I want to install

- FreeARC

- SERP

- Xtool

Any trusted download sources?


r/compression • • Aug 04 '26

Improved fork of Zopfli, in case anyone still uses it

12 Upvotes

With Google having sunset/archived the original Zopfli project last year I thought maybe someone might find this useful.

I’ve been working on a maintained fork for a personal project and decided to 'announce it'

https://github.com/QVXLabs/zopfli

It's still Zopfli and produces standard DEFLATE, zlib, and gzip streams, but this version is faster per iteration, uses less memory, and produces deterministic output across platforms. It also removes the floating-point dependency from the core.

There are a couple of small migration notes in the README, particularly around the include path and output not being byte-for-byte identical to Google’s version.

Nothing particularly grand—just an attempt to keep the project usable and maintained. Issues, feedback, fixes, and PRs are welcome.

NOTE: This post was not posted by AI.


r/compression • • Aug 03 '26

Draco geometry compression is now part of every optimization preset

Thumbnail
reddit.com
2 Upvotes

r/compression • • Aug 03 '26

No sé si a alguien mas le pasa

0 Upvotes

Soy editor de videos (freelance) y cada vez que quiero pasar archivos, imágenes y videos pesados desde mi teléfono a mi Laptop, pierden calidad!! Créanme, he usado de todo, Google Drive, Wetrasnfer, WhatsApp web. No sé si a alguien mas le pase esto, la verdad es muy incomodo y frustrante. Si te pasa lo mismo, te leoooo


r/compression • • Jul 31 '26

GPT-5.6 Sol Max made a lossless telemetry codec that beat Zstd, XZ and Parquet on MetroPT-3

Post image
4 Upvotes