# Install smpeg2 with Homebrew, MacPorts, Nix

SDL MPEG Player Library. Version 2.0.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:smpeg2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install smpeg2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smpeg2
```

  Evidence: MacPorts ports tree: multimedia/smpeg2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#smpeg2
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sm/smpeg2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:smpeg2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/smpeg2>
- **Version:** 2.0.0
- **Source summary:** SDL MPEG Player Library
- **Homepage:** <https://icculus.org/smpeg/>
- **Repository:** <https://github.com/icculus/smpeg>
- **Upstream docs:** <https://github.com/icculus/smpeg#readme>
- **License:** LGPL-2.0-or-later
- **Source archive:** <https://github.com/icculus/smpeg/archive/refs/tags/release_2_0_0.tar.gz>
- **Last updated:** 2026-06-22T14:06:19-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- plaympeg2 (cli)
- smpeg2-config (cli)
- plaympeg2 (alias)
- smpeg2-config (alias)

## Dependencies

- sdl2-compat

## Build dependencies

- autoconf
- automake
- libtool
- pkgconf

## 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, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/icculus/smpeg
- info: No cached GitHub release or tag data was available.
## Project history and usage

smpeg2 packages the SDL 2-oriented SMPEG MPEG player library and utilities.

### Project history

The official SMPEG README identifies version 2.0.0 dated 2001-07-17 and lists SDL 2.0.0 or newer as a requirement.

The README describes SMPEG as a free MPEG-1 video player library with sound support, written by Karl Robillard and Sam Lantinga at Loki Software with streaming MPEG support from Vivien Chappelier.

### Adoption history

The smpeg2 package keeps the SDL 2 variant of the older SMPEG code available to package-manager users.

Input package facts show smpeg2 packaged by Homebrew, MacPorts, and Nix.

### How it is used

The official README documents `make all` for building the library and player.

For this package, the installed executables are `plaympeg2` and `smpeg2-config` according to source facts.

### Why package nerds care

smpeg2 is significant as the SDL 2 packaging line for SMPEG, preserving older MPEG-1 playback support while avoiding collision with SDL 1-oriented SMPEG packages.

Its `smpeg2-config` utility follows the older Unix convention of package-specific compiler/linker flag helpers.

### Timeline

- 2001: Official README identifies SMPEG 2.0.0 dated 2001-07-17.

### Related projects

- Related projects named by the official README include SDL, Berkeley `mpeg_play`, `mpegsound`, Splay, `plaympeg`, `gtv`, and `glmovie`.
- The package is closely related to the `smpeg` package because both come from the same official SMPEG repository.

### Sources

- <https://github.com/icculus/smpeg#readme>
- <https://icculus.org/smpeg/>
- source_facts.executables
- source_facts.package-manager


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Nix - smpeg2: normalized package name match | nixpkgs package indexes: pkgs/by-name/sm/smpeg2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - smpeg2: normalized package name match | MacPorts ports tree: multimedia/smpeg2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [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.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [sdl2-compat](https://www.automicvault.com/pkg/brew/sdl2-compat/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [smpeg](https://www.automicvault.com/pkg/brew/smpeg/) - Package name indicates the same formula family.
- [h264bitstream](https://www.automicvault.com/pkg/brew/h264bitstream/) - Shares av.db curated category or tags: c-library, cli, libraries, media, video.
- [mjpegtools](https://www.automicvault.com/pkg/brew/mjpegtools/) - Shares av.db curated category or tags: cli, media, mpeg, video.
- [mpegdemux](https://www.automicvault.com/pkg/brew/mpegdemux/) - Shares av.db curated category or tags: cli, media, mpeg, video.
- [mpgtx](https://www.automicvault.com/pkg/brew/mpgtx/) - Shares av.db curated category or tags: cli, media, mpeg, video.
- [tivodecode](https://www.automicvault.com/pkg/brew/tivodecode/) - Shares av.db curated category or tags: cli, media, mpeg, video.
- [bento4](https://www.automicvault.com/pkg/brew/bento4/) - Shares av.db curated category or tags: cli, media, video.
- [ccextractor](https://www.automicvault.com/pkg/brew/ccextractor/) - Shares av.db curated category or tags: cli, media, video.
- [sdl2_sound](https://www.automicvault.com/pkg/brew/sdl2-sound/) - Local package facts share a topical domain. Shared terms: cli, compat, media, sdl, sdl2.

## Combined YAML source

View the package source record on GitHub. [combined/smpeg2.yml](https://github.com/automic-vault/db/blob/main/combined/smpeg2.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
- external package-manager database matches
- cross-ecosystem install command graph
