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 = require('mp4-box-encoding')
var buffer = fs.readFileSync('myvideo.mp4')
var moov = box.decode(buffer.slice(24, 236989))
var moov.mfhd.mtime = new Date()
var moofBuffer = box.encode(moov)
var stts = box.decode(buffer.slice(609, 625))
These encodings are factored out of mp4-stream.
License
MIT