vtt to srt subtitles converter package
Project description
vtt_to_srt.py
Convert vtt files to srt subtitle format
Note
For Python 3.x you can get version for Python 2.7 here
Installation
pip install vtt_to_srt3
python -m pip install vtt_to_srt3
Usage from terminal
usage: vtt_to_srt.py [-h] [-r] [-e ENCODING] pathname
Convert vtt files to srt files
positional arguments:
pathname a file or directory with files to be converted
options:
-h, --help show this help message and exit
-r, --recursive walk path recursively
-e ENCODING, --encoding ENCODING
encoding format for input and output files
Usage as a lib
Convert vtt file
from vtt_to_srt.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.vtt_to_srt import vtt_to_srt
path = '/path/to/directory'
vtt_to_srt(path, rec = True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vtt_to_srt3-0.1.9.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for vtt_to_srt3-0.1.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 162078f7ac4b269dda0e02cedebfcc8afcc6269e1608cc22336fbc43e5be7411 |
|
MD5 | 76ac21796db1a540150fc7a6c3fb0a7d |
|
BLAKE2b-256 | 637434f03f989ba323555990aa35e50fd2c77b01b29da51488938d8d732cb286 |