LAME 4.0: lesson test 2026-11-15 (passed)

Record test:sazpyyu. Question: Make a 2-second stereo test tone, encode it to MP3 at a constant bit rate, at a VBR quality and with the slowest quality setting, read rate, channels and duration, decode one back to WAV and see a low bit rate change the sample rate.

Answer, as one quotable line (version, date, result and limits together):

Cite: headlesson test:sazpyyu — LAME 4.0, 2026-11-15: 9/9 lesson steps passed (operator record). On 2026-11-15, the headlesson operator ran all 9 steps of this lesson with LAME 4.0 (macOS 27.2 arm64; Homebrew lame 4.0 already installed (no new install), sox 14.4.2_6 and ffmpeg 9.0.2_1 for the tone and checks; each step run as a fixed command string by a recording runner in an empty folder; self-made tone only, no network, no account), and all passed. The final Next step is advice and was not run. No independent check has been reviewed. This is the operator's own run, not a vendor claim. Sample tested: self-made two-second tones (44.1 kHz and 48 kHz stereo, 44.1 kHz mono), a non-audio file named .wav, a FLAC and a short MP4 made from the same tone. https://headlesson.com/tests/sazpyyu

Tested on

  • Test date: 2026-11-15
  • Record confirmed: 2026-11-15
  • Version: 4.0
  • Environment: macOS 27.2 arm64; Homebrew lame 4.0 already installed (no new install), sox 14.4.2_6 and ffmpeg 9.0.2_1 for the tone and checks; each step run as a fixed command string by a recording runner in an empty folder; self-made tone only, no network, no account
  • Sample tested: self-made two-second tones (44.1 kHz and 48 kHz stereo, 44.1 kHz mono), a non-audio file named .wav, a FLAC and a short MP4 made from the same tone
  • Result: passed, 9/9 steps

Lesson steps and what happened

  • 1. [passed] lame --version
  • 2. [passed] sox -n -r 44100 -c 2 -b 16 tone.wav synth 2 sine 440 sine 660
  • 3. [passed] lame -b 128 tone.wav cbr.mp3
  • 4. [passed] lame -V 2 tone.wav vbr.mp3
  • 5. [passed] lame -q 0 -b 192 tone.wav hq.mp3
  • 6. [passed] for f in cbr.mp3 vbr.mp3 hq.mp3; do echo "$f $(ffprobe -v error -show_entries stream=sample_rate,channels,bit_rate:format=duration -of compact=p=0 $f | tr '\n' ' ')"; done
  • 7. [passed] lame --decode vbr.mp3 back.wav
  • 8. [passed] echo "$(soxi -D back.wav) $(soxi -r back.wav) $(soxi -c back.wav) $(soxi -s back.wav)"
  • 9. [passed] lame -b 32 tone.wav low.mp3 && soxi -r low.mp3

Next (advice, not tested)

Next: Agree with the user on the input copy, the output name and the bit rate or -V setting; encode to a new file name, then compare sample rate, channels and duration of the output with the input using ffprobe or soxi before deleting or replacing anything.

Cautions recorded with the lesson

These notes come from the lesson. Some describe failures seen in tests; others are general cautions. Each one is not a separately tested result.

The current lesson on the App page has since changed; this page keeps the text at the tested revision.

  • Homebrew installs lame as a dependency of ffmpeg and sox, so it may already be present. The lesson uses sox only to make the tone and soxi and ffprobe only to read the results; lame itself needs neither.
  • lame --version prints the version and the license text and exits 0. Encoding prints progress and, for -V, a bit-rate histogram on stderr even when it succeeds.
  • A low bit rate resamples without asking: on a stereo 44.1 kHz tone, -b 32 gave 16 kHz and -b 64 gave 24 kHz (stderr: Resampling: input 44.1 kHz output 16 kHz). A mono 44.1 kHz tone at -b 64 stayed 44.1 kHz, and --resample 22.05 set the rate explicitly. Check the output sample rate.
  • -m m turned a stereo input into a mono MP3 (stderr: Autoconverting from stereo to mono).
  • -q changes the encoder effort, not the size, at a fixed bit rate. At -b 128, -q 0 and -q 9 gave files of the same size (33,017 bytes) with different bytes; -q 0 took about 0.13 s and -q 9 about 0.03 s for 2 s of audio. The same command run twice gave identical files.
  • Duration depends on the reader. For a 2 s source, ffprobe reported 2.000 s for the CBR and VBR files at 44.1 and 48 kHz, soxi reported 2.063 s for CBR and 2.037 s for VBR, and lame --decode removed the encoder delay and padding to give exactly 88,200 samples (96,000 at 48 kHz). Compare lengths with a tolerance or after decoding.
  • Writing the MP3 to stdout (lame -b 128 tone.wav -) loses that delay information. ffprobe reported 2.0375 s and --decode gave 89,327 samples instead of 88,200. The 16 kHz file from -b 32 also decoded to 32,879 samples (2.055 s), with only the start delay removed. Write to a file, and decode it to check, when the length must match.
  • An existing output file was replaced without asking (exit 0). The same name for input and output was refused with "Input file and Output file are the same. Abort." (exit 255) and the file was unchanged.
  • Failures exit 255 and leave no output file: a missing input (Could not find), a text file named .wav, a FLAC file and an MP4 file with audio (Warning: unsupported audio format), and a missing output folder (Can't init outfile). Make a WAV with sox or ffmpeg first.
  • --decode given a WAV instead of an MP3 still exits 0 and writes a WAV with the same samples, so exit 0 does not prove the input was an MP3.
  • Without an output name, lame x.wav writes x.mp3 next to the input. --mp3input re-encodes an MP3 input. --tt, --ta, --tl and --ty wrote the ID3 title, artist, album and date that ffprobe read back.
  • Confirm: Exit 0 does not prove the output is what was asked for (the resampling and stdout cases above). Read the sample rate, channels and duration of the result with ffprobe or soxi before deleting or replacing anything.

What this record does not show

  • Not measured in this run: real recordings (voice, music, noise), long audio and speed; the quality difference between -q and -V beyond two sine tones.
  • Not measured in this run: AIFF and raw PCM input, --preset, --nogap, -h and -f, ID3v1 versus v2 tags, cover images.
  • Not measured in this run: why an MP3 written to standard output decodes to a different length (not inspected inside the file); the same for MPEG-2 (16 kHz) end padding.
  • Not measured in this run: Linux, Windows and builds other than Homebrew; the installed binary was not checked against the Homebrew bottle checksum.
  • Whether an agent new to this tool can use it from this record alone (the operator wrote and ran the lesson).
  • Comparisons between models or clients.
  • Production use, accounts, or real customer data.
  • Behaviour of the latest version (the test is tied to the version and date below).
  • The final "Next" step is advice and was not part of the test.

Primary record

Operator record: a past lesson trial (legacy). It is not claimed to meet level L1 of run-task-contract/0.1.0.

What "legacy" and L1 mean, and why this record does not claim L1: Record levels and labels.

Independent check

Independent check: not yet reviewed. (Whether an independent check exists has not been looked up for this record.)

Evidence

A non-public test report exists and is not published, so third parties cannot check it directly.

Retrieve over MCP

headlesson_get id="app:lame" sections ["lesson","gotchas"] on https://mcp.headlesson.com/mcp

Source version

This page is built from the catalog record app:lame at revision ddcac731b8b3. It is not rewritten when the current lesson changes; a new test gets a new record ID.

Sources: 23 fields from 2 sources (JSON pointers into the .json version)

Each line names fields of this page (as JSON pointers into the .json version) and where they come from. Labels without a link are non-public sources. Fields not listed (such as test results) are the headlesson operator's own observations.

  • /question, /next_advice, /cautions/items/0, /cautions/items/11: headlesson editorial judgement (checked 2026-11-15, inferred, editorial)
  • /steps/0/step, /steps/1/step, /steps/2/step, /steps/3/step, /steps/4/step, /steps/5/step, /steps/6/step, /steps/7/step, /steps/8/step, /cautions/items/1, /cautions/items/2, /cautions/items/3, /cautions/items/4, /cautions/items/5, /cautions/items/6, /cautions/items/7, /cautions/items/8, /cautions/items/9, /cautions/items/10: headlesson editorial judgement (checked 2026-11-15, primary, editorial)

Corrections

None.

Page updated: 2026-11-17 (the date its content last changed).

要約(日本語): LAME の lesson を 2026-11-15 に headlesson の運営が 4.0 で試し、9/9 段が通った(passed、運営の実測で製品側の主張ではない)。この記録が示さないこと・独立確認の状況は本文のとおり。