# 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
- **Package manager page:** <https://formulae.brew.sh/formula/two-lame>
- **Version:** 0.4.0
- **Source summary:** Optimized MPEG Audio Layer 2 (MP2) encoder
- **Homepage:** <https://www.twolame.org/>
- **Repository:** <https://github.com/njh/twolame>
- **Upstream docs:** <https://github.com/njh/twolame#readme>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://downloads.sourceforge.net/project/twolame/twolame/0.4.0/twolame-0.4.0.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- stwolame (cli)
- stwolame (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.4.0
- Local data: ok
- Upstream repository: https://www.twolame.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** two-lame
- **Aliases:** twolame
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [darkice](https://www.automicvault.com/pkg/brew/darkice/) - Popular package that depends on this formula.
- [lame](https://www.automicvault.com/pkg/brew/lame/) - Shares av.db curated category or tags: audio, cli, encoder, encoding, media.
- [aften](https://www.automicvault.com/pkg/brew/aften/) - Shares av.db curated category or tags: audio, cli, encoder, media.
- [ffmpeg](https://www.automicvault.com/pkg/brew/ffmpeg/) - Shares av.db curated category or tags: audio, cli, codec, encoding, media.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Shares av.db curated category or tags: audio, cli, codec, encoding, media.
- [flac](https://www.automicvault.com/pkg/brew/flac/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [tta](https://www.automicvault.com/pkg/brew/tta/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [vorbis-tools](https://www.automicvault.com/pkg/brew/vorbis-tools/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [wavpack](https://www.automicvault.com/pkg/brew/wavpack/) - Shares av.db curated category or tags: audio, cli, codec, media.
- [faac](https://www.automicvault.com/pkg/brew/faac/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, codec, encoder, media.
- [faad2](https://www.automicvault.com/pkg/brew/faad2/) - Both packages work with overlapping file formats or content types. Shared terms: audio, cli, codec, media, mpeg.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
