# 使用 Homebrew, MacPorts, Nix 安装 mp4v2

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

## 安装

```sh
sudo av install brew:mp4v2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mp4v2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mp4v2
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mp4v2
```

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

## 软件包事实

- **软件包键:** brew:mp4v2
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/mp4v2>
- **版本:** 2.1.3
- **来源摘要:** Read, create, and modify MP4 files
- **主页:** <https://mp4v2.org>
- **仓库:** <https://github.com/enzo1982/mp4v2>
- **上游文档:** <https://mp4v2.org>
- **许可证:** MPL-1.1
- **源码归档:** <https://github.com/enzo1982/mp4v2/releases/download/v2.1.3/mp4v2-2.1.3.tar.bz2>
- **最后更新:** 2026-06-19T12:32:40-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- mp4art (cli)
- mp4chaps (cli)
- mp4file (cli)
- mp4subtitle (cli)
- mp4tags (cli)
- mp4track (cli)
- mp4trackdump (cli)
- mp4art (别名)
- mp4chaps (别名)
- mp4file (别名)
- mp4subtitle (别名)
- mp4tags (别名)
- mp4track (别名)
- mp4trackdump (别名)

## 安装行为

- 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.1.3
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://github.com/enzo1982/mp4v2
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

MP4v2 is a C/C++ library and utility suite for creating, modifying, and reading MP4 files. Its documentation describes the API as targeting MPEG-4 Systems and ISO Base Media File Format style MP4 files, a container lineage derived from Apple's QuickTime file format.

### 项目历史

The project originated as part of the mpeg4ip codebase and was separated into its own maintained library because the MP4 container code was useful independently after mpeg4ip support faded. The mp4v2.org revival fork was created after the Google Code-hosted project had been abandoned, with goals including build-system modernization, import of fixes from downstream forks, security fixes, updated API documentation, and support for additional formats.

### 使用方式

MP4v2's practical surface is split between its library and command-line tools. Applications use the library to inspect and mutate MP4 tracks, samples, chapters, artwork, and iTunes-style metadata, while package users get utilities such as mp4art, mp4chaps, mp4file, mp4subtitle, mp4tags, mp4track, and mp4trackdump. It occupies a legacy but still packaged niche beside FFmpeg/libavformat, Bento4, GPAC, and Go-based ISOBMFF libraries: direct programmatic MP4 manipulation with small companion tools.

### 来源

- <https://code.google.com/archive/p/mp4v2>
- <https://formulae.brew.sh/formula/mp4v2>
- <https://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/multimedia/mp4v2/index.html>
- <https://mp4v2.org/>
- <https://mp4v2.org/api/>
- <https://www.freshports.org/multimedia/mp4v2>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Nix - mp4v2: normalized package name match | nixpkgs package indexes: pkgs/by-name/mp/mp4v2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - mp4v2: normalized package name match | MacPorts ports tree: multimedia/mp4v2/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.
- [libvmaf](https://pkg.so/zh-hans/brew/libvmaf/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [ffms2](https://pkg.so/zh-hans/brew/ffms2/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [mkvtomp4](https://pkg.so/zh-hans/brew/mkvtomp4/) - Shares pkgdb curated category or tags: cli, media, mp4, video.
- [libwebm](https://pkg.so/zh-hans/brew/libwebm/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [mp4ff](https://pkg.so/zh-hans/brew/mp4ff/) - Shares pkgdb curated category or tags: cli, media, mp4, video.
- [ffmpeg](https://pkg.so/zh-hans/brew/ffmpeg/) - Shares pkgdb curated category or tags: cli, media, video.
- [jasper](https://pkg.so/zh-hans/brew/jasper/) - Shares pkgdb curated category or tags: c, cli, library, media.
- [gd](https://pkg.so/zh-hans/brew/gd/) - Shares pkgdb curated category or tags: c, cli, library, media.
- [ffmpegthumbnailer](https://pkg.so/zh-hans/brew/ffmpegthumbnailer/) - Both packages work with overlapping file formats or content types. Shared terms: cli, create, files, media, video.

## Combined YAML source

View the package source record on GitHub. [combined/mp4v2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mp4v2.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
