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 --user vtt_to_srt3

Usage from terminal:

	python 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtt_to_srt3-0.1.3-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.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for vtt_to_srt3-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 953e0a8e5d366aa5b6e0c227e2869cd45d2b90c0f228ffbc9c276cfc28fdf96a
MD5 ec603dc9d460b384fe790643df490006
BLAKE2b-256 dcf70445b55ea4f47cdb8c1ee3740c953034927ffacfa36db77dd00930cd82fb

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