Two Python scripts for working with SRT subtitle files — adjusting timing offsets and translating subtitle text.
- Shifts all subtitle timestamps forward or backward by a specified number of seconds
- Works with standard
.srtsubtitle format - Useful for fixing out-of-sync subtitles
- Translates subtitle text using a translation API
- Preserves the original SRT timing structure
| Category | Technology |
|---|---|
| Language | Python 3 |
| File Format | .srt (SubRip subtitle) |
| Translation | googletrans or similar |
| I/O | Built-in open(), file reading/writing |
python "Subtitle Time Changer.py"You will be prompted to enter:
- The path to your input
.srtfile - The output folder path
- The time offset in seconds (positive to delay, negative to advance)
- Parsing time-format strings (HH:MM:SS,mmm)
- File I/O with UTF-8 encoding
- String manipulation for time arithmetic
- SRT file format structure
Made with ❤️ as part of a learning journey