Skip to content
/ tosrt Public

Simple Python Script to Convert from VTT format to SRT

License

Notifications You must be signed in to change notification settings

bstin/tosrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

tosrt

Simple Python Script to Convert Subtitles from VTT format to SRT.

This file would be helpful if you are backing up or transcoding video files and you have subtitles in WebVTT format and want to convert them to SRT format. For instance, Plex may work better with .mkv files with embedded SRT files - therefore this script can be helpful to get the subtitles into that format.

Specifically, the script accomplishes two main things:

  • Converts time to radix format
  • Inserts Caption block numbers (autoincremented)

Usage:

python tosrt.py [filename]

Where filename is subtitle file in VTT format

Output will be written to name filename.srt

About

Simple Python Script to Convert from VTT format to SRT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages