--- id: pysrt version: "1.1.2" license: GPLv3 license_treatment: copyleft maintenance: abandoned --- # pysrt — SubRip (.srt) subtitle parser and writer License: copyleft · Maintenance: abandoned · Downloads: 508.5K/mo ## What it is and what it does pysrt is a Python library for reading, modifying, and writing SubRip subtitle files. It exposes subtitles as a list-like collection of editable items, each with text, start time, and end time properties. You can shift all subtitles forward or backward in time, rescale them to match different frame rates, slice ranges, or edit individual entries. The package also includes an srt command-line tool for common operations like time-shifting and frame-rate conversion without writing code. The library is mature and stable but abandoned—the last release was in January 2020 and the repository shows no recent commits. It has no external runtime dependencies, making installation straightforward on systems with build tools. The GPLv3 license is copyleft, so derivative works must also be open-source. It is suitable for stable, read-only subtitle workflows but not recommended for projects requiring active maintenance or bug fixes. Use it for: - Batch-shift subtitle timing across a media library to correct sync issues with video files. - Rescale subtitles from one frame rate to another (e.g., 23.9 fps to 25 fps) for format conversion. - Programmatically edit or filter subtitle text and timing in video processing pipelines. - Extract and manipulate subtitle metadata (start/end times, text) for analysis or re-encoding. - Command-line subtitle adjustment without writing code (srt shift, split, rate commands). ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. pysrt parses, edits, and writes SubRip (.srt) subtitle files, offering both a Python library API and a command-line tool for shifting, splitting, and rescaling subtitles. Yes, if your use case is stable and read-only (parsing, shifting, rescaling existing .srt files). The library is mature, dependency-free, and widely used. No, if you need active maintenance, bug fixes, or support for modern Python versions beyond what the classifiers claim. The GPLv3 license is a hard blocker for proprietary software. The high install friction (source-only) may complicate deployment on some platforms. ## Install pip install pysrt uv add pysrt poetry add pysrt ## Installing pysrt Before you install: High install friction due to source-only distribution (pysrt-1.1.2.tar.gz). Maintenance is abandoned—last release was 2020-01-20 and last commit 2023-05-09, with no active development. Suitable only for stable, read-only subtitle workflows. License in practice: GPLv3 copyleft license requires that any derivative work or bundled distribution also be licensed under GPLv3. Acceptable for internal tools and open-source projects, but incompatible with proprietary software that cannot adopt copyleft terms. Quickstart: pip install pysrt import pysrt subs = pysrt.open('movie.srt') subs.shift(seconds=-2) subs.save('movie_shifted.srt') No runtime dependencies, but source-only distribution requires a C compiler or pre-built wheel availability on your platform. Verify before relying: - Whether the package works reliably on modern Python versions (3.10+) despite classifiers only listing up to 3.5. - Current state of encoding handling and whether it handles modern subtitle edge cases (emoji, complex markup). ## Package facts - License: GPLv3 (copyleft) - Python support: unspecified - Install friction: high - Maintenance: abandoned - Downloads: 508.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags srt subtitle parser, subrip file editor, subtitle timing shift, srt command line tool, subtitle file manipulation, python subtitle library, srt rescale fps, subtitle-editing, video-processing, cli-tool [View on SkillFed](https://skillfed.io/packages/pysrt) · [View on PyPI](https://pypi.org/project/pysrt/)