Skip to content

The project will be able to modify the time of subtitles in .srt files.

License

Notifications You must be signed in to change notification settings

markhaur/srtmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srtmod

MIT

srtmod is a CLI application written in Go and delivered as a single executable to add/subtract time offset from .srt subtitle files.

Usage

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: -1m4s

You can process batch of .srt files through srtmod by using config.yml file

./srtmod -config=config.yml

or can process single .srt file using args

./srtmod -i=input.srt -o=output.srt -offset=-1m5s

Contributing

Want 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.

Maintainers

Jarri Abidi
Faisal Nisar

Credits

This project exists, thanks to all the people who contribute.

About

The project will be able to modify the time of subtitles in .srt files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published