Skip to main content

vtt to srt subtitles converter package

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for vtt-to-srt, version 0.7.1
Filename, size File type Python version Upload date Hashes
Filename, size vtt_to_srt-0.7.1-py2-none-any.whl (3.0 kB) File type Wheel Python version py2 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page