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.
- NodeJS
Install dependencies via NPM/Yarn to run
npm install -g srt-ms-normalizer
After installing globally via NPM, run on either a single file or directory:
msNormalizer -f '/absolute/path/to/file.srt'
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.