View Single Post
Old 29th April 2005, 01:18   #9  |  Link
ai4spam
Programmer
 
ai4spam's Avatar
 
Join Date: Sep 2003
Posts: 382
Instructions

Here's a first try at a "manual" for the new features, extracted from the updated documentation:


II - OCR Process

...
If SubRip already has a character that it thinks is close to the
current one, it will display it on top of the window, as the "best
guess". To use it (including the font style), just press the "Use"
button. A new character will be inserted in the character matrix,
just as if you typed it manually.
...


5) If you think you recognize the font that the subtitles use, you can
try to generate all the characters automatically, instead of typing
them one by one. Press the "Fill Matrix From Text" button. In the
window that appears, first type one of the lines of text in the
image, then use the buttons to adjust the text position, size and
angle so that it overlaps exactly with the text in the image. Try
changing the font size and style to improve the match (if you select
italics or bold, the styles will also show up in the character
matrix). When done, press "Done" to continue. If the match is not
perfect, or the OCR tolerance is too high, SubRip may not recognize
the newly-inserted characters, and just show you a best guess. If it
matches, press the "Use" button, and the current character will be
introduced in the character matrix.

...

IX - Ripping SubTitles from video files

Some video files have SubTitles "burned into them". SubRip can be used
to extract subtitles from video files as follows.

1) Open the video file by selecting "Open Hard Subbed Video Files" from
the "File" menu. SubRip will try to open any file that MediaPlayer can
play, but it can only detect the frame rate of .avi files.

2) The movie will start playing in the video window. Wait until you see
a subtitle, or use the track bar in the "Video control panel" or the
edit box to advance to another frame. Press the "Pause" button to stop
the movie from playing when you see a subtitle.

3) In the movie window, click INSIDE a character (the white area) so
that SubRip can detect the subtitle color and width. Look in the panel
to confirm: the detected colors should match what you see in the video
window. If not, click again. The "text line width" box should show
values between 1 and 5. Anything larger would probably mean that
detection was unsuccessful. If after several tries, the detection still
does not seem to work, try lowering the "text color tolerance".

4) In the movie window, right-click and drag to define the region inside
which the detection takes place. The smaller the region, the faster it
will work. The region should completely enclose the subtitles, and have
a generous margin of at least the width of the text line and outline
combined. Be careful for cases when there are more lines in the
subtitle. You can always stop processing and redefine the region by
right-clicking and dragging.

5) Check the "View" check box. In the main window, a rectangle the size
of the selected region should show up, with the subtitles in white and
the outline in red. If the subtitles have outlines (they mostly do),
also check the "Use" check box.

7) If the subtitles do not show up properly (the lines are too thin),
try playing with the text line and outline widths and increasing the
tolerances. Ideally, even on a bright background, you should only see
the text and the outline. If large bright areas also show up, try
checking the "Try to fill open areas" and "Try to fill large areas"
check boxes. Do not use them unless you have to, they slow down the
recognition process.

8) When you are satisfied, press the "Rewind" button to go to the start
of the movie, then the "Run" button to start the OCR process. The OCR
will be similar to what you see when ripping SubTitles from DVDs. If at
any time you need to change any parameters, press the "Pause/Abort"
button.

9) If you want to change the last subtitle, press the "Back" button to
go the first frame of that subtitle in the movie.
ai4spam is offline   Reply With Quote