Home
Srtgears™ is a subtitle engine for reading subtitle files, manipulating / transforming them and then saving the result into another file.
Srtgears provides some very handy features which are not available in other subtitle tools, for example:
- merge 2 subtitle files to have dual subs: one at the bottom, one at the top (this is not concatenation, but that's also supported)
- lengthen / shorten display duration of subtitles (if you're a slow reader, you're gonna appreciate this :))
- remove hearing impaired (HI) texts (such as "[PHONE RINGING]" or "(phone ringing)")
- strip off formatting (such as <i>, <b>, <u>, <font>)
- split the subtitle file at a specified time
- statistics from the subtitles
- etc...
Presentation
The Srtgears engine is presented in 3 ways:
1. Command line tool
Srtgears is available as a command line tool for easy, fast,
scriptable and repeatable usage.
Binary (compiled)
distributions are available on the Downloads
page.
2. Web interface: online web page
Srtgears can also be used on the web for those who do not want to download the tool just try it out from the browser. It can be found on the Srtgears online page.
3. Srtgears engine: a Go package
And last (but not least) a Go package for developers. The engine was
designed to be independent from the command line and web interfaces,
its API is clear, well documented and easy-to-use.
To get
the source code (along with the sources of the tool and web
interface), documentation and more visit the source code repository:
https://github.com/icza/srtgears
Limits
Input files must be UTF-8 encoded, output files will be UTF-8 encoded as well.
Supported input format is SubRip (*.srt) only, supported output formats are SubRip (*.srt) and Sub Station Alpha (*.ssa).
It should also be noted that SubRip format specification does not include subtitle positioning. Srtgears uses an unofficial extension {\anX} which may not be supported by all video players, or some players interpret the position values differently. MPC-HC has full support for it. In these cases the Sub Station Alpha output format is recommended (where the specification covers subtitle positioning / alignment).
Story
Srtgears started as a 48-hour work created for the Gopher Gala 2016 event. The initial version can be found here. I was competing solo.