1.0.1 • Published 3 years ago

ts-nalstream v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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.