# 使用 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
- **版本:** 2.1.3
- **来源摘要:** Read, create, and modify MP4 files
- **主页:** <https://mp4v2.org>
- **仓库:** <https://github.com/enzo1982/mp4v2>
- **最后更新:** 2026-06-19T12:32:40-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
