Skip to content

Python 3 script that converts WebVTT files to SubRip with colours.

License

Notifications You must be signed in to change notification settings

darodi/vtt-to-srt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vtt-to-srt subtitle converter

A simple python module to convert vtt files to srt files with colours!

❓ Why this fork?

Some streaming platforms use vtt subtitles with colours. (ie. Auvio)

💾 Installation

pip3 install .

🖥️ Command line interface

usage: vtt_to_srt [-h] [-s] [file [file ...]]

vtt_to_srt  is a command line tool to convert vtt subtitles to srt files

positional arguments:
  file        a file. The command accepts zero, one or more files as arguments. For each .vtt, a .srt will be
              generated in the same folder. Any other extension is ignored.

optional arguments:
  -h, --help  show this help message and exit
  -s          strip all tags in output srt

📙 Usage

The command accepts zero, one or more files as arguments.
For each .vtt, a .srt will be generated in the same folder.
Any other extension is ignored.
If you specify no file, it will convert all .vtt files in the directory.

Other projects

vtt_to_srt is used in a docker image for youtube-dl with vtt to srt conversion https://github.com/darodi/docker-youtube-dl-vtt-to-srt

About

Python 3 script that converts WebVTT files to SubRip with colours.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%