wswartzendruber
29th July 2020, 04:26
I got sick and tired of OCR'ing subtitles. It's error-prone and really only necessary (for most of us) because if we put the original PGS subtitles in, they'll appear crushed for anything that's not a perfect 16:9.
So I studied some kind of reverse-engineered spec sheet on PGS and created this:
https://github.com/wswartzendruber/pgsscale
So far, it's working wonders on Batman: The Animated Series.
It doesn't yet scale, but if there's interest, I can see about hosting binaries. (Or someone else can do so.)
PGSScale 0.1.0
Scales PGS subtitles
USAGE:
pgsscale <INPUT-FILE> <OUTPUT-FILE> --crop-height <PIXELS> --crop-width <PIXELS>
FLAGS:
--help Prints help information
-V, --version Prints version information
OPTIONS:
-h, --crop-height <PIXELS> Height to crop each subtitle frame to
-w, --crop-width <PIXELS> Width to crop each subtitle frame to
ARGS:
<INPUT-FILE> Input PGS file; use - for STDIN
<OUTPUT-FILE> Output PGS file; use - for STDOUT
This utility will crop PGS subtitles found in Blu-ray discs so that they can match any cropping that has been done to
the main video stream, thereby preventing the subtitles from appearing squished or distorted by the player.
EDIT: Updating usage.
So I studied some kind of reverse-engineered spec sheet on PGS and created this:
https://github.com/wswartzendruber/pgsscale
So far, it's working wonders on Batman: The Animated Series.
It doesn't yet scale, but if there's interest, I can see about hosting binaries. (Or someone else can do so.)
PGSScale 0.1.0
Scales PGS subtitles
USAGE:
pgsscale <INPUT-FILE> <OUTPUT-FILE> --crop-height <PIXELS> --crop-width <PIXELS>
FLAGS:
--help Prints help information
-V, --version Prints version information
OPTIONS:
-h, --crop-height <PIXELS> Height to crop each subtitle frame to
-w, --crop-width <PIXELS> Width to crop each subtitle frame to
ARGS:
<INPUT-FILE> Input PGS file; use - for STDIN
<OUTPUT-FILE> Output PGS file; use - for STDOUT
This utility will crop PGS subtitles found in Blu-ray discs so that they can match any cropping that has been done to
the main video stream, thereby preventing the subtitles from appearing squished or distorted by the player.
EDIT: Updating usage.