h264-sps-parser

Parse H.264 SPS NAL units

Usage no npm install needed!

<script type="module">
  import h264SpsParser from 'https://cdn.skypack.dev/h264-sps-parser';
</script>

README

H.264 SPS Parser

SPS Parser provides a parser for H.264 Video Sequence Parameter Sets. The package exports a parse function, along with its return data type definition:

function parse(nalu: Uint8Array): SPSInfo;

The input must be a single complete Network Access Layer unit (NALU) containing valid SPS data.