ts-nalstream
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

TS-NALStream

TS-NALStream provides a parser for Network Access Layer units from MPEG-TS video streams. The package exports a single function:

function parseNALStream(bytes: Uint8Array | Iterable<Uint8Array>): Generator<Uint8Array>;

The input is either a single data array from a video Packet produced by ts-demuxer, or an iterable of data arrays from sequential Packets. The output is a sequence of Uint8Arrays (aliasing the input bufers) referring to individual NAL units with encoded H.254 or HEVC video data.

Package Sidebar

Install

npm i ts-nalstream

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.71 kB

Total Files

6

Last publish

Collaborators

  • gliese1337