vtt-to-srt icon indicating copy to clipboard operation
vtt-to-srt copied to clipboard

Python 3 script that converts WebVTT files to SubRip.

trafficstars

asciicast

Python 3

Packages

  • pysrt
  • webvtt-py
pip3 install pysrt webvtt-py

Synopsis

./vtt-to-srt FILE...

Description

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