Log in

View Full Version : SRTmaker by Rectal Prolapse help


medp7060
9th January 2010, 09:28
Here are the notes I wrote on my Blu-ray subtitle conversion workflow:

Tools needed:

• Xport
• Supread
• Adobe Photoshop
• ABBYY Finereader

Extract the subtitle with xport.
Load the SUP file with Supread:
○ Save the subtitles in PNG format using Save Bitmaps.
○ Save an SRT file (do not OCR the subtitles within Supread)
Open Photoshop:
1. Use an action that modifies the images:
i. Brightness to -100, Contrast to +100
ii. Overwrites the PNG.
This forces the background color to pure black and should eliminate any dropshadows in the subs. This makes OCRing much more reliable.
2. Select File->Batch from Photoshop's menu.
i. Select the folder container all the PNGs.
ii. Select the action. Execute.
This should convert all PNGs to have a black background and removes dropshadows.
Launch Finereader:
1. Press the Open Image button, and select all the PNGs.
2. Select all the images (press CTRL-A), then select Image->Correct Resolution from the menu.
3. Choose a resolution of 300 DPI, and apply to All images in the batch.
A dialog box with progress of the DPI assignment should appear.
4. Go to Image->Load Block Template.
The template should be a Text Block that is the size of the whole image (roughly 1920x1080 or a bit less). It will be applied to all the images.
5. Click the Read All button (dropdown button next to the Read All button).
6. After everything is OCR, you can go through each page, making sure things look ok.
7. Click on Save Pages button.
i. Formatting options should be set for HTML:
1) Retain Layout: Retain font and font size.
2) Save mode: Simple.
3) Text settings: Keep Line breaks checked, Use Solid Line as Page break checked, uncheck Retain text color.
ii. Save as type Unicode HTML (UTF-8).
iii. Save Pages: All pages.
iv. Create a single file for all pages.
8. Click Okay to save the OCR'd pages to one file.
9. Use SRTMaker, giving it the SRT and HTML file on the command-line to generate a new SRT that is piped to standard output.

After some search, I found that Rectal Prolapse's protocol works well for DVB subtitle to srt, however, I failed at the last step. I have a srt from Supread, and a htm from ABBYY, but the final srt generated by SRTmaker only have one time line for all the subtitles;

1
00:00:00,990 --> 00:00:01,832
line 1

2
00:00:01,830 --> 00:00:02,638
line 2

3
00:00:02,630 --> 00:00:03,665
line 3

4
00:00:03,660 --> 00:00:04,502
line 4

5
00:00:04,500 --> 00:00:06,241
line 5

...


The htm file
COME ON IN.

COME ON IN.

(BLUE BARKS "COME ON IN")

WHAT DID YOU SAY?

KIDS:
A CLUE, A CLUE!

YOU SEE A CLUE?
WE SEE A CLUE.

ANOTHER BLUE'S CLUES DAY,
HOORAY!

DO YOU WANT TO PLAY...


the final srt:

1
00:00:00,990 --> 00:00:01,832
COME ON IN.

COME ON IN.

(BLUE BARKS "COME ON IN")

WHAT DID YOU SAY?

KIDS:
A CLUE, A CLUE!

YOU SEE A CLUE?
WE SEE A CLUE.

ANOTHER BLUE'S CLUES DAY,
HOORAY!

DO YOU WANT TO PLAY...

Rectal Prolapse
12th January 2010, 05:43
Hmmm could be a linefeed detection issue? If I remember right, SRTMaker relies on ABBY to create a <BR> tag or something like that for each line of dialog. Check the instructions I made again and see if the HTM generation has this option enabled.