Skip to content

A cross-platform SRT/SSA subtitle timing correction tool.

License

Notifications You must be signed in to change notification settings

jonathanhecl/sub-timing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕐 Sub-Timing

A cross-platform SRT/SSA subtitle timing correction tool.

Features

  • Support SRT/SSA subtitle files
  • Move subtitle timing based on first line appearance time
  • Shift subtitle timing by a specified duration
  • Adjust the subtitle timing by a specified duration (between the first line and the last line)

Usage

SubTiming [mode] -s=source.srt [-o=output.srt] [-f="00:00:00.000"] [-d="+00:00:00.000"] [-l="00:00:00.000"]

Parameters

  • [mode]: Mode to perform:
    • move: Move subtitle timing based on first line appearance time
    • shift: Shift subtitle timing by a specified duration
    • adjust: Adjust the subtitle timing by a specified duration (between the first line and the last line).
  • -s: Source subtitle file
  • -o: Output subtitle file (default: source_modified.srt)
  • -d: Duration to shift by (for shift mode, can be positive or negative)
  • -f: First line appearance time (for move and adjust mode)
  • -l: Last line appearance time (for adjust mode)

Examples

# Move subtitle timing based on first line appearance time
SubTiming move -s=source.srt -f="00:00:00.000"

# Shift subtitle timing by a specified duration
SubTiming shift -s=source.srt -d="-00:00:00.000"

# Adjust the subtitle timing by a specified duration (between the first line and the last line)
SubTiming adjust -s=source.srt -f="00:00:00.000" -l="00:00:00.000"

License

MIT

Release

Release

About

A cross-platform SRT/SSA subtitle timing correction tool.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages