vtt-shift
Transform stream that shifts WebVTT text tracks by the specified offset.
npm install vtt-shift
Usage
const vttshift =const fs =const options =offsetMs: 1000 // offset in millisecondsfs
Command line usage
There is also a command line tool available
npm install -g vtt-shift
vtt-shift --help
vtt-shift some-subtitle-file.vtt --offsetMs=1000 --out=some-subtitle-file-shifted-by-1sec.vtt
License
MIT