srt-ms-normalizer
v3.0.2
Published
NodeJS CLI that fixes millisecond discrepancies between individual subtitles.
Downloads
3
Maintainers
Readme
Have a subtitle that has overlapping millisecond timestamp values? This NodeJS CLI checks for discrepancies in the MS portion of the timestamp from the end-time and start-time of subtitles. It then updates the MS to be continuous. Install globally via NPM.
Prerequisites
- NodeJS
Installing
Install dependencies via NPM/Yarn to run
npm install -g srt-ms-normalizer
Running Application
After installing globally via NPM, run on either a single file or directory:
Single File
msNormalizer -f '/absolute/path/to/file.srt'
Directory
msNormalizer -d '/absolute/path/to/dir/'
An srt will be generated in the same location as the srt or directory provided with all millisecond discrepancies normalized. It will have '_msUpdated' appended to the file name.