/srt-shifter

Primary LanguagePythonApache License 2.0Apache-2.0

SRT Time Shifter

A simple python script that shifts the time of a SRT subtitle file by a given amount of seconds.

Installation

git clone https://github/sean1832/srt-shifter.git
cd srt-shifter
pip install .

Usage

srt-shifter <input_file> <shift_seconds> [output_file]

Example:

srt-shifter subtitles.srt -5

This will shift the subtitles 5 seconds backward and write the result to subtitles_shifted.srt.

srt-shifter subtitles.srt 5 -o shifted_subtitles.srt

This will shift the subtitles 5 seconds forward and write the result to shifted_subtitles.srt.

License

Apache License 2.0