import sys import webvtt srt = sys.argv[1] webvtt = webvtt.from_srt(srt).save()