Skip to content

Update mp3lame to 4.0 from 3.100 and build it without the decoder - #832

Merged
wader merged 1 commit into
wader:masterfrom
Dummgelaufen007:mp3lame-4.0
Oct 11, 2026
Merged

wader merged 1 commit into
wader:masterfrom
Dummgelaufen007:mp3lame-4.0

Conversation

@Dummgelaufen007

Copy link
Copy Markdown
Contributor

Supersedes #775. Three lines in the lame recipe: version, checksum and --disable-decoder. No mpg123 and no lld needed.

lame 4.0 takes its MP3 decoder from an external libmpg123, and configure stops with "libmpg123 not found" unless the decoder is switched off (configure.ac, lines 572-595).

ffmpeg never reaches that decoder:

  • its configure check asks only for the encoder function lame_set_VBR_quality (configure#L7398), and libmp3lame is used only by libmp3lame_encoder (#L3848)
  • libavcodec/libmp3lame.c calls lame_init, lame_set_*, lame_init_params, lame_get_encoder_delay/framesize, lame_encode_buffer*, lame_encode_flush and lame_close; no hip_* and no lame_set_decode_on_the_fly

Tested in Alpine 3.24.2 containers on x86_64 and aarch64 (aarch64 under qemu-user emulation): lame 4.0 builds with these flags, libmp3lame.a has no reference to mpg123, ffmpeg's configure test links, and an encode through the calls ffmpeg makes returns valid MP3 frames. The full ffmpeg link is left to the CI of this PR.

Research and wording by Claude (Anthropic), directed and reviewed by me.

@wader

wader commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Much better, thanks!

@wader
wader merged commit 3670897 into wader:master Oct 11, 2026
2 checks passed
Dummgelaufen007 added a commit to Dummgelaufen007/static-ffmpeg that referenced this pull request Oct 12, 2026
Upstream master de497ed (pull requests wader#831 and wader#832) bumps fdk-aac to
3.0.0 and mp3lame to 4.0 and builds mp3lame without the decoder.

- Dockerfile is the one of de497ed.
- Every variant takes over fdk-aac 3.0.0 and mp3lame 4.0 and their
  checksums.
- The clean and stab variants take over --disable-decoder in mp3lame.
  The opt variants already had it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Dummgelaufen007
Dummgelaufen007 deleted the mp3lame-4.0 branch October 14, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants