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:
; for of parseNALUStreamdata
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.