Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > General > Subtitles

Thread Tools Search this Thread Display Modes
Old 29th July 2020, 04:26   #1  |  Link
hlg-tools Maintainer
wswartzendruber's Avatar
Join Date: Feb 2008
Posts: 322
I Made a PGS Cropper

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:


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

    pgsscale <INPUT-FILE> <OUTPUT-FILE> --crop-height <PIXELS> --crop-width <PIXELS>

        --help       Prints help information
    -V, --version    Prints version information

    -h, --crop-height <PIXELS>    Height to crop each subtitle frame to
    -w, --crop-width <PIXELS>     Width to crop each subtitle frame to

    <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.
Attached Images

Last edited by wswartzendruber; 2nd August 2020 at 17:21.
wswartzendruber is offline   Reply With Quote

crop, ocr, pgs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 19:03.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.