# Install two-lame with Homebrew

Optimized MPEG Audio Layer 2 (MP2) encoder. Version 0.4.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:two-lame
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install two-lame
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:two-lame
- **Package manager:** Homebrew
- **Version:** 0.4.0
- **Source summary:** Optimized MPEG Audio Layer 2 (MP2) encoder
- **Homepage:** <https://www.twolame.org/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- stwolame (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.4.0
## Project history and usage

TwoLAME is a Unix-friendly MP2 encoder: a small command-line frontend and library for producing MPEG Audio Layer II audio. Its own documentation presents it as an optimized MP2 encoder derived from earlier free encoder work rather than as a general multimedia suite.

### Project history

The project descends from tooLAME by Michael Cheng, with roots in the ISO dist10 reference code and algorithmic improvements associated with LAME. The TwoLAME README and homepage emphasize compatibility with LAME-style command-line options and a library API similar to LAME's, which made it easy for users and downstream software to swap in an MP2-focused encoder.

TwoLAME's distinctive work was packaging that lineage into a thread-safe, LGPL-licensed encoder with libtwolame, pkg-config integration, libtool/automake builds, and broader input handling through libsndfile. The official site lists version 0.4.0 as the latest release, while the GitHub release metadata records 0.4.0 in 2019.

### Adoption history

TwoLAME occupies the practical niche left by MP2: not fashionable for general Internet audio, but still useful in broadcast and MPEG workflows. The README notes MP2's continuing use in DAB digital radio, DVB digital television, and radio-industry distribution contexts, which explains why package managers keep a compact MP2 encoder available.

The official homepage links Debian packaging directly, and the Homebrew input record shows it packaged as `two-lame`. That combination points to a mature command-line codec tool kept around for compatibility, reproducible build recipes, and old-but-real media pipelines.

### How it is used

Package users install TwoLAME when they need an MP2 encoder with a familiar LAME-like frontend or when build systems need libtwolame. Its common role is batch conversion or codec support in larger media workflows rather than interactive editing.

### Why package nerds care

TwoLAME matters to package maintainers because it is a codec-library fossil with ongoing utility: old MPEG Layer II requirements, LGPL licensing, standard Unix build machinery, and a stable C library surface make it easy to package and hard to replace casually.

### Timeline

- 2017: GitHub release metadata records TwoLAME 0.3.13.
- 2019: GitHub release metadata records TwoLAME 0.4.0, also listed on the official homepage as the latest release.

### Related projects

- tooLAME: the predecessor named by the TwoLAME README and homepage.
- LAME: the MP3 encoder whose command-line style and API influenced TwoLAME.
- ISO dist10: the reference MPEG audio codebase named by the project as part of its ancestry.
- libsndfile: used by the frontend for broader input-file support.

### Sources

- <https://api.github.com/repos/njh/twolame/releases?per_page=10>
- <https://github.com/njh/twolame#readme>
- <https://www.twolame.org/>
- source_facts.package-manager


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## Combined YAML source

View the package source record on GitHub. [combined/two-lame.yml](https://github.com/mxcl/pkgdb/blob/main/combined/two-lame.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
