# webm-cluster-stream

> Transform stream that splits a webm stream into a header buffer and cluster buffers

Latest version **2.0.0** (published 2024-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install webm-cluster-stream
pnpm add webm-cluster-stream
yarn add webm-cluster-stream
bun add webm-cluster-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-07-04 |
| First published | 2016-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/webm-cluster-stream
- Repository: https://github.com/mafintosh/webm-cluster-stream
- Issues: https://github.com/mafintosh/webm-cluster-stream/issues
- npm.io page: https://npm.io/package/webm-cluster-stream

## Dependencies (3)

- [b4a](https://npm.io/package/b4a.md) ^1.6.6
- [ebml](https://npm.io/package/ebml.md) ^3.0.0
- [streamx](https://npm.io/package/streamx.md) ^2.18.0

## Recent versions

- 2.0.0 (latest) — 2024-07-04
- 1.0.0 — 2016-06-28

## README

# webm-cluster-stream

Transform stream that splits a webm stream into a header buffer and cluster buffers.
Useful if you have a webm live stream and wants to make it seekable. See the [webm spec](http://www.webmproject.org) for more info

```
npm install webm-cluster-stream
```

## Usage

``` js
var clusters = require('webm-cluster-stream')
var fs = require('fs')

var cl = clusters()

cl.once('data', function (header) {
  // first buffer is header
  console.log('header:', header)
  cl.on('data', function (cluster) {
    // next buffers are "Cluster" objects
    console.log('cluster:', cluster)
  })
})

fs.createReadStream('movie.webm').pipe(cl)
```

## License

MIT

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