SUB2PGM(1)

NAME
sub2pgm - convert vobsub dvd subtitles into pgm files and srt template

SYNOPSIS
sub2pgm [-hd] [-o srtbase] [-t sid] vobsub

DESCRIPTION
The sub2pgm converts dvd subtitles from the vobsub format into an intermediate form suitable for OCR extraction.

sub2pgm takes two files as input, which should be named <vobsub>.idx and <vobsub>.sub, where vobsub is the basename of the files.

sub2pgm outputs one .pgm graphics file for each subtitle image, and a .srt template file with correct timing annotation, where each subtitle entry is replaced with the corresponding graphics file entry with .txt appended.

After OCR conversion, such a file can be transformed into a proper srt file by srttool(1). The options are as follows:

-d  Displays debugging information as subtitle info is extracted.

-h  Displays usage and quits.

-o -srtbase
    Basename for all .pgm output files and the .srt template.

-t -sid
    Selects subtitle id from a vobsub file with several subtitle streams. Defaults to 0.

SEE ALSO
gocr(1), mencoder(1), srttool(1).