# 使用 Homebrew, apk, dnf, MacPorts, pacman, apt, zypper 安装 ffms2

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

## 安装

```sh
sudo av install brew:ffms2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ffms2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ffms2
```

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

### Linux

- apk (92%):

```sh
sudo apk add ffms2
```

  证据: Alpine Linux edge package indexes: ffms2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install ffms2
```

  证据: Fedora Rawhide package metadata: ffms2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S ffms2
```

  证据: Arch Linux sync databases: ffms2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install ffmsindex
```

  证据: Debian stable package indexes: ffmsindex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install ffmsindex
```

  证据: openSUSE Tumbleweed package metadata: ffmsindex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ffms2
- **软件包管理器:** Homebrew
- **版本:** 5.0
- **来源摘要:** Libav/ffmpeg based source library and Avisynth plugin
- **主页:** <https://github.com/FFMS/ffms2>
- **仓库:** <https://github.com/FFMS/ffms2>
- **最后更新:** 2026-06-28T01:04:18-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ffmsindex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 5.0
## 项目历史与用法

FFMS2, also called FFmpegSource, is a cross-platform wrapper library around FFmpeg plus Avisynth and VapourSynth source plugins for frame- and sample-accurate media access.

### 项目历史

The project originated as an Avisynth file-reader plugin named FFmpegSource; its README explains that version 1 was only an Avisynth plugin and that FFMS2 grew into the reusable library form. Internally it is C++, while the public API is pure C, making it linkable from C-compatible applications.

FFMS2 has historically tracked FFmpeg and Libav API churn closely. Its changelog records support for recent FFmpeg builds, VapourSynth support in the 2.18 era, API and index improvements across the 2.x releases, removal of old Libav support in 2.40, and a 5.x line that raised minimum FFmpeg requirements.

### 采用历史

The package matters most in video scripting and fansubbing-adjacent workflows where Avisynth or VapourSynth scripts need reliable opening, indexing, seeking, VFR handling, Unicode path handling, and access to FFmpeg's broad demuxer and decoder support. Package managers expose the ffmsindex tool and the library/plugin pieces so scripts can build repeatable indexes before frame access.

### 使用方式

End users most visibly use FFMS2 through the Avisynth or VapourSynth source plugin, while developers can link the C API. The ffmsindex executable builds index files so later frame and audio access can be deterministic instead of relying on ad hoc seeking through containers.

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

FFMS2 is a dependency-sensitive media package: it wraps FFmpeg, but its value is hiding FFmpeg API complexity from script authors and applications. The changelog's repeated compatibility entries explain why packagers care about aligning FFMS2 releases with the FFmpeg versions in the same repository.

### 时间线

- 2013: FFMS2 2.18 added VapourSynth support.
- 2020: FFMS2 2.40 removed old Libav support and refreshed FFmpeg API usage.
- 2024: FFMS2 5.0 fixed FFmpeg 6.1 compatibility and made FFmpeg 6.1 the minimum.
- 5.1: FFMS2 raised its minimum requirement to FFmpeg 7.1.

### Related projects

- FFmpeg is the decoding and demuxing foundation. Avisynth and VapourSynth are the scripting environments where FFMS2's source plugins are most visible.

### 来源

- <https://github.com/FFMS/ffms2/blob/master/README.md>
- <https://github.com/FFMS/ffms2/blob/master/doc/ffms2-changelog.md>
- <https://github.com/FFMS/ffms2/releases>
- <https://formulae.brew.sh/formula/ffms2>


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - ffmsindex - 5.0-1+b1: normalized package name match | Debian stable package indexes: ffmsindex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line tool to create ffms2 index files | https://github.com/FFMS/ffms2
- Debian apt - libffms2-5 - 5.0-1+b1: normalized package name match | Debian stable package indexes: libffms2-5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Cross platform ffmpeg wrapper library | https://github.com/FFMS/ffms2
- Debian apt - libffms2-dev - 5.0-1+b1: normalized package name match | Debian stable package indexes: libffms2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libffms2 | https://github.com/FFMS/ffms2
- Ubuntu apt - ffmsindex - 5.0~rc2-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: ffmsindex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line tool to create ffms2 index files | https://github.com/FFMS/ffms2
- Ubuntu apt - libffms2-5 - 5.0~rc2-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libffms2-5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Cross platform ffmpeg wrapper library | https://github.com/FFMS/ffms2
- Ubuntu apt - libffms2-dev - 5.0~rc2-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libffms2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for libffms2 | https://github.com/FFMS/ffms2
- apk - ffms2 - 5.0-r2: normalized package name match | Alpine Linux edge package indexes: ffms2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Cross-platform wrapper library around FFmpeg | https://github.com/FFMS/ffms2
- apk - ffms2-dev - 5.0-r2: normalized package name match | Alpine Linux edge package indexes: ffms2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Cross-platform wrapper library around FFmpeg (development files) | https://github.com/FFMS/ffms2
- apk - ffms2-doc - 5.0-r2: normalized package name match | Alpine Linux edge package indexes: ffms2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Cross-platform wrapper library around FFmpeg (documentation) | https://github.com/FFMS/ffms2
- dnf - ffms2 - 5.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: ffms2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Video source library for easy frame accurate access | https://github.com/FFMS/ffms2
- dnf - ffms2-devel - 5.0-9.fc45: normalized package name match | Fedora Rawhide package metadata: ffms2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development package for ffms2 | https://github.com/FFMS/ffms2
- pacman - ffms2 - 5.0-3: normalized package name match | Arch Linux sync databases: ffms2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access | https://github.com/FFMS/ffms2
- zypper - ffmsindex - 5.0+0-1.12: normalized package name match | openSUSE Tumbleweed package metadata: ffmsindex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Wrapper library around libffmpeg | https://github.com/FFMS/ffms2
- zypper - libffms2-5 - 5.0+0-1.12: normalized package name match | openSUSE Tumbleweed package metadata: libffms2-5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Wrapper library around libffmpeg | https://github.com/FFMS/ffms2
- zypper - libffms2-devel - 5.0+0-1.12: normalized package name match | openSUSE Tumbleweed package metadata: libffms2-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Wrapper library around libffmpeg | https://github.com/FFMS/ffms2
- MacPorts - ffms2: normalized package name match | MacPorts ports tree: multimedia/ffms2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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