# 使用 Homebrew, MacPorts, Nix 安装 smpeg2

查看 smpeg2 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install smpeg2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install smpeg2
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:smpeg2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/smpeg2>
- **版本:** 2.0.0
- **来源摘要:** SDL MPEG Player Library
- **主页:** <https://icculus.org/smpeg/>
- **仓库:** <https://github.com/icculus/smpeg>
- **上游文档:** <https://icculus.org/smpeg/>
- **许可证:** LGPL-2.0-or-later
- **源码归档:** <https://github.com/icculus/smpeg/archive/refs/tags/release_2_0_0.tar.gz>
- **最后更新:** 2026-06-22T14:06:19-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- plaympeg2 (cli)
- smpeg2-config (cli)
- plaympeg2 (别名)
- smpeg2-config (别名)

## 依赖

- sdl2-compat

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://github.com/icculus/smpeg
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **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

## 其他软件包管理器记录

- 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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [sdl2-compat](https://pkg.so/zh-hans/brew/sdl2-compat/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [smpeg](https://pkg.so/zh-hans/brew/smpeg/) - Package name indicates the same formula family.
- [mjpegtools](https://pkg.so/zh-hans/brew/mjpegtools/) - Shares pkgdb curated category or tags: cli, media, mpeg, video.
- [h264bitstream](https://pkg.so/zh-hans/brew/h264bitstream/) - Shares pkgdb curated category or tags: c-library, cli, media, video.
- [tivodecode](https://pkg.so/zh-hans/brew/tivodecode/) - Shares pkgdb curated category or tags: cli, media, mpeg, video.
- [mpegdemux](https://pkg.so/zh-hans/brew/mpegdemux/) - Shares pkgdb curated category or tags: cli, media, mpeg, video.
- [mpgtx](https://pkg.so/zh-hans/brew/mpgtx/) - Shares pkgdb curated category or tags: cli, media, mpeg, video.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Shares pkgdb curated category or tags: cli, media, video.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Shares pkgdb curated category or tags: c-library, cli, media.
- [sdl2_sound](https://pkg.so/zh-hans/brew/sdl2-sound/) - Local package facts share a topical domain. Shared terms: cli, compat, media, sdl, sdl2.
- [sdl12-compat](https://pkg.so/zh-hans/brew/sdl12-compat/) - Local package facts share a topical domain. Shared terms: cli, compat, config, media, sdl.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
