Skip to main content

vtt to srt subtitles converter package

Project description

vtt_to_srt.py

useful python script for Python 3.7 (you can get version for Python 2.7 here: https://github.com/jansenicus/vtt-to-srt.py)

convert vtt files to srt subtitle format

Installation:

	pip install vtt_to_srt3

Usage from terminal:

	python -m vtt_to_srt.py 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.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

vtt_to_srt3-0.1.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtt_to_srt3-0.1.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for vtt_to_srt3-0.1.5.tar.gz
Algorithm Hash digest
SHA256 14a9dbdb1b5b19b5732dc920d51809a9e74f9f6f5b0e0e8c7ea99ade3b6ace1c
MD5 6ee6188a3bb960be813394987dcda728
BLAKE2b-256 d6d26841a558b046dc9b94b4b706c23d60caa506b4e2e563d5fd12ba2ff2cc58

See more details on using hashes here.

File details

Details for the file vtt_to_srt3-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: vtt_to_srt3-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for vtt_to_srt3-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f8300f82a57583d81c62e599c9bb0728999d54de23987387739196d9c235858d
MD5 8b8bbefc3e967b89900cade946773610
BLAKE2b-256 3c5458c0e9034236d87c25bfbe1fcb8b777b75128b965cfac3aa2bc2346882b0

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