balrogg: Lossless Vorbis/Opus Recompressor Shrinks Audio Files by Up to 15%
balrogg is a new lossless recompressor for Ogg Vorbis and Opus files, achieving 8-12% smaller archives than .ogg and 3-8% smaller than .opus. Written in C99 with no external dependencies, it offers effort levels, batch processing, and even Windows 95/DOS support.

balrogg is a new command-line tool that losslessly recompresses Ogg Vorbis and Opus audio files, typically producing archives 8-12% smaller than the original .ogg and 3-8% smaller than .opus files. The project, hosted on GitHub, is written in C99 and depends only on the C and math libraries, making it highly portable.
The tool uses a two-stage process: balrogg e compresses and balrogg d expands. It automatically detects the codec, and the -b flag enables batch processing across multiple files using all available cores. Effort levels from -1 to -9 control the compression ratio versus speed trade-off; the default is -9. For a five-megabyte music file, level -9 yields 9.8% smaller Vorbis files at 2.9 MB/s and 4.8% smaller Opus files at 2.4 MB/s.
balrogg is designed to be exact: it refuses to encode files it cannot reproduce perfectly, including those with bad checksums, invalid page sequences, or unsupported features. Opus support is currently limited to mono or stereo streams with channel mapping family 0; chained and multichannel Opus files are rejected. The encoder models Vorbis classword corrections and padding separately, and uses an adaptive byte model for shortened packets.
Installation is straightforward via package manager or building from source with the standard ./configure && make && sudo make install flow. The project also supports exotic targets: Windows 95 on i486 via MinGW, and MS-DOS via DJGPP. A 2 GiB memory cap is enforced on supported hosts to prevent unreasonable allocations, configurable via the BLR_MEMCAP environment variable.
While the tool is still pre-v2.0 and not yet stable across releases, it offers a practical way to shrink audio archives without any quality loss. For engineers managing large media libraries or distributing audio content, balrogg could be a valuable addition to the toolkit.
balrogg losslessly recompresses Ogg Vorbis and Opus files, typically producing archives 8-12% smaller than the original .ogg and 3-8% smaller than .opus.
| Effort | Vorbis | Opus |
|---|---|---|
| -1 | 8.3% smaller at 6.4 MB/s | 4.0% smaller at 4.2 MB/s |
| -9 | 9.8% smaller at 2.9 MB/s | 4.8% smaller at 2.4 MB/s |
Source: GitHub
Discussion
0 Comments
Be the first to start the discussion.