Skip to content

Shifts time codes in subtitles to account for differences in frame rates.

License

Notifications You must be signed in to change notification settings

tedmasterweb/time-shifter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

time-shifter

Shifts time codes in subtitles to account for differences in frame rates.

How to use

  1. Open index.php in a text editor and set the values for:
FROMFPS // this is the FPS of the source video, example: 29.97
TOFPS // this is the FPS that you want the subtitles to coincide with, example: 25
INPUT_FILE // this is the full path to the subtitle file, example /Users/xavier/Desktop/SomeFunMovie.srt
OUTPUT_FILE // this is the full path to the converted file (the file this script will produce)
  1. In a command prompt, navigate to the folder that contains the index.php file, example: cd path/to/folder
  2. Execute this command: php -f index.php

You should now have a new subtitle file with the time codes adjusted to coincide with the desired frame rate.

Good luck!

About

Shifts time codes in subtitles to account for differences in frame rates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages