Skip to main content

SubStation-based subtitle framework

Project description

\
PySubs is a subtitle framework written in Python 3. While aimed at
developers, it comes with a script to do batch retiming/conversion
from commandline -- a feature some users may find useful as well.

Supported formats
-----------------

- SubStation Alpha (ASS, SSA files) as the native format
- SubRip Text (SRT files) import/export
- MicroDVD (SUB files) import/export
- Matroska (MKV) subtitle track import via mkvtoolnix

Commandline example
-------------------

::

$ pysubs-cli.py --output-dir retimed --shift 1.3s *.srt

Framework example
-----------------

>>> import pysubs
>>> subs = pysubs.load("subtitles.ass", encoding="utf-8")
>>> subs.styles["Default"].fontname = "Calibri"
>>> for line in subs:
... line.text = "{\be1}" + line.text
>>> subs.save("subtitles_fancy.ass")

Project details


Download files

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

Source Distribution

pysubs-0.1.0.tar.gz (38.8 kB view hashes)

Uploaded Source

Built Distribution

pysubs-0.1.0.win32.exe (235.0 kB view hashes)

Uploaded Source

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