Skip to content

Instantly share code, notes, and snippets.

@cdiazbas
cdiazbas / convert-subtitles.py
Last active December 19, 2020 13:44 — forked from acdha/convert-subtitles.py
Video caption conversion script using the PBS pycaption library
#!/usr/bin/env python
# encoding: utf-8
"""Convert caption files to different formats
One or more caption files will be converted to the specified output format, saved next to the input file
Requires the pycaption library from PBS: https://pypi.python.org/pypi/pycaption/
"""
from __future__ import absolute_import, print_function, unicode_literals