Skip to main content

vtt to srt subtitles converter package

Project description

vtt_to_srt.py

Convert vtt files to srt subtitle format

Note

For Python 3.7 you can get version for Python 2.7 here

Installation

pip install vtt_to_srt3

Usage from terminal

python -m vtt_to_srt pathname [-r]

pathname - a file or directory with files to be converted 

-r       - walk path recursively                          

Usage as a lib

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)

Project details


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.8.4.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file vtt_to_srt3-0.1.8.4.tar.gz.

File metadata

  • Download URL: vtt_to_srt3-0.1.8.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for vtt_to_srt3-0.1.8.4.tar.gz
Algorithm Hash digest
SHA256 6fb7a19e98f8ccc61b8ca841757fa52681c28defb630681ea2b0f65ab42a6bcb
MD5 7699a8c3789e329da492f68fa30ddda4
BLAKE2b-256 eaf55514c5515bc6997a6ddf3a4ca5532167274fe84047e02faacfbb31049e18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page