This script allows you to shift subtitles in .srt file forward or backward using the pysubs2 Python library. Please read these instructions carefully before running the script.
-
Install Python (3.8 or higher)
Download and install from https://www.python.org/downloads/.
Make sure to add Python to your system PATH during installation. OR you can simply run this command in terminal to install python: "winget install Python.Python.3" for MAC: brew install python -
Install pysubs2 (required for subtitle work)
pip install pysubs2
- Place the subtitle file you want to shift in the same folder as the script.
- Make sure to use the correct file extension i.e .srt
- The output .srt file will also be saved in the same folder with the filename: subtitleFileName_shifted.srt
- Open a terminal or command prompt in the folder containing the script.
- Run the script: type "python shifter.py"
- Follow Along the input instructions prompted on screen
- GitHub: https://github.com/Syed-56
- LinkedIn: https://www.linkedin.com/in/syedsultan10
- pysrt: GNU GPL v3.0 (https://github.com/byroot/pysrt)