SkillAgentSearch skills...

BDSupReader

A BluRay PGS subtitle (.sup) parser

Install / Use

/learn @Sec-ant/BDSupReader

README

This is a toy project. Not even working correctly. Archived.

BDSupReader

Original File | Images (converted to APNG) | Screen Images (converted to APNG) :-----------: | :------------------------: | :-------------------------------: :clapper: | <img src="https://github.com/Sec-ant/BDSupReader/raw/master/assets/Image%20Example.png?raw=true" alt="Image Example.png"> | <img src="https://github.com/Sec-ant/BDSupReader/raw/master/assets/Screen%20Image%20Example.png?raw=true" alt="Screen Image Example.png">

Intro

A BluRay PGS subtitle (.sup) parser, which is developed as a helper CLI tool to sync PGS subtitles timewise. More features will be considered when the basic requirements are met.

This project is still under development, comments and advices are always appreciated!

Features

  • Acquire all the information that the subtitle carries, please refer to US Patent US 20090185789 A1 for details;
  • Acquire the start and end timestamp for each caption;
  • Acquire and save images of each caption;
  • Acquire and save the screen image, which means not only the images themselves, but also their placements on the screen, of each caption;
  • Convert to a 1D vector based on a certain sample frequency;
  • Shift, scale or transform timestamps;
  • Apply a filter on caption images.

Future Work

  • Convert text format strings to RGBA image;
  • Convert subrip or ASS/SSA subtitles to PGS subtitles;
  • OCR. (Maybe not, for this feature is too heavy)

Known Issues

Please refer to the Open Issues Page.

Reference

View on GitHub
GitHub Stars21
CategoryDevelopment
Updated1mo ago
Forks1

Languages

Python

Security Score

80/100

Audited on Feb 11, 2026

No findings