Repository navigation
AceForge 0.6.17
MP3 encoding no longer depends on the machine
The previous release shelled out to a system ffmpeg for MP3. That made the
feature depend on what happened to be installed, with the quietest possible
failure mode: the render still succeeded, the WAV was still correct, nothing
looked broken, and the files were just large.
The app already bundles its engine for exactly this reason. The encoder now
travels the same way -- 1.44 MiB added to an 83.8 MiB deb.
Why a separate executable rather than a crate: every pure-Rust MP3 encoder is
LGPL, and Rust links statically, so pulling one in would place LGPL code inside
this MIT binary and oblige the app to be relinkable. As a separate executable it
is mere aggregation -- replaceable, deletable, and this project stays MIT. Its
licence ships beside it as COPYING.LAME.txt and the README records why.
Built fully static, deliberately. The first build linked libtinfo (ncurses, for
lame's progress bar) and would have failed on any machine without it, which is
precisely the problem bundling exists to solve. scripts/build-lame.sh fails the
build if ldd reports anything but "not a dynamic executable".
Resolution order is bundled encoder, then a system ffmpeg for a broken or
half-extracted install, then WAV. The bundled one wins deliberately, so a machine
with ffmpeg and one without behave the same. The UI is told at startup whether
an encoder exists and says so on the format picker, instead of leaving it to be
inferred from file sizes.
Verified end to end against the installed binary: 30s of 48 kHz stereo PCM, 5.52
MiB, encodes to 0.46 MiB at 128k with the duration intact.
251 tests.