# Install mkclean with Homebrew, Nix

Optimizes Matroska and WebM files. Version 0.9.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:mkclean
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mkclean
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mkclean
```

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

## Package facts

- **Package key:** brew:mkclean
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mkclean>
- **Version:** 0.9.0
- **Source summary:** Optimizes Matroska and WebM files
- **Homepage:** <https://www.matroska.org/downloads/mkclean.html>
- **Upstream docs:** <https://www.matroska.org/downloads/mkclean.html>
- **License:** BSD-3-Clause
- **Source archive:** <https://downloads.sourceforge.net/project/matroska/mkclean/mkclean-0.9.0.tar.bz2>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- mkclean (cli)
- mkclean (alias)

## Build dependencies

- cmake

## 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, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.9.0
- Local data: ok
- Upstream repository: https://www.matroska.org/downloads/mkclean.html
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

mkclean is an official Matroska command-line utility for cleaning and optimizing already-muxed Matroska and WebM files. The official page describes it as a tool that reorders elements with Cues at the front for efficient streaming, removes elements outside the Matroska specs, and can optionally remux Cluster blocks around keyframes.

### Project history

mkclean belongs to the Matroska tooling family around Matroska and WebM container maintenance. The official Matroska page lists v0.9.0 from January 31, 2021 as the latest release and links release source packages through SourceForge.

The project depends on libebml2 and libmatroska2, themselves part of the Matroska container implementation stack.

### Adoption history

mkclean's package-manager footprint is narrow but useful: Homebrew and Nix package it for users who want an installed command-line optimizer for Matroska and WebM files without building the Matroska release tarball manually.

### How it is used

mkclean is a post-processing tool. Users run it on existing .mkv, .mka, .mks, .mk3d, .webm, or .weba files to improve streaming layout, remove invalid elements, and optionally remux clusters around keyframes.

It complements muxers and validators: it does not encode media, but adjusts container structure and metadata layout.

### Why package nerds care

mkclean is notable as one of the small Matroska ecosystem commands that package managers preserve even when most users know the larger MKVToolNix suite. It represents the Unix packaging pattern of shipping a focused maintenance utility around a media container format.

### Timeline

- 2010: Changelog series shows active 0.3 through 0.8 development around Matroska/WebM cleanup and optimization behavior.
- 2012-08: Changelog lists v0.8.10 with updated Matroska element support.
- 2021-01: Official page lists v0.9.0 as the latest release.

### Related projects

- mkclean is related to Matroska, WebM, libebml2, libmatroska2, mkvalidator, and MKVToolNix.

### Sources

- <https://sourceforge.net/projects/matroska/files/mkclean/ChangeLog.txt/view>
- <https://www.matroska.org/downloads/mkclean.html>
- <https://www.matroska.org/source_code_repositories.html>


## 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:** mkclean
- **Version Scheme:** 0
- **Revision:** 0
- **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 - mkclean: normalized package name match | nixpkgs package indexes: pkgs/by-name/mk/mkclean/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [libwebm](https://www.automicvault.com/pkg/brew/libwebm/) - Shares av.db curated category or tags: cli, matroska, media, video, webm.
- [ffmpeg](https://www.automicvault.com/pkg/brew/ffmpeg/) - Shares av.db curated category or tags: cli, media, streaming, video.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Shares av.db curated category or tags: cli, media, streaming, video.
- [streamlink](https://www.automicvault.com/pkg/brew/streamlink/) - Shares av.db curated category or tags: cli, media, streaming, video.
- [animdl](https://www.automicvault.com/pkg/brew/animdl/) - Shares av.db curated category or tags: cli, media, streaming, video.
- [bento4](https://www.automicvault.com/pkg/brew/bento4/) - Shares av.db curated category or tags: cli, media, video.
- [ccextractor](https://www.automicvault.com/pkg/brew/ccextractor/) - Shares av.db curated category or tags: cli, media, video.
- [dovi_convert](https://www.automicvault.com/pkg/brew/dovi-convert/) - Shares av.db curated category or tags: cli, media, mkv, video.
- [mkvalidator](https://www.automicvault.com/pkg/brew/mkvalidator/) - Local package facts share a topical domain. Shared terms: cli, files, matroska, media, webm.

## Combined YAML source

View the package source record on GitHub. [combined/mkclean.yml](https://github.com/automic-vault/db/blob/main/combined/mkclean.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
