Skip to content
DraconiticResearch
Search Sources API
276,906 studies31 sourcesUpdated 19 min ago
PreprintCC BY-NC-ND 4.0arXiv

Lossless Re-Encoding of Vorbis and Opus Audio Files

Abstract

We present Balrogg, a lossless recompressor that replaces the entropy coding of Ogg Vorbis and Ogg Opus files with adaptive context mixing models. For Vorbis, we write each represent each codebook entry as a tuple of small signed integers (digits), binarized in five stages, and mixed with a direct context model, a bit-history model, and a match model, with weights selected by the neighboring digits and the previous residue pass. For Opus, each symbol is coded by an adaptive context model initialized with the codec's probability tables as priors, and the pyramid vector quantizer (PVQ) indices of the CELT layer are split recursively into pulse counts. At the default level, Balrogg reduces Vorbis music by 16.2\%, Vorbis speech by 10.6%, and Opus speech by 5.4%; xz, zstd, ZPAQ, and bzip3 save at most 4.1% on the same files. Over 48 encoder configurations, files shrink to 66.5--96.1% of their size. Encoding and decoding are symmetric, run at 1.8--3.2~MB/s per core, and use less than 12~MiB of memory.

Related

  1. Heterogeneous Demand-Private Coded Caching: Exact Characterization for Two Users and Two Files
    Tati V D N Eswar, Jithin Ravi
    arXivPreprintCC BY 4.0Full textGeneral mathematicsarXiv
  2. Asymptotically Lossless Exact and Pivotal E-Values
    Hengzhi He, Guang Cheng
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. Rates and Nearly-Lossless State over a Multi-Access Channel with Causal State Information
    Amos Lapidoth, Baohua Ni
    arXivPreprintCC BY 4.0Full textGeneral mathematicsarXiv
  4. Lossless Source Coding with Marginal Distribution Constraint
    Cheuk Ting Li, Jun Chen, Shahab Asoodeh
    arXivPreprintarXiv licenceFull textGeneral mathematicsarXiv
  5. Global and Local Entropy Tests for STL Files Under IEEE-754 Validity Constraints
    Tonislav Troev, Borislav Stoyanov
    arXivPreprintCC BY 4.0Full textGeneral mathematicsarXiv
BibTeX
@misc{szewczyk2026lossless,
  title = {{Lossless Re-Encoding of Vorbis and Opus Audio Files}},
  author = {Kamila Szewczyk},
  howpublished = {arXiv},
  year = {2026},
  month = nov,
  doi = {10.48550/arxiv.2611.32641},
  eprint = {2611.32641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32641},
  note = {CC BY-NC-ND 4.0},
}
RIS
TY  - UNPB
TI  - Lossless Re-Encoding of Vorbis and Opus Audio Files
AU  - Kamila Szewczyk
PY  - 2026
DA  - 2026/11/24
PB  - arXiv
DO  - 10.48550/arxiv.2611.32641
UR  - https://arxiv.org/abs/2611.32641
AB  - We present Balrogg, a lossless recompressor that replaces the entropy coding of Ogg Vorbis and Ogg Opus files with adaptive context mixing models. For Vorbis, we write each represent each codebook entry as a tuple of small signed integers (digits), binarized in five stages, and mixed with a direct context model, a bit-history model, and a match model, with weights selected by the neighboring digits and the previous residue pass. For Opus, each symbol is coded by an adaptive context model initialized with the codec's probability tables as priors, and the pyramid vector quantizer (PVQ) indices of the CELT layer are split recursively into pulse counts. At the default level, Balrogg reduces Vorbis music by 16.2\%, Vorbis speech by 10.6%, and Opus speech by 5.4%; xz, zstd, ZPAQ, and bzip3 save at most 4.1% on the same files. Over 48 encoder configurations, files shrink to 66.5--96.1% of their size. Encoding and decoding are symmetric, run at 1.8--3.2~MB/s per core, and use less than 12~MiB of memory.
ER  -