# h264-nalu-parser

> A parser for H264 NAL unit streams.

Latest version **1.0.0** (published 2020-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install h264-nalu-parser
pnpm add h264-nalu-parser
yarn add h264-nalu-parser
bun add h264-nalu-parser
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-04-24 |
| First published | 2020-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 59 |
| Author | Logan R. Kearsley |
| Maintainers | gliese1337 |
| Keywords | mpeg, ts, h264, mpeg-ts, demux, video |

## Links

- npm: https://www.npmjs.com/package/h264-nalu-parser
- Repository: https://github.com/gliese1337/HLS.js
- Homepage: https://github.com/gliese1337/HLS.js/nalustream#readme
- Issues: https://github.com/gliese1337/HLS.js/issues
- npm.io page: https://npm.io/package/h264-nalu-parser

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-04-24

## README

H.264 NAL Unit Parser
=====

This module exports a single generator function producing `Uint8Array`s containing single Network Abstraction Layer units. Basic usage is as follows:

```ts
import parseNALUStream from 'h264-nalu-parser';

for (const nalu of parseNALUStream(data)) {
  /* Do stuff with an individual NAL unit. */
}
```

The `data` should also be provided as a `Uint8Array`, aligned on NALU boundaries.

Note that this will not work with H.264 data extracted from an MP4 file; the MP4 container format separates individual NALUs with 4-byte length headers, which this parser does not expect.

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