SUBP2PGM(1)
β¨ SUBP2PGM(1) β¨
okay bestie, welcome to the subp2pgm page from the User Manuals section π this is the one that turns your DVD subtitles into something an OCR can actually chew on. sit down, grab a boba, let's go π§
πΈ NAME πΈ
subp2pgm β convert VobSub DVD subtitles into pgm files and xml description, no cap π
π SYNOPSIS π
subp2pgm [-hvf] [-o output] [-s sid] vobsub
π¦ DESCRIPTION π¦
so like. subp2pgm converts DVD subtitles from the VobSub format into an intermediate form suitable for OCR extraction. it's giving β¨middle managerβ¨ of subtitle formats β not the final boss, but the one who makes the handoff happen π«Ά
subp2pgm takes two files as input, and they should be named <vobsub>.idx and <vobsub>.sub, where vobsub is the basename of the files. yes, the basename. like the shared part. iykyk π
subp2pgm outputs one .pgm graphics file for each subtitle image, plus a .xml description file with correct timing annotation, where each subtitle entry is replaced by the corresponding graphics file. literally one pic per line of dialogue, iconic π
after OCR conversion, such a file can be transformed into a proper srt file by subptools(1). so it's a whole pipeline moment, we're just the first step bestie π
the options are as follows:
π OPTIONS π
-h,--helpβ display usage and quit. the classic "what does anything do" button π-v,--verboseβ increase verbosity level. more yapping, more info π’-f,--forcedβ extract forced subtitles only. just the mandatory ones, the ones that were always gonna show up π-n,--normalizeβ normalize the palette. color correction era π¨-o,--outputoutputβ basename for all pgm output files and the xml description. you pick the name, she does the rest π-s,--sidsidβ selects subtitle id from a vobsub file with several subtitle streams. defaults to0. so if your file is a whole friend group of subtitle streams, this is how you point at the right one π«Ά
β SEE ALSO β
subptools(1) β go look at her next, she finishes the job π
π AUTHORS π
manual page by Marc Espie, Olivier Rolland π
ok that's the whole page, you ate it, periodt π β¨
this was brought to you by the Linux release, dated January 20, 2007 β yes she's an elder but she's still slaying π¦π
π¦ where this page comes from
- debian trixie: ogmrip 1.0.1-5 Β· GPL-2.0-or-later
- ubuntu jammy: ogmrip 1.0.1-3.1 Β· GPL-2.0-or-later
- ubuntu questing: ogmrip 1.0.1-5build1
- ubuntu resolute: ogmrip 1.0.1-5build2 Β· GPL-2.0-or-later
- ubuntu stonking: ogmrip 1.0.1-5build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms