# xqq/mpegts.js

HTML5 MPEG2-TS / FLV Stream Player

Repository: https://github.com/xqq/mpegts.js
Canonical: https://ross.abutalabs.com/products/mpegtsjs
Language: JavaScript
License: Apache-2.0
License Family: permissive
Topics: html5, player, mpegts, mpeg-ts, mse, media-source-extensions, livestream, video, video-player, av1, hevc, flv, flvjs
Last push: 2026-08-18T01:50:44+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 66, longevity 100
- inputs: {"age_days": 1997, "days_push": 16, "days_rel": 19, "gap_med": 298.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2266, forks 295 (observed 2026-08-28T04:06:32.753330+00:00)

## What it is
A JavaScript/TypeScript library that plays MPEG2-TS and FLV streams in HTML5 browsers by transmuxing them into fMP4 segments fed through Media Source Extensions. It is optimized for low-latency live playback such as DVB/ISDB TV or surveillance cameras, and is based on flv.js.

## Use cases
- play low-latency MPEG-TS live streams in the browser
- play HTTP-FLV or WebSocket-FLV streams with sub-second latency
- playback of surveillance camera streams in a web page
- play .m2ts files (BDAV/BDMV) in the browser
- support HEVC or AV1 over MPEG-TS/FLV playback
- extract ARIB B24 subtitles or timed ID3 metadata from TS streams

## When to choose
- you need sub-second latency live streaming in browsers via MSE
- your source is MPEG2-TS or FLV over HTTP(S) or WebSocket
- you need HEVC/AV1 or enhanced-RTMP codec support in the browser

## When to avoid
- you need VOD with adaptive bitrate (use hls.js or dash.js)
- your target browsers lack MSE/ManagedMediaSource support
- you need DRM-protected content playback

## Facets
- artifact type: library
- maturity: active
- function: video-processing, streaming, serialization
- domain: media, web-development
- platform: browser, cross-platform
- tags: mpegts, flv, mse, html5-video, live-streaming, low-latency, transmuxer, hevc, av1, video

## Member repositories
- xqq/mpegts.js (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:32.753330+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-30T02:42:23.673042+00:00, confidence not recorded.
  - readme: https://github.com/xqq/mpegts.js (fetched 2026-08-28T04:06:32.753330+00:00, sha e5c11c96c12a)
  - registry_npm: https://registry.npmjs.org/mpegts.js (fetched 2026-08-29T10:22:55.746524+00:00, sha df0c0439b92d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
