# videojs/mux.js

Lightweight utilities for inspecting and manipulating video container formats.

Repository: https://github.com/videojs/mux.js
Canonical: https://ross.abutalabs.com/products/muxjs
Language: JavaScript
License: Apache-2.0
License Family: permissive
Last push: 2026-08-12T10:53:34+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 4041, "days_push": 21, "days_rel": 691, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1223, forks 219 (observed 2026-08-28T04:04:02.663733+00:00)

## What it is
mux.js is a lightweight JavaScript library for inspecting and manipulating video container formats such as MPEG2-TS, fMP4, and FLV. Its core feature is a transmuxer that converts MPEG2-TS segments into fragmented MP4 segments suitable for playback via Media Source Extensions (MSE).

## Use cases
- transmux mpeg2-ts segments to fmp4 in the browser
- parse h264 and aac streams from transport stream video
- inspect mp4 box metadata like timescale and decode time
- build a custom hls video player with mse
- generate fragmented mp4 segments for media source extensions
- handle flv video content in javascript

## When to choose
- you need client-side transmuxing of mpeg2-ts to fmp4 for MSE-based playback
- you are building or extending a video player like video.js with hls support
- you need lightweight parsing of video container formats without heavy dependencies

## When to avoid
- you need full video encoding, decoding, or transcoding rather than container remuxing
- you work with formats outside ts, fmp4, and flv
- you need a server-side transcoding pipeline - tools like ffmpeg are better suited

## Facets
- artifact type: library
- maturity: stable
- function: video-processing, parser, serialization
- domain: media, web-development, frontend
- platform: browser, cross-platform
- tags: transmuxing, mpeg2-ts, fmp4, hls, mse, h264, aac, mp4-inspector, videojs, video, nodejs, javascript

## Member repositories
- videojs/mux.js (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:02.663733+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:35.388838+00:00, confidence not recorded.
  - readme: https://github.com/videojs/mux.js (fetched 2026-08-28T04:04:02.663733+00:00, sha c9dd42d3a680)
  - registry_npm: https://registry.npmjs.org/mux.js (fetched 2026-08-29T12:23:48.500158+00:00, sha 697f8b923bd6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
