mp3packercpp is a modern C++17 port of the original mp3packer utility. It focuses on providing lossless MP3 repacking and aggressive Huffman tree recompression to minimize the file size of MP3 audio without any loss in audio quality.
While the original tool was written in OCaml, this port aims to provide a native and easily compilable C++ alternative. Please note that not all features from the original mp3packer have been ported; this project focuses strictly on the recompression and bit reservoir constraint solving logic, including the Huffman recompression.
The project uses CMake for its build system. A C++17 compliant compiler is required.
To build the project:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config ReleaseThe original mp3packer was written in OCaml. The source code for the original version can be found here.
Additionally, an effort to modernize the original OCaml codebase for OCaml 5.3.0 and the Dune build system is available in this branch. Pre-built binaries of the original OCaml version can also be easily downloaded from that repository branch.