# Install mp4v2 with Homebrew, MacPorts, Nix

Read, create, and modify MP4 files. Version 2.1.3 via Homebrew; verified 2026-06-19. Also installable with nix: nix profile install nixpkgs#mp4v2.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mp4v2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mp4v2
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:mp4v2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mp4v2>
- **Version:** 2.1.3
- **Source summary:** Read, create, and modify MP4 files
- **Homepage:** <https://mp4v2.org>
- **Repository:** <https://github.com/enzo1982/mp4v2>
- **Upstream docs:** <https://mp4v2.org>
- **License:** MPL-1.1
- **Source archive:** <https://github.com/enzo1982/mp4v2/releases/download/v2.1.3/mp4v2-2.1.3.tar.bz2>
- **Last updated:** 2026-06-19T12:32:40-07:00
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- mp4art (cli)
- mp4chaps (cli)
- mp4file (cli)
- mp4subtitle (cli)
- mp4tags (cli)
- mp4track (cli)
- mp4trackdump (cli)
- mp4art (alias)
- mp4chaps (alias)
- mp4file (alias)
- mp4subtitle (alias)
- mp4tags (alias)
- mp4track (alias)
- mp4trackdump (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.1.3
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://github.com/enzo1982/mp4v2
- info: No cached GitHub release or tag data was available.
## Project history and usage

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.

### Project history

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.

### How it is used

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.

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/brew-utility-packages/) - Matched Homebrew package provider.
- [libvmaf](https://pkg.so/brew/libvmaf/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [ffms2](https://pkg.so/brew/ffms2/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [mkvtomp4](https://pkg.so/brew/mkvtomp4/) - Shares pkgdb curated category or tags: cli, media, mp4, video.
- [libwebm](https://pkg.so/brew/libwebm/) - Shares pkgdb curated category or tags: cli, library, media, video.
- [mp4ff](https://pkg.so/brew/mp4ff/) - Shares pkgdb curated category or tags: cli, media, mp4, video.
- [ffmpeg](https://pkg.so/brew/ffmpeg/) - Shares pkgdb curated category or tags: cli, media, video.
- [jasper](https://pkg.so/brew/jasper/) - Shares pkgdb curated category or tags: c, cli, library, media.
- [gd](https://pkg.so/brew/gd/) - Shares pkgdb curated category or tags: c, cli, library, media.
- [ffmpegthumbnailer](https://pkg.so/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)


## Sources

- 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
