Skip to content

douglasrocha/lua-subtitles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-subtitles

A script that allows users to adjust and synchronize srt subtitle files' times.

Run

  • Open the terminal
  • Go to 'src/' with cd command
  • Type the following command
lua lua-subtitles.lua {input} {miliseconds} {output} [from] [to]
Parameters Description
input Input file path
miliseconds Amount of miliseconds to adjust (can also be negative)
output Output file path
from (optional) The timestamp you want to start considering (format: hh:mm:ss,xxx)
to (optional) The timestamp you want to stop considering (format: hh:mm:ss,xxx)

Notes

  • Only valid srt files can be processed by the script. It doesn't guarantee to fix your invalid srt files.
  • If you want to use only the to parameter, make sure to write 'nil' (without escapes) to the from parameter
  • Except for the miliseconds parameter, escape every other parameter
  • Inside test/ there is a valid srt input file to test the application

Git Page

About

A library that allows users to adjust srt files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages