SrtResync is a command-line tool for synchronizing subtitles in SubRip (.srt) format. With this tool you can shift the subtitles by adding/substracting a given amount of time to get the subtitles synchronized with the voices.
Installation:
This script requires the installation of the object-oriented scripting language Ruby. On Debian-based distribution this is done by just typing :
sudo apt-get install ruby
or being 'root' user :
apt-get install ruby
For other distribution, use your package manager to install Ruby.
Usage:
Change to the directory where you installed the script and type :
./srt-resync --help
to display the following usage message :
Usage: srt-resync.rb -d DELAY [OPTIONS] FILE
Synchronizes subtitles in SubRip (.srt) format by adding/substracting a specified delay.
-f, --input-file IFILE Specifies the input file IFILE.
-d, --delay DELAY DELAY is the delay to add/substract (in milliseconds).
It must be a positive integer if the subtitle comes before the speech, negative otherwise.
-i, --inplace [EXTENSION] Edit file in place.
(make backup if EXTENSION supplied)
-o, --output-file OFILE Specifies the output file OFILE
-h, --help Display this message.
-V, --version Print the program version.
Product's homepage
Requirements:
· Ruby
What's New in This Release: [ read full changelog ]
· Handling of the options in a more GNU tools style way.
· Added some options (--version, --help, --inplace, --delay, --input-file --output-file)
· Code changes : added a SubRipField class for handling the SubRip fields (i.e. each dialogue) as an object.