Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.64 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.64 KB

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