subtitry 0.1.0

subtitry works with the two common subtitle formats, SRT and WebVTT, and has three commands. convert turns a file into the other format and takes the target format from the output file extension. SRT output is renumbered from one; WebVTT output keeps cue identifiers and cue settings. text drops cue numbers, timecodes and tags and joins the lines into plain text, which is handy for quotes and notes. check lists the cues that break timing rules: on screen too briefly or too long, more than two lines, lines too wide, read too fast, overlapping the next cue or followed by a gap shorter than two frames. The defaults follow Netflix's timed text guidelines for Russian (5/6 s to 7 s per cue, up to two lines of 42 characters, 17 characters per second); --chars, --cps and --fps change the line length, the reading speed and the frame rate. A failed check exits with code 1, so the command fits into scripts and CI jobs. Input can be UTF-8 or Windows-1251; output is always UTF-8. The tool is one Python module with no third-party dependencies and needs Python 3.8 or newer. It is published on PyPI, as a conda package on anaconda.org and as an RPM in Fedora COPR; the documentation is in Russian. subtitry comes from AudioVText, a speech-to-text service whose primary language is Russian.

Tags subtitles srt webvtt vtt cli python video russian
License MITL
State initial

Recent Releases

0.1.005 Dec 2026 11:21 major feature: First public release. Three commands: convert (SRT to WebVTT and back), text (plain text from cues) and check (timing against Russian subtitle guidelines; --chars, --cps and --fps adjust the line length, reading speed and frame rate). Reads UTF-8 and Windows-1251, writes UTF-8.