# 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
- **Version:** 2.1.3
- **Source summary:** Read, create, and modify MP4 files
- **Homepage:** <https://mp4v2.org>
- **Repository:** <https://github.com/enzo1982/mp4v2>
- **Last updated:** 2026-06-19T12:32:40-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

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

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.1.3
## 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

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


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