Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

🎬 Subtitle Time Changer

Two Python scripts for working with SRT subtitle files — adjusting timing offsets and translating subtitle text.


✨ Features

Subtitle Time Changer.py

  • Shifts all subtitle timestamps forward or backward by a specified number of seconds
  • Works with standard .srt subtitle format
  • Useful for fixing out-of-sync subtitles

Subtitle Translate.py

  • Translates subtitle text using a translation API
  • Preserves the original SRT timing structure

🖥️ Tech Stack

Category Technology
Language Python 3
File Format .srt (SubRip subtitle)
Translation googletrans or similar
I/O Built-in open(), file reading/writing

🚀 Getting Started

Subtitle Time Changer

python "Subtitle Time Changer.py"

You will be prompted to enter:

  1. The path to your input .srt file
  2. The output folder path
  3. The time offset in seconds (positive to delay, negative to advance)

📝 What I Learned

  • 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