mp4-box-encoding
This module provides encoders and decoders with the abstract encoding interface.
The module exports the interface for a generic box, including all headers and children (for container boxes) Encodings for many leaf (non-container) boxes, without headers, is available keyed by the box type:
var box =var buffer = fs// decode any box including headers// decode the entire moov box and its childrenvar moov = boxvar moovmfhdmtime = // Change the modification time// now this is an encoding of the modified moov boxvar moofBuffer = box// decode the contents of just the stts boxvar stts = box
These encodings are factored out of mp4-stream.
License
MIT