srtmod is a CLI application written in Go and delivered as a single executable to add/subtract time offset from .srt subtitle files.
Here's a sample config.yml file.
files:
- inputFile: "input.srt"
outputFile: "output.srt"
offset: -1m
- inputFile: "input.srt"
outputFile: "output.srt"
offset: 5s
- inputFile: "input.srt"
outputFile: "output.srt"
offset: -1m4sYou can process batch of .srt files through srtmod by using config.yml file
./srtmod -config=config.ymlor can process single .srt file using args
./srtmod -i=input.srt -o=output.srt -offset=-1m5sWant to contribute? Awesome! The most basic way to show your support is to star the project or to raise issues. Pull requests are highly welcome.
Please make sure to update tests as appropriate.
This project exists, thanks to all the people who contribute.