vtt_to_srt.py
useful python script for Python 2.7
convert all vtt files to srt subtitle format
Usage from terminal:
vtt_to_srt.py pathname [-r]
pathname - a file or directory with files to be converted
-r - walk path recursively
As a lib:
Installation:
pip install --user vtt_to_srt
Usage:
# convert vtt file
from vtt_to_srt import vtt_to_srt
path = '/path/to/file.vtt'
vtt_to_srt(path)
# recursively convert all vtt files in directory
from vtt_to_srt import vtts_to_srt
path = '/path/to/directory'
vtts_to_srt(path, rec = True)
Metadata
Release files for vtt-to-srt 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vtt_to_srt-0.7.1-py2-none-any.whl | Python 2 | none | any | Details |
Release files / vtt_to_srt-0.7.1-py2-none-any.whl
| Download URL | vtt_to_srt-0.7.1-py2-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9f5f62ca3d0df6edbd5462de8def8898d6ae6f08c7a552e40a6e7db0fb24bb3e
|
|
BLAKE2b-256 checksum How to use checksums |
ad17bb4e7d791a11b8261b272ba18e82d24620fac4a7aca2b471ddc743c3ac31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.9.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/2.7.12
|