Convert Blu-Ray PGS (.sup) subtitles to SRT via OCR
Project description
Prerequisites
Before installing sup2srt, install Tesseract OCR on your machine:
Github Repo: tesseract-ocr
You will need the Tesseract engine and the specific language packs that you want to use.
For example on an Arch Linux machine:
Arch Linux
sudo pacman -S tesseract tesseract-data-eng tesseract-data-deu
If you're using a different Linux distribution or operating system, check your distribution's documentation.
Installation
The best approach is to install it globally via pipx:
pipx install sup2srt
Alternatively you can install it in a Python environment:
python -m venv .venv
Enable the environments:
source .venv/bin/activate
Install the package using pip:
pip install sup2srt
Running sup2srt
In dem Python Environment lässt sich sup2srt verwenden.
Check the basic commands with:
sup2srt --help
License
MIT License
Copyright 2026 Frank Hoffmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
About
I developed this tool primarily for my own use. As a Linux user, I couldn’t find a satisfying solution for converting SUP files to SRT files.
While there are tools available for Windows, (and these can likely be run on Linux using Wine) I wanted a native solution.
Since I couldn’t find a PIP package for this (maybe there is one after all??), I decided to create one myself.
Thanks
Many thanks to all the developers of the libraries used and to the community for creating so many incredibly useful tools.
AI Usage
I used the AI assistant Anthropic Claude AI - Sonnet 4.6 to create this tool.
As a computer scientist, I have reviewed and approved every single line of code, and I understand the tool’s internal processes and how it works. I didn’t just copy and paste the code from the AI. Instead, I wrote it by hand, line by line, making changes whenever I deemed it necessary.
Nevertheless, there may still be errors or poor design choices. Everyone is free to examine, modify, improve, fork the code or call it AI slop :D
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sup2srt-0.1.1.tar.gz.
File metadata
- Download URL: sup2srt-0.1.1.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0a9d0405785412beab16b45f56f81821d327c3af61cef0d881a8ab0e83faf9
|
|
| MD5 |
378c0b68146e76581cc8c6799dae04ab
|
|
| BLAKE2b-256 |
0d2ce854658e10ae8c939fae7bb285211ada07c80301a89d8d91b7d4ac0eb3e8
|
File details
Details for the file sup2srt-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sup2srt-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcd9b984e281e5af1ebbe471a3b5f1441d35a30720c89ff3cf26afd265e39c86
|
|
| MD5 |
1f753efec53b84286bb92109c375922f
|
|
| BLAKE2b-256 |
cf58c9661e0bc312ed0176c44a23854df1a776f8f35faf32ed2850203335df93
|