# Balrogg: Lossless Vorbis/Opus recompressor shrinks files up to 15%

Original title: Balrogg: Demonically compacting (up to 15%) lossless Vorbis/Opus recompressor

> Hacker News story 49549778 · language: en · submitted 2026-09-03
> Web version: https://zeli.app/story/49549778
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 97 · by [palaiologos](<https://news.ycombinator.com/user?id=palaiologos>) · 💬 18
[original](<https://github.com/iczelia/balrogg>) · [HN discussion](<https://news.ycombinator.com/item?id=49549778>)

## Summary

Balrogg is a new open-source tool that losslessly recompresses Ogg Vorbis and Opus audio files, typically reducing them by 8-12% and 3-8% respectively, with up to 15% savings. It works by optimizing the bitstream without altering the decoded audio. The project is written in C99, supports batch processing, and offers effort levels from -1 to -9, balancing compression ratio and speed. It refuses files it cannot reproduce exactly and has been tested on Windows 95 and MS-DOS, showcasing its portability.

## Key quote

> Archives are typically 8-12% smaller than `.ogg` files and 3-8% smaller than `.opus` files.

## HN discussion (18 comments)

### [tux3](<https://news.ycombinator.com/item?id=49580700>)

> So, it looks like this tries to build a model (or rather, multiple layers of models combined with something called context mixing[0]), potentially analyzing the whole file first? Is it fair to call this a very fancy entropy coder, replacing the last phase of what a traditional audio codec does (the lossless part, after quantization)?
>
> I like the code style, this is pretty nice C. It's refreshing to see human code.
>
> [0]: https://en.wikipedia.org/wiki/Context_mixing

### [merbanan](<https://news.ycombinator.com/item?id=49580656>)

> Vorbis sends the entropy tables in the actual file at the start.
>
> https://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-470003
>
> If you have the complete file you can calculate the optimal ones. In a streaming scenario that does not work and you have use something you think is good.

### [sinnet3000](<https://news.ycombinator.com/item?id=49580750>)

> The git username sounded familiar, it's from the same developer that created bzip3.

---

## Cite

- Page: https://zeli.app/story/49549778
- Date: 2026-09-03
- Source: github.com (https://github.com/iczelia/balrogg)
- Hacker News: https://news.ycombinator.com/item?id=49549778

## Other languages

- zh: https://zeli.app/zh/story/49549778 · markdown: https://zeli.app/zh/story/49549778.md
- ja: https://zeli.app/ja/story/49549778 · markdown: https://zeli.app/ja/story/49549778.md
- ko: https://zeli.app/ko/story/49549778 · markdown: https://zeli.app/ko/story/49549778.md
- de: https://zeli.app/de/story/49549778 · markdown: https://zeli.app/de/story/49549778.md
- es: https://zeli.app/es/story/49549778 · markdown: https://zeli.app/es/story/49549778.md
- ru: https://zeli.app/ru/story/49549778 · markdown: https://zeli.app/ru/story/49549778.md
