# 使用 Homebrew, apk, chocolatey, apt, MacPorts, pacman, dnf, scoop, winget, zypper 安装 ffmpeg

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

## 安装

```sh
sudo av install brew:ffmpeg
```

## 代理安全回答

ffmpeg processes media files and can read or overwrite local artifacts.

- **凭据访问:** Can read input files, network URLs, and metadata that may be sensitive.
- **远程变更:** Usually local, but supports network inputs and outputs.
- **发布/制品风险:** Can create, overwrite, or stream media artifacts.
- **推荐控制:** Gate network outputs, overwrites, and reads from sensitive paths.
- **代理使用指南:** Allow local transforms in safe directories; require approval for overwrites, uploads, and sensitive inputs.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ffmpeg
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ffmpeg
```

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

### Linux

- apk (92%):

```sh
sudo apk add ffmpeg
```

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

- Debian apt (92%):

```sh
sudo apt install ffmpeg
```

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

- pacman (92%):

```sh
sudo pacman -S ffmpeg
```

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

- dnf (92%):

```sh
sudo dnf install ffmpeg-free
```

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

- zypper (92%):

```sh
sudo zypper install ffmpeg-4
```

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

### Windows

- Chocolatey (92%):

```sh
choco install ffmpeg
```

  证据: Chocolatey community package catalog: ffmpeg from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','everythingpowertoys'

- Scoop (92%):

```sh
scoop install main/ffmpeg
```

  证据: Scoop official bucket manifest trees: bucket/ffmpeg.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Gyan.FFmpeg -e
```

  证据: Windows Package Manager source index: Gyan.FFmpeg from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:ffmpeg
- **软件包管理器:** Homebrew
- **版本:** 8.1.2
- **来源摘要:** Play, record, convert, and stream select audio and video codecs
- **主页:** <https://ffmpeg.org/>
- **仓库:** <https://github.com/FFmpeg/FFmpeg>
- **最后更新:** 2026-07-05T23:07:18Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aviocat (别名)
- bisect-create (别名)
- check_arm_indent.sh (别名)
- clean-diff (别名)
- compare-cvelists.sh (别名)
- crypto_bench (别名)
- cws2fws (别名)
- dvd2concat (别名)
- enc_recon_frame_test (别名)
- enum_options (别名)
- ffescape (别名)
- ffeval (别名)
- ffhash (别名)
- ffmpeg (别名)
- ffplay (别名)
- ffprobe (别名)
- fourcc2pixfmt (别名)
- gen-rc (别名)
- general_assembly.pl (别名)
- graph2dot (别名)
- indent_arm_assembly.pl (别名)
- ismindex (别名)
- loudnorm.rb (别名)
- make_chlayout_test (别名)
- merge-all-source-plugins (别名)
- missing_codec_desc (别名)
- murge (别名)
- normalize.py (别名)
- patcheck (别名)
- pktdumper (别名)
- plotframes (别名)
- probetest (别名)
- qt-faststart (别名)
- scale_slice_test (别名)
- seek_print (别名)
- sidxindex (别名)
- source2c (别名)
- target_dec_fate.sh (别名)
- trasher (别名)
- uncoded_frame (别名)
- unwrap-diff (别名)
- venc_data_dump (别名)
- zmqshell.py (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

FFmpeg is one of the canonical command-line multimedia packages: a source-first upstream project, a set of reusable codec/container/filter libraries, and the `ffmpeg`, `ffplay`, and `ffprobe` tools used everywhere from one-line conversions to production media pipelines.

### 项目历史

The official project describes FFmpeg as a multimedia framework that can decode, encode, transcode, mux, demux, stream, filter, and play media across formats from old obscure inputs to cutting-edge codecs. Its architecture combines user-facing tools with libraries such as libavcodec, libavformat, libavfilter, libavdevice, libswscale, and libswresample.

FFmpeg's upstream culture is explicitly developer-driven and source-first. The download page says FFmpeg provides source code and points users to distributions and build providers for compiled packages. It also notes that development branch snapshots are often used because the project changes constantly and release branches cherry-pick selected fixes.

### 采用历史

FFmpeg's adoption is visible in its official packaging guidance: the project links to Debian, Ubuntu, Fedora/RHEL, Windows, and macOS build sources rather than shipping one blessed binary for every platform. That mirrors how FFmpeg became a package-manager staple rather than only an application downloaded from upstream.

The release process is oriented toward distributors and system integrators. Upstream documents roughly six-month major releases with point releases for important fixes, release signatures, git tags, and branch-specific release notes.

### 使用方式

The core command-line pattern is `ffmpeg -i input output`: read one or more inputs, select streams, optionally filter or transcode them, and write one or more outputs. `ffprobe` is used to inspect streams and metadata, while `ffplay` provides a simple player based on FFmpeg libraries.

Package users care about the exact build because enabled libraries determine available encoders, decoders, filters, devices, and protocols. A stock distro build, Homebrew build, static Windows build, and custom source build can all behave differently while sharing the same upstream name.

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

FFmpeg is a package-manager stress test: it touches codec licensing, optional dependencies, hardware acceleration, network protocols, security updates for untrusted media parsing, and ABI-sensitive libraries consumed by other applications.

Its combination of command-line tools and shared libraries means it is both an end-user utility and infrastructure for other media software. That dual identity is why package maintainers track branch support, dependency choices, and security backports closely.

### 时间线

- 2011: FFmpeg release signing key date documented by upstream release verification instructions.
- 2015: FFmpeg 2.8 branch cut from master on 2015-09-05, later maintained through 2.8.22.
- 2024-2026: Upstream release pages show active major/minor release branches and point releases for distributors and integrators.
- 2026: FFmpeg 8.1.2 listed as a stable source release on the official download page.

### Related projects

- ffmpeg-full is a Homebrew formula variant with a broader optional dependency set.
- ffmpeg2theora is an older converter that used FFmpeg decoding to produce Ogg Theora/Vorbis outputs.
- FFmate is a newer automation layer that runs FFmpeg behind a server/API workflow.

### 来源

- <https://ffmpeg.org/about.html>
- <https://ffmpeg.org/download.html>
- <https://ffmpeg.org/documentation.html>
- <https://ffmpeg.org/ffmpeg.html>
- <https://formulae.brew.sh/api/formula/ffmpeg.json>


## 安全说明

doc example: broad media transform and device-capable tool.

- **Geiger 风险:** blue / 高
- doc example: broad media transform and device-capable tool
- **审批门规则:** 4

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

- Debian apt - ffmpeg - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: ffmpeg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tools for transcoding, streaming and playing of multimedia files | https://ffmpeg.org/
- Debian apt - ffmpeg-doc - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: ffmpeg-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Documentation of the FFmpeg multimedia framework | https://ffmpeg.org/
- Debian apt - libavcodec-dev - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavcodec-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with de/encoders for audio/video codecs - development files | https://ffmpeg.org/
- Debian apt - libavcodec-extra - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavcodec-extra from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with extra codecs (metapackage) | https://ffmpeg.org/
- Debian apt - libavcodec-extra61 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavcodec-extra61 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with additional de/encoders for audio/video codecs | https://ffmpeg.org/
- Debian apt - libavcodec61 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavcodec61 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with de/encoders for audio/video codecs - runtime files | https://ffmpeg.org/
- Debian apt - libavdevice-dev - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavdevice-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library for handling input and output devices - development files | https://ffmpeg.org/
- Debian apt - libavdevice61 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavdevice61 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library for handling input and output devices - runtime files | https://ffmpeg.org/
- Debian apt - libavfilter-dev - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavfilter-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library containing media filters - development files | https://ffmpeg.org/
- Debian apt - libavfilter-extra - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavfilter-extra from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with extra filters (metapackage) | https://ffmpeg.org/
- Debian apt - libavfilter-extra10 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavfilter-extra10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with extra media filters - runtime files | https://ffmpeg.org/
- Debian apt - libavfilter10 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavfilter10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library containing media filters - runtime files | https://ffmpeg.org/
- Debian apt - libavformat-dev - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavformat-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with (de)muxers for multimedia containers - development files | https://ffmpeg.org/
- Debian apt - libavformat-extra - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavformat-extra from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with extra (de)muxers (metapackage) | https://ffmpeg.org/
- Debian apt - libavformat-extra61 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavformat-extra61 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with additional (de)muxers for multimedia containers | https://ffmpeg.org/
- Debian apt - libavformat61 - 7:7.1.5-0+deb13u1: normalized package name match | Debian stable package indexes: libavformat61 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | FFmpeg library with (de)muxers for multimedia containers - runtime files | https://ffmpeg.org/


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
