WebVTT reader, writer and segmenter
Project description
webvtt-py is a Python module for reading/writing WebVTT caption files. It also features caption segmentation useful when captioning HLS videos.
Usage
from webvtt import WebVTT
webvtt = WebVTT().read('captions.vtt')
for c in webvtt.captions:
print(c.start)
print(c.end)
print(c.text)
Segmenting for HLS
from webvtt import WebVTTSegmenter
WebVTTSegmenter().segment('captions.vtt', 'output/path')
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
webvtt-py-0.1.zip
(10.5 kB
view hashes)