# mp4-muxer

> MP4 multiplexer in pure TypeScript with support for WebCodecs API, video & audio.

Latest version **5.2.2** (published 2025-07-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mp4-muxer
pnpm add mp4-muxer
yarn add mp4-muxer
bun add mp4-muxer
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 5.2.2 |
| Published | 2025-07-02 |
| First published | 2023-04-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 152.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 612 |
| Author | Vanilagy |
| Maintainers | vanilagy |
| Keywords | mp4, fmp4, muxer, muxing, multiplexer, video, audio, media, webcodecs |

## Links

- npm: https://www.npmjs.com/package/mp4-muxer
- Repository: https://github.com/Vanilagy/mp4-muxer
- Homepage: https://github.com/Vanilagy/mp4-muxer#readme
- Issues: https://github.com/Vanilagy/mp4-muxer/issues
- npm.io page: https://npm.io/package/mp4-muxer

## Dependencies (2)

- [@types/dom-webcodecs](https://npm.io/package/@types/dom-webcodecs.md) ^0.1.6
- [@types/wicg-file-system-access](https://npm.io/package/@types/wicg-file-system-access.md) ^2020.9.5

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.2.2 (latest) — 2025-07-02
- 5.2.1 — 2025-03-27
- 5.2.0 — 2025-02-02
- 5.1.5 — 2024-11-22
- 5.1.4 — 2024-11-22
- 5.1.3 — 2024-09-19
- 5.1.2 — 2024-09-13
- 5.1.1 — 2024-09-02
- 5.1.0 — 2024-08-30
- 5.0.1 — 2024-08-20
- 5.0.0 — 2024-08-18
- 4.3.3 — 2024-06-21
- 4.3.2 — 2024-06-20
- 4.3.1 — 2024-06-13
- 4.3.0 — 2024-06-12
- … 26 more at https://npm.io/package/mp4-muxer/versions

## README

# ⚠️ This library is deprecated ⚠️

mp4-muxer has been deprecated in favor of [Mediabunny](https://mediabunny.dev/), which entirely supersedes it. Mediabunny ships with an even better, easier-to-use, faster and more feature-rich MP4 multiplexer, as well as muxers for many other formats, demuxers, WebCodecs abstractions and more, while keeping the bundle size tiny thanks to a tree-shakable design.

mp4-muxer is no longer being maintained and will not receive any new features or bug fixes.

## I just want to create an MP4 file.

[Mediabunny](https://mediabunny.dev/) has got you covered. Refer to the following documents to jump right in:

- [Guide: Writing media files](https://mediabunny.dev/guide/writing-media-files)
- [Quick start: Create new media files](https://mediabunny.dev/guide/quick-start#create-new-media-files)

## My code already uses mp4-muxer. What should I do?

No worries. You can easily [migrate to Mediabunny](./MIGRATION-GUIDE.md) in 10 minutes.

If you still need the docs for mp4-muxer, you can find them [here](https://github.com/Vanilagy/mp4-muxer/blob/2c611c5932d3b8054c8968320cf9b6b7db094d30/README.md).

---
_Source: https://npm.io/package/mp4-muxer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
