View Full Version : ANN: SubRip 1.50 b4


zuggy
27th April 2005, 21:01
ai4spam continues the developing of subrip, he added support for ripping subs out of avi files that contain them hardsubbed. You can download and test it - http://zuggy.wz.cz

beta 3a: LRN of TeMa=) team added experimental 3GPP Timed Text (*.ttxt) support (http://gpac.sourceforge.net/auth_text.php), without color support though.

beta 4: Bugfix release only (crash when editing a Character Matrix file)

ai4spam
27th April 2005, 22:44
Changes in 1.50:
Beta 1: Added whole words formatting. Added support for text formatting in subtitle window. Lots of other GUI changes. Moved to Delphi 2005 (but Delphi 7 is still supported). Speedup in processing videos when the frames are empty. Experimental Spanish language correction.
Beta 2: Fixed the detached chars problem. Fixed UniCode support to preview CodePage changes. Other bugfixes. Some changes in the video GUI. Reverted to Delphi 7, but Delphi 2005 is still supported.
Beta 3: Fixed saving bug for split subtitles. Fixed video no longer working bug. Added a progress bar for loading char matrices. Updated ortography dictionaries to UniCode.

Changes in 1.40:
Beta 1: large GUI overhaul and bugfixes; changed the format of the language and char map files to UniCode; filling a char matrix with UniCode ranges; opening bitmap sequences that DVDSupDecode outputs from converting DVB-T broadcasts saved as .sup by ProjectX; made Modify and Delete work faster for characters in the Char Matrix
Beta 2: fixed a few bugs and added an option to automatically fill the best guess; updated Portuguese language by Vítor Vieira
Beta 3: added support for negative timestamps and using the file offsets from .idx files, and fixed a few bugs

Changes in 1.30:
Beta 1: added experimental UniCode support
Beta 2: fixed a few bugs
Beta 3: fixed AviSynth support (no UniCode file names in .avs scritps)
Beta 4: fixed old character matrix format import (now the correct diacritics are selected if the CodePage is set properly)
Beta 5: fixed "black on black" bug; added experimental support for delays in .idx files (multiple delays are compounded)
Beta 6: fixed a bug when saving subtitles as UniCode instead of ANSI for some languages; GUI improvement when processing videos: show last frame of the subtitle when doing OCR, instead of the current frame
Beta 7: large overhaul of the video GUI (now tolerances are per channel); changed the detection algorithm; added text fattening to help with irregular characters
Beta 8: improved the detection algorithm: now the frame times should be correct in all but the most difficult cases; fixed a bug in the disjoint characters routine; fixed DVD Maestro saving bug
Beta 9: fixed video not showing bug; added UniCode font support (by default, Arial Unicode MS is used, if available); fixed several other bugs
Beta 10: added a Font button in the subtitle window; fixed several bugs in hard-subbed video ripping
Beta 11: fixed some GUI bugs, updated with new French language file by Kurtnoise

Changes in 1.20:
Beta 9: AVI file support; fill char matrix from matched font; best guess so far
Beta 10: speedup in avi files; moved all avi stuff to a new window, changed some things in the GUI; added Ctrl-Enter for using best guess in OCR; added Pause/Abort button in color change dialog; solved the duplicate subs problem; Zuggy solved the P4 crash problem.
Beta 11: speedup and bug fixes for video files; several GUI improvements.
Beta 12: extend selection for disjoint characters; draw blue lines between text lines
Beta 13: fill areas that touch the blue lines between text lines
Beta 14: automatic support for other video files using AviSynth.
Beta 15: support for saving subtitles as bitmaps for later subtitle removal
Beta 16: extend more than 1 character, save bitmaps as .pgm
Beta 17: minor bugfixes

A guide for ripping subtitles from videos is now available:
http://zuggy.wz.cz/redir.php?co=101

I've posted my char matrix: http://sr1.mytempdir.com/132702 or http://foxyshadis.slightlydark.com/random/CharMatrix.rar (thanks to foxyshadis)

It works for some 90% of the DVDs I've seen. Be sure to set the OCR sensitivity high (1000) when using it. See additional instructions in my post: http://forum.doom9.org/showthread.php?p=679590#post679590

unskinnyboy
27th April 2005, 23:33
Hardcoded subs from AVI? Wow. This is great news. Thanks! Installing 1.2b now. :)

smiller667
28th April 2005, 02:22
Thank you for the great news ... I'll try the hardsub-ripping soon.

Steve

niamh
28th April 2005, 07:32
This is great!

E-Male
28th April 2005, 07:48
gotta try this one

ai4spam
28th April 2005, 19:08
Thanks, guys, feedback and bug reports will be appreciated.
I'm currently working on it, so check back to the website often, there may be new betas for download.
I'll try to make a HowTo guide for it also.

ai4spam
28th April 2005, 19:25
Oh, and ti will work with anything MediaPlayer can play (mpg, ogm, you name it), except that in MediaPlayer mode (as oppposed to simple Avi mode) the area where the movie is displayed has to be on top, with no other windows over it, and there is no way it can tell the frame rate.

ai4spam
29th April 2005, 01:18
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.

E-Male
29th April 2005, 03:26
had a quick look, and all seems ok (as always with subrip)
the only thing i don't like is this:
if a windows is on top of the video it get's captured instead
so far not so bad, i guess it has a technical reason, but:
1. the control windows (with the options for the ocr from video) hardly fits between the video and the edge of the window, maybe one solution would be to allow the window to be set to fullscreen
2. the text window (showing the sub file), it always appears at the same place (partially over the video), could it be changed to remember it's last position

an other (low priority) request:
since subrip recognises the subs in the video
could it output their frame times, coordinates and bitmaps of them
if that format could be fine-tuned together with an avisynth-logo-removal-plug-in-developer [what a word] it would be possible to do high quality subtitle removing
(later a translation of the OCRed subs could be put back as hard- or soft-subs)

ai4spam
29th April 2005, 06:37
Thanks for the feedback.

For issue 1, indeed the reason is technical: in MediaPlayer mode it can open pretty much any file that MediaPlayer opens, but it can't draw it double-buffered. I'm changing this so that the video is in a separate window that is always on top. That will take care of issue 2 also.

The low-priority request can be done, and will be if such a developer adresses me with a request.

ai4spam
1st May 2005, 16:35
About the VirtualDub Plugin: there is already a plugin that pulls the subtitles in "standard" SubRip files (.sub and .idx) from video files. I haven't tested it (a friend says it only works with VirtualDub 1.5.4) and I don't know how well it deals with tough cases like white subs on white background (it seems rather simplistic, from the interface), but it may be worthwhile talking to its developer about your request:
http://www.sharemation.com/PodPis/PodPis.html

masken
2nd May 2005, 22:01
Great news! :)

Still any need for "hard cases" vobsubs as reference material?

Taking my chance for a feature suggestion:
Accelerator indicators for selecting formatting wanted (Italics, Underlined, Bold, Sticky (or whatever the no-named one's named ;))).

Also pause/abort in the 4-color selection dialogue.

ai4spam
2nd May 2005, 23:30
Thanks for the reply. I don't quite understand what you mean by "hard cases". About the feature suggestion: in what window? The pause/abort can be done, no problem.

I'll resume work at the end of this week. Meanwhile, if he has time, Zuggy will try to solve the crash bug on P4.

Endzeit
4th May 2005, 08:58
ai4spam,

you're definitely a genius!
Never heard of this program before, d/l'ed it and gave it a try - OCRing hardcoded subs is an amazing approach!

Thanks a bunch for all the effort you put into this great piece of software.

niamh
4th May 2005, 09:53
I have a feature request if that's possible .. I love the best guess button, but it gets it wrong half the time, so I end up moving the mouse up and down to fill the letter in or click best guess (in the end, I just fill the letters in). Would it be possible to make an option saying "press enter on the empty box will automatically enter best guess in the matrix" (if that's english). This way it would be even faster and easier :)

I have an idx here that won't be ocred at all with any app, I tried fiddling with the detection thresholds with no joy, if anyone wants it to improve ocr detection I can upload it. :)
I think masken meant those, idx files that won't be ocred properly no matter what.

smiller667
4th May 2005, 15:31
If you can up it somewhere, I'd like to take a look ... just out of curiosity.

Steve

castellanos
4th May 2005, 16:25
Hi!
I'll give a try, but I would like to know if an old bug is fixed it:
When saving subs in srt text mode, SubRip makes no difference between "I" and "l" then, for example, the word "Golf" comes like this: "GoIf" and so on with the rest of the "l"s...
Somebody noticed that problem?
Greetings! ;)

niamh
4th May 2005, 16:44
subs (http://c.1asphost.com/niaomalley/casshern.7z)

Have fun ;)

E-Male
4th May 2005, 16:45
Originally posted by castellanos
Hi!
I'll give a try, but I would like to know if an old bug is fixed it:
When saving subs in srt text mode, SubRip makes no difference between "I" and "l" then, for example, the word "Golf" comes like this: "GoIf" and so on with the rest of the "l"s...
Somebody noticed that problem?
Greetings! ;)
have you tried the 'postproccessing'? [don't remember the exact name of the feature]

ai4spam
4th May 2005, 20:25
Thanks everybody for the replies.

@Endzeit: Thanks for the complement. AviSubDetector ( http://forum.doom9.org/showthread.php?s=&threadid=89802 ) does the same thing and has TONS of options, but is hard to use (the interface is just horrendous) and makes lots of mistakes. SubRipAvi will hopefully work just as well or better, and be easier to use.

@niamh: Pressing Enter in the edit box by default means an empty char, and you can use it for skipping over characters that are too small and the like. I guess I could put a checkbox to give you the choice of having functionality you want. About that .idx file, try not using all the colors, sometimes it helps.

@smiller667: The beta version is already up on the official site mentioned in the first post. Now I'm working on improving the speed and accuracy of the detection.

@castellanos: Use the "Post-OCR correction" facility in the text window (there's a button and a menu option, your choice). Also, you can use URUSoft's Subtitle Workshop ( http://www.urusoft.net/downloads.php?lang=1 ) to correct many other OCR mistakes. You can even use the corrector in MS Word for that (Subtitle Workshop can do it for you).

@E-male: There is a subtitle and logo remover filter for VirtualDub, check out http://www.compression.ru/video/subtitles_removal/src/msu_delogo.zip

zuggy
4th May 2005, 23:05
Originally posted by castellanos
...if an old bug is fixed it...


How could be fixed (primary) ocred I&l letters if their "pictures" are frequently totally equal?

masken
4th May 2005, 23:32
Originally posted by ai4spam
Thanks for the reply. I don't quite understand what you mean by "hard cases". About the feature suggestion: in what window? The pause/abort can be done, no problem.

I'll resume work at the end of this week. Meanwhile, if he has time, Zuggy will try to solve the crash bug on P4.
The pause/abort is when selecting colors. If you've got a "hard case" you end up in a "catch 22" there, and have to use Ctrl+Alt+Del to be able to end the application.

For accelerator indicators, I mean the OCR-process window, where you work with the subs OCR:ing them. It would be very nice to be able to perform an OCR just using the keyboard and accelerator indicators (ie; alt+i to switch Italics on/off), ie; no mouse operations or 4-times tabbing + space to reach the Italics checkbox :)

About "hard cases", I've previously sent Zuggy examples of vobubs that has been hard or impossible to perform OCR on using SubRip. If there's still need for such examples, I can send more :)

btw; I forgot the most sought-after feature suggestion of them all :D The "Expand/Reduce selection" feature, similar to the one in Gabest's SubResync, for extending/reducing a selection in the image/letter being OCR'd.

oh, came up with yet another one ;) How about a "Only allow whole words to be formatted" feature in the post-OCR correction settings? I often find that when working with formatted subs (italics etc), some letters are sometimes OCR'd with the wrong formatting, making the subs actually quite alot larger (and harder to read/post-OCR fix) because of all the <i></i>'s. If one could limit formatting to whole words instead of single letters, this problem would be gone. Also note that Subtitle Workshop can't handle this, SW only handles formatting on a per-dialogue basis (and actually destroys the formatting to this state too if you open/save a sub in SW).

EDIT #4 :D
Another, low-prio feature suggestion is Regular Expressions support in the post-OCR correction. Would be neat to have a script-file much like in SW where you could specify how the post-OCR should be performed using RegEx. Ie; have an open-format type of post-OCR correction (including the default one). Low prio for me as this feature is already available in SW.

Last but not least, a HUGE THANK YOU for keeping up development of the absolutely best OCR application available for subtitles! http://www.home.no/masken/other/smilies/honorhim.gif

smiller667
5th May 2005, 00:06
@ai4spam: thanks, looks promising. I'll report back.

@niamh: The subs are not soo hard to OCR - edit the colours to remove all background and antialisasing colours and set the OCR difference threshold a bit lower, perhaps 700. Distinguishing italics and plain text is tricky, though. I'd probably ignore all text attributes and set the few lines in italics manually afterwards.

Steve

johner23
5th May 2005, 03:56
I have tried your program to extract some hardburned subtitles from an avi ( as I did using ASD, another great tool too ) and have the same problems related in the link above:

---> http://forum.doom9.org/showthread.php?threadid=93986

Any way to solve this?

Thanks.

devil (johner)

ai4spam
5th May 2005, 10:33
@masken: Great suggestions. Will work on them (the expand/reduce selection is next on the agenda). Whole words may take a bit, since there are all these output formats that are supported independently :(. Please do send me (email) some hard cases, with a line or two of explanations.

@johner23: Yes, SubRipAvi already has duplicate removal, but only for .avi subtitles. It removes subs that are IDENTICAL and have 1 frame distance between them I guess I should also remove subs that have 0 frames distance between them. It'll be trivial to make it work for DVD subtitles also.

yaz
5th May 2005, 15:36
yep ... that 'whole word only' thing would be great. not a big deal as it can be easily corrected even w/the most basic editor but quite annoying when occurs.

another clue. i've never ever been able to define a good color palette, so i don't know how to cope w/'soft-looking' subs. ye know, white letters outlined w/light grey on grey background, or such. ripping such subs makes practically retyping the whole subs as subrip skips complete line very frequently. so. would it be possible to implement sg like 'loading predefined color schemes', (say, black and white, or so). it'd be quite beneficial for simpletons like me.

thx a lot for your worx
y

niamh
5th May 2005, 16:14
@ Ai4spam and smiller : thx for the tip :)

ai4spam
5th May 2005, 17:36
@yaz: Unfortunately, as far as I know, each DVD has its own pallette, so predefined schemes won't work. One thing that could be done is to redo the binarization part of the algorithm. Right now it takes at most 4 out of 16 colors into consideration. Maybe some tolerance in color is also necessary. Anonther solution would be to click manually on each color, just as with hard-subbed videos. However, this is not exactly my area, I only work on the hard-subbed videos part and just occasionally dabble elsewhere, when it is easy enough to understand.

masken
5th May 2005, 22:57
@ai4spam, sent u a pm

Also came up with another feature that really should be in subrip; built-in UnRAR.dll routine (http://www.rarlabs.com/rar_add.htm). Subrip really should be able to unRAR .sub's in an .idx/.sub set as it's very popular to RAR the .sub when you backup as XviD's.

ai4spam
6th May 2005, 08:54
I can't access your website, please mail me the subs instead (@gmail).
unRAR is not on my list of priorities, there are tons of other improvements that are more important.

ai4spam
6th May 2005, 10:21
Beta 10 is up on the website.
Changes:
- speedup in avi files (but still a lot to do)
- moved all avi stuff to a new window, changed some things in the GUI
- added Ctrl-Enter for using best guess in OCR
- added Pause/Abort button in color change dialog
- possibly solved the duplicate subs problem (can't test, someone mail me some problem subs @gmail)

@masken: shortcuts are already available for formatting, use Ctrl-I, Ctrl-B and so on, while the cursor is inside the edit box. Can't use Alt- because that shifts the focus away from the edit box. Besides, Ctrl- is the standard key used in other applications (Word, etc.).

yaz
6th May 2005, 12:45
Originally posted by ai4spam
... as far as I know, each DVD has its own pallette, so predefined schemes won't work ... yep ... that's what i've been afraid of ;)
thx for the new release (it's getting better and better)
y

masken
7th May 2005, 12:47
@ai4spam, would it be possible to add ToolTip texts to the shortcuts (Ctrl + I) etc? Perhaps also underline the letter for each accelerator indicator (Italic etc)?

ai4spam
8th May 2005, 09:52
Beta 11 is available now. Tons of bugfixes and improvements, including some of the things requested here.
Video file support is about as fast and as good as I can make it. Of course, additional heuristics are possible, but I probably won't be implementing them (no time :( ). I'll only deal with bug reports and some features that I think are worth implementing, but I'll be happy to explain what I did if someone wants to continue.
It still misses some subtitles sometimes, in very hard cases (like, a sub disappears, and the very next frame, everything is white where the subtitles were). This doesn't happen very often (2 times in the movie I tested). When it does happen, stop processing, go to the first frame of the subtitle and play with the settings until it looks just right. That solved the problem in my case.
It seems to confuse a lot italics and regular characters, so just make everything regular if possible, otherwise you'll need to crank up the OCR sensitivity and pretty much end up typing the whole subtitle.

ai4spam
9th May 2005, 18:28
A request I received via email, and my reply:

ai4spam, thanks for all the improvements to SubRip!
They are appreciated by me and many others.

Would it be possible to modify the "Open Hard Subbed Video Files" feature so that you could open VOBs on a DVD? You would choose VTS_01_1.vob on the DVD and it would automatically VTS_01_1.vob, VTS_01_2.vob, etc (kind of like the "Open VOB(s)" feature but for hardcoded subtitles).

I have some DVDs with hardcoded subtitles that I would like to rip.

Hmm, I'm not sure, but it should work already: if you have the MPEG2 video splitter/filters installed (i.e., if you can play DVDs in MediaPlayer and other generic players like ViPlay, but NOT DVD players like CyberLink PowerDVD), then it should simply open them. It won't be able to detect the frame rate, so you'll have to input it manually. Also, you'll need to resize the video window so that you can see the subtitles in it.

Please try it out and let me know if it works. I don't know how it deals with encryption, try opening the movie with a DVD player first, to authenticate. Also, the MPEG2 splitter may only be able to deal with separate VOBs, not with an entire IFO, so you may need to open them one by one and join the subs manually later.

On another note, I just tried an .ogm file, and although it works with MediaPlayer, it refuses to work within SubRip. I guess it's Delphi's fault, I'll try to find another way to deal with this. SubtitleWorkshop works fine, so I guess there is a solution. I wrote DeK about it, waiting for his reply.

-ai4spam

ai4spam
10th May 2005, 06:37
Beta 12 is available now.

Changes:
- Introduced the "extend right and left" feature, which allows you to take disjoint characters as one. Technical details follow ;). It only lets you do it once, so you can't get more than 2 disjoint parts together. Don't abuse it, once you designate a character as part of such a pair, it will always be considered as such, and all subsequent pairs which contain it will need to be typed in manually. For example, if you set "in" as a group of letters, any time "i" shows up, SubRip will ask you for the pair of characters that "i" is part of, like "it", "im" and so on. This behavior is flipped if the first part of a pair ("i") is encountered at the end of a line, at which point it is overwritten as a single char, and all subsequent pairs will not be recognized until another flip is performed by setting it again as part of a pair.

I know, this sounds complicated, but I think it's easy to use. If someone from Israel can please test this with right-to-left processing, it would be great to get some feedback (I did my best, but I have no idea if it does what it's supposed to do).

- Improved the video recognizing routine, and added an option to draw lines between the text lines, to erase stray points. Its parameters are set manually, but if applied, it greatly improves the accuracy of the results. It pretty much solved the problems I had before, but it's still best to use just plain characters, instead of trying to use italics and other styles.

As specified in my previous post, the only other thing I think is worth doing right now is finding another way to play videos, to support all the formats (.ogm, .vob and so on). If I find the appropriate component, I will put it in. Otherwise, I won't have much time for other features.

While the routines are not as advanced as in AviSubDetector, and some manual tweaking is required (for example when the subtitle color and/or position change), I think the ease of use will make SubRip a good choice for ripping subtitles from hard-subbed videos.

It would be nice if someone made a tutorial on how to use the new features. I really don't have the time, and I think that if someone else makes it, it would be an opportunity to check thoroughly for functional problems. Any volunteers? Please send me an email or reply here.

ai4spam
11th May 2005, 11:29
Originally posted by ai4spam

Hmm, I'm not sure, but it should work already: if you have the MPEG2 video splitter/filters installed (i.e., if you can play DVDs in MediaPlayer and other generic players like ViPlay, but NOT DVD players like CyberLink PowerDVD), then it should simply open them. It won't be able to detect the frame rate, so you'll have to input it manually. Also, you'll need to resize the video window so that you can see the subtitles in it.


Well, DVDs seem to work (if you have the filters installed, as specified above, for example from http://sourceforge.net/projects/gplmpgdec ), you only need to set up the MCI extensions for .vob and .ifo to be handled by MPEGVideo2, as shown in
http://www.atlasti.com/mcisetup.shtml
.ogm files would work also, if you register the .ogm extension to MPEGVideo. Unfortunately, even if you uncheck the OGM filter option "seek only to keyframes", it won't seek to a regular frame.

The best way to use SubRip is still to rip the DVD to an .avi or a .mpg first :(.

ai4spam
11th May 2005, 11:36
Beta 13 is available on the official site.
Changes: minor improvement when filling "open areas", new areas are filled when drawing the lines in the spaces between subtitles.
Since nobody seems to find any serious bugs, chances are this will be declared 1.2 Final.

ai4spam
11th May 2005, 20:18
Continuation on ripping VOBs (question received by mail and my reply):

Hello,

These are the steps I am using to open VOB:

1) File -> Open Hard Subbed Video Files
2) Select VTS_01_1.VOB
3) I get "Cannot detect frame rate" and Input frame rate value
4) I enter frame rate value and click OK
5) I get "File opened in MediaPlayer mode. Move all windows away from the subtitle region."
6) The Video File Viewer opens but the window is all black (no picture)

Am I doing anything wrong? I installed gplmpgdec and added MCI extensions for .vob and .ifo in the registry.


Well, I'm in the process of looking for a better MediaPlayer. I'm not sure whether or not my search will be successful.
As for playing VOBs, I only tried with my AniMusic DVD, which is not encrytped. Try ripping the VOBs first with a DVD ripper, and open the decrypted VOBs from your hard drive. Also, I have not actually checked whether the GPL MPEG2 decoder works. Can you please confirm if you're able to play VOBs using mplayer.exe or mplay32.exe? If they don't work with the GPL decoder, then neither does SubRip.

I should mention that I don't know whether decrypted VOBs really work, or if they behave like OGM files and only seek to keyframes (I was too lazy to copy the files from the DVD to my HDD). Please try ripping and then let me know. Basically, you should be able to use the edit control to change the frame number, and see changes on the screen.

If you're in a hurry, the quick and dirty solution is to use a 1-pass DVD2AVI or something similar and then run SubRip on the resulting AVI.

roux
11th May 2005, 21:48
I’m trying to rip subs as bmp so i can import them into scenarist. Only the sst file doesn’t contain the whole header. It’s shows me only the color and contrast entry and the file names.

Color (4 1 2 3)
Contrast (15 0 15 15)
1 00:00:57:01 00:01:03:09 1.1.bmp


This results in an error importing into scenarist. Do i need to create a header myself instead?

ai4spam
11th May 2005, 21:54
I have no idea, but I could I look into it if you give me more details. Are you trying to export hard-subbed subtitles from a video file? That functionality is not currently supported, only avi2txt works now. If not, did it work before, with DVD subs? If it worked before, you may want to consider the possibility that Scenarist has changed, because I didn't change that part of SubRip ;). If not, what does the output format header look like (give an example)?

roux
12th May 2005, 00:53
Thanks for the reply,

I'm trying to rip selectable subs from a dvd as bitmaps and save the sst file. Then i want to insert the ripped subs into scenarist. Normally i use dvdmaestro, ripping the subs and save the .son file and importing them in maestro, gives me no problems.

I have an example .sst file created with maestrosbt, which imports like it should into scenarist:

st_format 2
Display_Start non_forced
TV_Type NTSC
Tape_Type NON_DROP
Pixel_Area (0 477)
Directory .
Subtitle test
Display_Area (0 2 719 479)
Contrast (15 15 15 0)

#
# Palette entries:
#
# 01 : RGB(255,255,255)
# 02 : RGB(127,127,127)
# 03 : RGB( 0, 0, 0)
#

PA (0 0 255 - - - )
E1 (255 0 0 - - - )
E2 (0 0 0 - - - )
BG (255 255 255 - - - )


SP_NUMBER START END FILE_NAME
Color (3 2 1 1)
0001 00:00:07:05 00:00:32:15 test_0001.bmp


As you can see there's more information in de .sst file, which subrip don't save.



I think i've found the answer, in this thread Oddyseus says you have to change the header. I'm going to try that.
http://forum.doom9.org/showthread.php?s=&threadid=35450

ai4spam
12th May 2005, 01:05
Cool, it wasn't my area anyway. Maybe Zuggy can help you further.

roux
12th May 2005, 01:41
I figured it out, just had to create the same header like maestrosbt does.

ai4spam
12th May 2005, 07:42
Ok, so there seems to be no competent video player for Delphi that does what I want. However, there is hope: AviSynth http://www.avisynth.org/ seems to work great. I will implement automatic script generation soon, but in the meantime just create a .avs file with contents like:
DirectShowSource("D:\Rip\Vts_01_1.vob" fps=25.00)
Remember, you still need to have all the filters properly installed (i.e., the file should play in MediaPlayer). For DVDs, you probably need http://sourceforge.net/projects/gplmpgdec Apparently, DirectShow does not require filters to provide accurate frame seeking, but most of them do, and when they do, AviSynth takes advantage of it, so most files should work.
OGM files also seem to work, although it seems that seeking backwards is only done until the last keyframe. After setting the color settings though, since now SubRip only goes forward, it shouldn't be a problem.

E-Male
12th May 2005, 12:15
better use DGMPGDec
it's made for dvd/mpeg2 n avisynth

GrofLuigi
13th May 2005, 01:54
a bug: the rectangle "drawn" with right mouse button doesn't stay in place. As soon as I click on something else (mostly the buttons-gadgets for thresholds), it returns to the previous position. (maybe this has to do something with the source, avisynth'd and cropped)

a feature request: Also, the rectangle cannot be drawn by dragging in bottom-right to top-left direction (message: range check error). This is sometimes needed when the bottom-right corner has better visual indication.

another feature request (low priority): inter-line height to be able to be bigger than 40.

a community "please": some good values for thresholds (or tutorial, as mentioned). No matter what I do, I end up with subrip recognizing only parts of letters (too thinned) or ugly big areas (the two fill options don't help). The source is very clean, BTW.

thankyous: to the authors of the program. :)

GL

ai4spam
13th May 2005, 04:38
a bug: the rectangle "drawn" with right mouse button doesn't stay in place. As soon as I click on something else (mostly the buttons-gadgets for thresholds), it returns to the previous position. (maybe this has to do something with the source, avisynth'd and cropped)

I can't reproduce this. Hopefully, it will all go away once I start supporting AviSynth and not MediaPlayer.


a feature request: Also, the rectangle cannot be drawn by dragging in bottom-right to top-left direction (message: range check error). This is sometimes needed when the bottom-right corner has better visual indication.

another feature request (low priority): inter-line height to be able to be bigger than 40.

Sure, it will be done.


a community "please": some good values for thresholds (or tutorial, as mentioned). No matter what I do, I end up with subrip recognizing only parts of letters (too thinned) or ugly big areas (the two fill options don't help).

Well, in my case it's a combination of everything: text color and outline color tolerance, filling. Beta 13 introduced some stuff to help with the big ugly areas (most of which should disappear when you click "use outline"), namely drawing lines between the text lines and filling the open areas from there. Also, keep in mind that "large" means that the width or the height is more than 10 times the text line width, so if that is detected incorrectly (max=10), then only areas of more than 10*10=100 in width or height will be filled. The value 10 came from the fact that the widest letter (W) and the tallest letter (E) have some less than 10 lines forming them. Basically, you need to manually lower the text line witdth to the point where text is still detected correctly, but large areas are filled. I'll change it to work better when the height of the text is set in the inter-line options panel.
Everybody, please post your successful setting combinations. And I'm still waiting for someone to volunteer to write a tutorial ;).


The source is very clean, BTW.
thankyous: to the authors of the program. :)

Well, the point was to make it easy to understand. SubRip has enough parts that I had a hard time unraveling myself, I saw no point in adding to that ;).
And you're welcome, it's nice to be appreciated ;).

ai4spam
13th May 2005, 09:51
Beta 14 is up on the official website.
Changes:
- GUI improvements and changes in the video routine
- added AviSynth support for files other than regular AVIs

I have one more feature on my list: output BMPs with the recognized text (so only what was actually typed in or recognized shows up) and a text file with frame numbers, coordinates and file names, for possible subtitle elimination. Someone willing to write a VirtualDub filter to use the results?

GrofLuigi
14th May 2005, 00:14
Originally posted by ai4spam
Well, in my case it's a combination of everything: text color and outline color tolerance, filling. Beta 13 introduced some stuff to help with the big ugly areas (most of which should disappear when you click "use outline"), namely drawing lines between the text lines and filling the open areas from there. Also, keep in mind that "large" means that the width or the height is more than 10 times the text line width, so if that is detected incorrectly (max=10), then only areas of more than 10*10=100 in width or height will be filled. The value 10 came from the fact that the widest letter (W) and the tallest letter (E) have some less than 10 lines forming them. Basically, you need to manually lower the text line witdth to the point where text is still detected correctly, but large areas are filled. I'll change it to work better when the height of the text is set in the inter-line options panel.
Well, I have some pretty good ideas what to do, but unfortunately, the first "bug" mentioned prevents me from doing any serious work/testing. Will try the new version and report back.
Originally posted by GrofLuigi
The source is very clean, BTW.
Oops, I meant my source material... :eek:
Originally posted by ai4spam
And you're welcome, it's nice to be appreciated.
And I really mean it.

GL

ai4spam
14th May 2005, 05:29
Well, I have some pretty good ideas what to do, but unfortunately, the first "bug" mentioned prevents me from doing any serious work/testing. Will try the new version and report back.

Please do. Can you specify whether it was in native mode or in MediaPlayer mode? You may also want to try on a different computer, I think it's really weird that the focus rectangle gets reset.

Oops, I meant my source material... :eek:

There I was, thinking I was complimented ;).

ai4spam
14th May 2005, 10:47
SubRip 1.20 Beta 15 is available.

Changes:
- GUI improvements
- support for saving bitmaps for later subtitle removal (sequential bitmaps and a file with rows of the format below)
<index>,<first frame>,<last frame>,<left coord>,<top coord>
Basically, this is all the information needed for subtitle removal. Anyone volunteers to write a VirtualDub plugin ;)?

GrofLuigi
15th May 2005, 04:18
Originally posted by ai4spam
Please do. Can you specify whether it was in native mode or in MediaPlayer mode? You may also want to try on a different computer, I think it's really weird that the focus rectangle gets reset.

It's gone with beta 14, you produce programs faster than I can download them. :D

Ehm... mediaplayer mode or... I just "open hard subbed video files".
As I said, through Avisynth script:
LoadPlugin ("C:\Program Files\DGMpgDec\dgdecode.dll")
MPEG2Source ("D:\VIDEO\DVD\1.d2v")
ConverttoYUY2 ()
Crop (12,76,-8,-76, align=true)
Maybe it was the crop, non-mod-something value (source = PAL DVD). I just took out the black borders and the subtitle nearly touched the bottom.

GL

Kurtnoise
15th May 2005, 10:05
Great stuff guys...I'm trying the hardcode subtitles detection and it works pretty good for the moment. :)


May I suggest to add some new subtitles format for the next releases : USF (http://usf.corecodec.org/), TTXT (http://gpac.sourceforge.net/auth_text.php), and why not the QuickTime TeXML (http://developer.apple.com/documentation/QuickTime/QT6_3/index.html) ?

I can provide some samples if you want...

E-Male
15th May 2005, 12:11
Originally posted by ai4spam
SubRip 1.20 Beta 15 is available.

Changes:
- GUI improvements
- support for saving bitmaps for later subtitle removal (sequential bitmaps and a file with rows of the format below)
<index>,<first frame>,<last frame>,<left coord>,<top coord>
Basically, this is all the information needed for subtitle removal. Anyone volunteers to write a VirtualDub plugin ;)?

i'll put an avisynth plug-in on my (to long) todo-list

ai4spam
15th May 2005, 16:50
Originally posted by E-Male
i'll put an avisynth plug-in on my (to long) todo-list
No need, I'm almost done with it ;). Just stripped down DeLogo.

screw
16th May 2005, 08:49
Few remarks from my side:

1. If I interrupt the OCR with "Pause", and than modify Character matrix, "Continue" is not available (button is grey) after that, but I can restart OCR from beginning. Is that a feature or a bug (in older versions it was possible to "Continue" with OCR after matrix modification)?
P.S. Seems fixed in Beta 15.

2. This SubRip version has the same bug as 1.17 and older versions with OCR of Latvian subs - SubRip crashes, if Latvian subtitles are selected for OCR. It seems that language string "Latvian, Lettish" in SubRip EXE file is the reason (maybe it is too long). If patched to "Latvian" and length indicator set to 7, it works just fine.

Screw

zuggy
16th May 2005, 09:31
Originally posted by screw

2. This SubRip version has the same bug as 1.17 and older versions with OCR of Latvian subs - SubRip crashes, if Latvian subtitles are

My fault...
It was fixed in upcoming (never released) v1.17.2. I will fix it in 1.20 final.

ai4spam
16th May 2005, 20:34
Originally posted by ai4spam
No need, I'm almost done with it ;). Just stripped down DeLogo.
Looks like I spoke too soon: the filter works fine in preview mode, but for the life of me I can't understand why it won't work in the main VirtualDub window (RunPorc is never called?!?). Do you have an example trivial filter code that I can try out? Thanks.

Esc
17th May 2005, 05:26
I tried to run a hardsubbed file. Out of curiosity. Here is exactly what I did.
I had a sucessful run of DVD subtitles recognition. So I had a Character matrix open and some text in Subtitles window. Both were saved but not cleared.
I opened an AVI file. Pressed Play. Waited for the first subtitle to appear. Pressed 'Pause' (same button). Checked 'Use' box. Clicked with the mouse on the subtitle several times in different places. Pressed 'Run'. Waited a bit. Got bored. Pressed 'Stop' (same button). A pop-up window came out with some gibberish image and a prompt to enter a character. Whenever I tried to press 'pause/abort' or just close that window by the upper-right cross button I would get an error message. The header said: SubRip - 100%. The body said: List index out of bounds (5). And the pop-up window would stay open.

ai4spam
17th May 2005, 10:48
Well, I usually reply only to people who actually need the program, not just use it "out of curiosity" :p, but here goes: pressing "Run" won't do you any good (it'll give you garbage/gibberish) if you're not clicking inside the subtitle and changing the settings to get the right image in the first place ;). Basically, it should be white subs on a black background and not much else. For example, if the subtitles are on top of some white object, and that shows up as a big white blob, you should lower the subtitle color tolerance or check the "fill large areas" checkbox. If the subs are too thin or they look like they're "eaten by ants", you should increase the text and/or outline color tolerance. There are other tips in the (now outdated, but still fairly useful) section of the manual/readme.
I'll try to reproduce the bug you reported (adding to a non-empty sub), then fix it.

NN
17th May 2005, 14:39
1. When I use SubRip to convert .idx/.sub files to .srt files I need to supply a name for the .srt file. It would be a lot more conveniant if SubRip would default to the name of the .idx file (with .srt extension).

2. If I forget to clear the subtitle text window before processing the next .idx/.sub file I get the following message:
Subtitles text file isn't empty. Add to the end of file? (OK) (Cancel)
I would like a third option: Clear the subtitle text window before proceeding.

3. I had trouble adding the %-character to the matrix. SubRip first detected the first o and after using 'take with next' it included the /, but I cound't get it to include the second o.

4. The subtitles I converted contained a lot of italic i, l and ! characters which where all detected as /. Is it possible to modify the detection system to recognise that a / within an italic word is probably not a / but an i or an l ?

Thanks, NN

Esc
17th May 2005, 15:32
Maybe I wasn't clear enough. I didn't just 'press any key'. I clicked inside the subtitle. I did it several times to make sure I hit the right spot. Those subtitles were fairly small. And they were not plain white-on-black but some relatively bright color with a darker outline. It was an anime fansub.

ai4spam
17th May 2005, 16:11
@Esc:
Increasing the text and outline color tolerances would deffinitely help you get the whole letters. Use the other features (draw lines between, fill open, fill large) to get rid of the false guesses. Again, adjust the parameters until you see something that makes sense in the preview (white text with red outline).
Also, anime fansubs sometimes use different text and outline colors during the same movie. Nothing can be done at this level, you need to stop processing and click on the text again when the colors change.

ai4spam
17th May 2005, 21:12
@NN:
1) is feasible and easy enough
2) is also feasible, but not really justified, all you have to do is press "Cancel" and then "Clear"
3) is relatively hard, but I'll see what I can do (I had the same problem)
4) you're probably encountering ths problem because you're reusing character matrices from other DVDs, instead of making new ones :p. That's ok in most cases, but you should increase the OCR sensitivity when you get these errors.

Esc
17th May 2005, 21:28
BTW, is it me or ver 1.20 is really so much faster than 1.17?!

Also, I'm curious. Where does it get the names for the subtitles. It called Director's commentary subtitles from my last DVD "English caption for children" or something like that. It's not a real problem. Just looks funny.

ai4spam
17th May 2005, 21:50
@Esc:
It's compiled with a different version of Delphi. Also, Zuggy took out some components that were generating the P4 crash bug.
The names are read from the .ifo/.idx file. If you open it in a text editor, you'll find them there.

NN
17th May 2005, 22:27
ai4spam, thanks for the quick response to my first post !

ps.
2. I know, but it would save me 5 mouse-clicks (and me feeling stupid every time I forget to use Clear).
4. The subtitles with both the / and the italic i, l and ! came from the same movie. Maybe this is something that could be added to the post-OCR correction process (like fixing l vs. I) ?

I forgot one more suggestion:

5. Could SubRip take the delay in an .idx file into account when creating a .srt file ?

Example:

id: en, index: 0
delay: -02:06:50:700
timestamp: 02:07:04:396, filepos: 000000000
timestamp: 02:07:08:200, filepos: 000001800
...

ai4spam
17th May 2005, 22:47
@NN:
2: ok, I'll see what I can do. I've been sick for the last few days, thus unable to work much :(.
4: increase the OCR sensitivity all the way to 1000, that should solve your problem for now. Post-OCR for such cases is possible, but I don't know if I'll be the one to implement it (I got things in my personal life that I need to take care of first).

For the new suggestion: just use the time adjuster for now. We'll put it on the "sensible requests" list ;).

masken
17th May 2005, 23:50
@NN, what you need to do is work a technique for building your character matrix. The solution is simple: simply OCR the first "o" as "%", at the next OCR stop, most likely "/" and part of either "o", just hit enter. Same with the third "o". This will build a correct OCR directly as the other characters are automatically skipped the next time they appear.

There's other examples of this. With the "Extend/Reduce" feature request á la SubResync, the idea was to be able to expand such selections so the whole "%" was to be automatically selected.

ai4spam
18th May 2005, 03:59
Unfortunately, the first "o" can just as easily be a degree sign, so marking it as "%" is not a good idea. One way would be to say "extend right" for the first "o", set the "o/" to "%" and the second "o" to nothing. Then, each time a degree sign is encountered, it will ask you for a character pair again, because it will be followed either by a space or by a comma or other things, but never a "/". All you have to do is type in the appropriate "o ", "o,", "o.", and so on (here "o" is the degree sign). If the degree sign is found last in a line, the "take with next" character will be replaced with what you input, reverting to single character mode.
Some automatic way to do this might be possible (not easy), but care should be taken with character sets that are not Latin-based, like Chinese or Japanese.

ai4spam
19th May 2005, 08:48
Originally posted by NN
5. Could SubRip take the delay in an .idx file into account when creating a .srt file ?

Example:

id: en, index: 0
delay: -02:06:50:700
timestamp: 02:07:04:396, filepos: 000000000
timestamp: 02:07:08:200, filepos: 000001800
...
I've never seen such a file. Could you please mail me an example (lookup the address in the readme)? I need to know if the delay is per stream or per file. Thanks.

masken
21st May 2005, 00:01
@ai4spam, yeah, I thought someone would mention something about the degree character. Thing is though, in most if not all fonts, I've noticed from (long) experience that the "%"-o and the °-character differs enough for subrip to make them out as two different characters ;)

But yes, you're right of course, this is definetly one of the reasons I wated the "extend" feature too :)

ai4spam
21st May 2005, 07:20
Better safe than sorry I always say ;). No worries, Beta 16 is being worked on.

ai4spam
23rd May 2005, 12:39
Finally, Beta 16 is up.
Changelog:
- support for extending more than 1 character (test and provide feedback, please)
- GUI additions and fixes in video mode
- changed saved bitmaps form .bmp to .pgm and fixed the cropping
- some of the feature requests have been implemented - you'll just have to get it to see which ;)

I'll give the VirtualDub filter one more try...

ATTN: Big boo-boo on my part, I had broken DVD subtitles. It's fixed now, please download again. I made a couple of changes elsewhere anyway (improved fill sides, plus added shortcuts for extend buttons).

Esc
24th May 2005, 02:36
Couple of thoughts here.
1. It doesn't show the build number in About window. I know that I am on build 16 because I have installed it right now. But will I remember in 2 weeks if I find a bug? It would be nice if there was the build number in the version.
2. Non-standard letters turn into standard for some reason. My é becomes e. I do not remember such a problem in 1.17.
3. Subtitle Index offset changes its value every time you walk through it. If you go to output format, select SubRip and just keep hitting tab, every time you walk through that field it changes it's value to opposite.

Longinus
24th May 2005, 04:27
Hello..
Thank you for making SubRipAvi. In the past I used AVISubDetector, but I just guessed the options every time, trying to make it work. Your solution is a LOT easier. :D

But I'm having some problems.. The first is that in the latest beta, the "Video File Viewer" window background is "transparent". You can't read some of the text, and it's drawing everything from another window if you put on top of it.. (It didn't happen in the earlier bets)

Another thing is that I'm trying to OCR a timecode (of the frame number), so I have to get every frame. So I set "skip first", "update every" and "Min duration" to 1. But it doesn't work. Sometimes subrip jumps 10 frames, sometimes less, sometimes more.
Am I doing something wrong?

ai4spam
24th May 2005, 05:23
@Esc:
1) Will take care of this.
2) This happens to me with diactitics in languages like Romanian. It's not SubRip's fault, somehow you changed your system settings (that, plus Delphi makes a hidden ANSI-OEM-ANSI conversion in strings, and it can't be taken out AFAIK). Just go to regional settings and set "language of non-unicode programs" to the language of your choice. Are you sure you're using the é from the default font/charset? In my example (Romanian), some letters would change (t, and s,), but not others (i^ and a^). The way I "fixed" it was to assign the correct characters to some of the 20 buttons on the bottom. If you select the Romanian language in the OCR window, you'll notice that the letters I mentioned still don't show up correctly, even when using the EASTEUROPE charset, but they do show up correctly in the final subs. So, try to play with the charset in the general options window. The rule for characters like your é is: if you copy and paste it on a button (with right click), it should show up as you want it on the button, or else it's not the right character.
3) I fixed it, will upload in next beta.

@Longinus:
Thanks for your appreciation.
Your "transparent window" bug is really weird, there is no reason why it should happen. Maybe there's a problem with your video drivers? Please try it on another machine and let me know if it still happens. A screenshot would also be useful. Ah, and it's worth asking: are you sure you can't see the text because of the new feature (fill to the sides of the text with fuchsia color)?
The skip first, update every and min duration were set there for temporal optimization, without them it would be really slow. Beats me why you would try to OCR a timecode...
Anyway, basically I'm processing every frame, when I detect a sub I skip the first frames (to let the sub appear fully), then accumulate for min duration frames, then just compare and reset every now and then.
In your case, if the timecode is the only thing you OCR, then it doesn't change much from frame to frame. Try also lowering the same sub tolerance to a really small number. However, it will still accumulate at least 1 frame, to process every frame I'll need to make some changes (again, done, but will upload in next beta).

Longinus
24th May 2005, 08:38
I tried it in my other computer, and it worked. It probably is a driver bug, this computer is a long time overdue for a full format. But anyway, here is the link to the screenshot image.

http://www.unkind.org/blog/images/subrip_screen.png

About the timecode... Someone gave me an edited movie (15m), that used 3 big ones (20m each). But the edditor somehow LOST the Final Cut projet file. So I'm stuck with the low-qualy final movie, and I have to re-edit, putting the same parts but in high quality. Of course this will be a pain in the ass to do by hand... but I have the timecode, and If I can get it in text format, I can code a simple program to create a avisynth script that will cut the used parts for me.. It will work.. in theory.. :D

ai4spam
24th May 2005, 12:06
Beta 17 is up, with minor bugfixes.

@Longinus: try now, set "skip first" to 0 and see if it processes all frames.

Esc
24th May 2005, 16:25
Thanks for the quick response.
2) My OEM language is russian. The letter I was trying to use is not from there but from french. It's an e with a stroke above it from the default charset. But I thought that should not be a problem since you can select the charset for the subtitles. I saw a field like that in VSfilter.
When I tried to put that character on a button, it came as a question mark.
So what are you saying? I cannot have a character unless it is included in my OEM charset? That's sad.

zuggy
24th May 2005, 17:00
Originally posted by Esc
2) My OEM language is russian. The letter I was trying to use is not from there but from french. It's an e with a stroke above it from

subrip doesn't support unicode (atm) like vsfilter does. That means you can only use fonts of Windows-installed language-support. If you install the french language layout, you'll see stroked e.

Longinus
24th May 2005, 20:34
Originally posted by ai4spam
Beta 17 is up, with minor bugfixes.
@Longinus: try now, set "skip first" to 0 and see if it processes all frames.

YAyy! :D
Now it works. Thank you very much for making it work soo fast (and probably something that only I will use, ever).

Again, thank you. :)

Kaiousama
25th May 2005, 07:43
subrip doesn't support unicode (atm) like vsfilter does

In order to add Unicode support to subrip you need to accomplish 3 tasks:

1) change all strings declarations to widestring.
2) change all string-related function callings to the equivalent widestring-processing function. please refer to this link (http://mh-nexus.de/unicodenotes.htm) for useful informations.
3) change your input/visualization controls to the equivalent TntUnicodeControl (this open-source collection of unicode controls and unicode helper-functions can be downloaded from here (http://www.tntware.com/delphicontrols/unicode/) )

I hope you are interested in supporting unicode in subrip since this application is very useful.

zuggy
25th May 2005, 08:15
Originally posted by Kaiousama
In order to add Unicode support to subrip you need to accomplish 3 tasks:

Yep, I use TntUnicode already in other projects... But that means subrip will run ("only") on nt-based systems properly.

Kaiousama
25th May 2005, 09:03
But that means subrip will run ("only") on nt-based systems properly.

Unicode works properly only on unicode-supporting OS (>=winNT), running SubRip in older OS will limit its use on ANSI strings only.

Is quite phisiological this behaviour, the good thing is that you don't need separate builds for unicode and non-unicode like C/C++ (VSFilter etc..) if you use TntUnicode.

P.S. did you plan to refactor the current spaghetti-programming stle of subrip code in something more Object Oriented-style? (is quite a pain searching for something in its code).

ai4spam
25th May 2005, 09:24
Well, I've started moving to Tnt for unicode support, but it will take a while. It's unlikely that we'll start overhauling the spaghetti code, it's just too much work.

zuggy
25th May 2005, 10:04
Originally posted by ai4spam
Well, I've started moving to Tnt.

You will be lost in code while porting it into tnt!!! ...postocr correction, while-running string correction, lng files, subtitle files, ... - all have to be unicode.

And anyway is there some other tool than vsfilter that support (reading) unicode/utf subtitles?

ai4spam
25th May 2005, 11:01
Well, controls and such aren't that bad. A new char matrix format is also needed (no biggie, working on it). The problem is saving to text, since each language has its own conventions for mapping 2-byte unicode to 1-byte ansi.
I'm thinking of adding a file like "Language.tbl" for each language, with rows of the form:
<ansi index (0..255)>:<unicode 2-byte char>
SubRip would revert to just truncating the second byte if the file for the current language is not present.

zuggy
25th May 2005, 12:44
Originally posted by ai4spam
"Language.tbl"
There are functions for this conversion --> jedi vcl.

Esc
26th May 2005, 14:56
Originally posted by zuggy
Yep, I use TntUnicode already in other projects... But that means subrip will run ("only") on nt-based systems properly.
It already doesn't run on DOS. So... life is moving on. ;)

Originally posted by ai4spam
Well, controls and such aren't that bad. A new char matrix format is also needed (no biggie, working on it). The problem is saving to text, since each language has its own conventions for mapping 2-byte unicode to 1-byte ansi.
I'm thinking of adding a file like "Language.tbl" for each language, with rows of the form:
<ansi index (0..255)>:<unicode 2-byte char>
SubRip would revert to just truncating the second byte if the file for the current language is not present.
I utterly support this decision! And maybe the language for conversion could default to Windows setting but be selectable. Since I use Russian OEM setting for tons of older programs, but my DVD subtitles are always in English (I am living in Texas now) with occasional appearance of non-English characters in foreign words like fiancée or naďve (hopefully you'll get these symbols correct). It's no biggie but I always wanted to keep them, being a total showoff as I am. :)

ai4spam
26th May 2005, 19:10
@Esc: Not to rain on your parade, but you must be doing something wrong: I'm able to use "special" characters and even diacritics for some languages with no problems. Try switching the language in the OCR window and entering special characters by pressing one of the 20 buttons below the text box. This way, the current version of SubRip works without conversions in my case. Make sure your charset is the default one, then your saved files should look ok, in NotePad (with special characters).

Anyway, SubRip 1.30 with UniCode support is some 90% done, I'm ironing out the final details on ANSI-UniCode conversion for legacy ANSI support. This one will be in beta stage for a while, since by making so many changes I might have broken something.

ai4spam
27th May 2005, 07:09
Does anyone have an example of UniCode subtitles that VSfilter reads? For some reason, I can't get VSfilter to work to test my own homebrew format (2-byte UniCode chars with a $FF$FE in front, as Word/NotePad saves them).
Please send them over to my email (same id @gmail), and reply here so I know I need to read it.
Thanks.

zuggy
27th May 2005, 07:50
Originally posted by ai4spam
Does anyone have an example

Here is one, produced by vobsub: http://zuggy.wz.cz/UnicodeSRT.zip

ai4spam
27th May 2005, 08:14
Thanks, it looks like I was right. Now SubRip can read these kind of files, I still need to implement saving. There was so much other stuff that needed to be changed (like corrections, etc) that it looks this one will really be in beta for a while, until all the bugs I may have introduced are found and fixed :(.

ai4spam
27th May 2005, 12:24
Finally, 1.30 Beta 1 is up on the website. It introduces experimental UniCode support. Basically, you need to change the CharSet for "irregular" characters to show up. The CodePage is used for conversions when loading/saving ANSI files. And for other things like displaying the right captions on buttons. Files are saved by default as ANSI. When a file has "irregular" characters, you get a choice to save it as UniCode, or try converting it to ANSI using the current CodePage. The CodePage changes automatically when you select a charset, but you may also change it independently (sometimes the default ANSI codepage 1252 works best). Bear in mind hat only VSfilter UniCode supports UniCode subtitles, so save as ANSI if you have a choice, then check to see if you have the right conversion.
I've only tested .srt input and output, so other formats may be broken. Please test and notify us here.
Also, I think it's time the translations got an update. If anyone wants to update some language file, notify others here, then send the file to zuggy.

PS (for the 20 people who downloaded so far): My bad, I didn't test the clipboard properly. Please download again.

bourtzovlakas
27th May 2005, 14:30
Thanks for the new version....
Is v.1.20 beta 17 being declared 1.20 Final?

Kurtnoise
27th May 2005, 15:18
Is it just me or the server of http://zuggy.wz.cz/ is very slow ? can't download the lastest beta...:(

Why not move SubRip at SourceForge or Berlios or anything else ?

ai4spam
27th May 2005, 19:49
@burtzovlakas: I fixed a couple of other bugs in the meantime. I guess I could go and fix them in 1.20 too, then declare it final. The idea is to have people heavily test 1.30 for bugs I may have introduced, then move to it if it behaves nicely. I'm particularly interested if it still works under Win98 and WinME, and whether the Charset/CodePage combinations I set in by default work for all languages.

@Kurtnoise13: It may very well be, with people downloading it like crazy. SourceForge requires some maintenance effort that neither I nor zuggy have the time for at the moment. We may consider it in the future.

ai4spam
28th May 2005, 11:08
SubRip 1.20 has gone final. I hope I fixed the transparency bug (thanks, Zuggy).
Work will continue on 1.30 beta as feedback comes, and 1.20 will be abandoned if 1.30 works on Win98 and WinME. Please do test anything you can think of and report here if you notice bugs.

Rumbah
29th May 2005, 15:50
After ripping the subtitles with beta 1.3 I wanted to change the framerate, but everytime I changed it, I got a Invalid class typecast error.

ai4spam
29th May 2005, 16:55
Thanks for reporting. I fixed it, but will upload a new version once more bugs show up.

ai4spam
30th May 2005, 04:36
SubRip 1.30 Beta 2 available on the official website. I fixed the bug reported above, plus many similar ones I could find.
Please keep the bug reports coming.

PS: Zuggy, you should update the topic title ;).

Esc
31st May 2005, 05:17
Using 1.30b2.
When I try to open a video, it shows Error message saying "Could not open video file using AviSynth". That's it. All files are simple AVIs, perfectly playable and I can open them in AviSynth using DirectShowSource().

ai4spam
31st May 2005, 12:10
Fixed in 1.30 beta 3. Apparently AviSynth does not support UniCode file names inside .avs scripts :(.
I use OpenDMLSource for .avi files that can't be opened in native mode and DirectShowSource for others (mpeg, ogm).

SurfDrifter
31st May 2005, 13:03
At first, I'd like to thank you for further developing Subrip.

I have one tiny request that I had asked zuggy some time ago, but at that time he wasn't developing Subrip anymore. I also have a "bug" in a way.

REQ: I would like to have the ability to rip NTSC subtitles to .BMP format and be able to resize them to 720x576 and NOT constrain the size to 720x480.
I'm converting many NTSC DVD's to PAL and this feature will save me a lot of time, because i resize them later on on Photoshop.

BUG: When i convert a .srt file to .stl file, the .stl script file DOESN'T have any headers, just like fontsize, fontname, etc. You can see that in 1.17.1 version the .stl file contains the info when opened on a text editor, whilst in your updates it only contains the subtitles themselves.

Thanks again

ai4spam
31st May 2005, 13:49
REQ: It's a feature, not a bug ;): if a DVD is detected as NTSC, the size is automatically set to 480 instead of 576. I guess I *could* change it, but I'm not sure what it entitles (padding the bitmaps, etc), because I don't know the .stl format well enough. Also, let me to suggest using XnView (www.xnview.com) for batch padding/resizing, it's really easy to use (deffinitely easier than Photoshop).

BUG: I can't reproduce it here. When I open a .srt file, then set the output format to .stl (Spruce subtitle file) and save it, the headers are generated normally:
//
// Generated by SubRip 1.30b3 on 5/31/2005 8:33:09 AM
//
//Font select and font size
$FontName = Arial
$FontSize = 36

//Character attributes (global)
$Bold = TRUE
$UnderLined = FALSE
$Italic = FALSE

//Position Control
$HorzAlign = Center
$VertAlign = Bottom
$XOffset = 0
$YOffset = 2

//Colors
$ColorIndex1 = 0
$ColorIndex2 = 1
$ColorIndex3 = 2
$ColorIndex4 = 3

//Contrast Control
$Contrast1 = 15
$Contrast2 = 15
$Contrast3 = 15
$Contrast4 = 0

//Effects Control
$ForceDisplay = FALSE
$FadeIn = 0
$FadeOut = 0

//Other Controls
$TapeOffset = FALSE

//Subtitles
00:02:44:12,00:02:46:02,Are you guys cops!?

SurfDrifter
31st May 2005, 19:00
Thank you for the reply.

I checked again v.1.20 and what I did was this. I open an .srt file and since the output format was set before on .stl, it converts "on-the-fly" the script to .stl. At this point I can see the header normally in the text window.

As soos as I select the "Save As" command, the header dissapears!

I'm running on WinXP SP2 AMD 3000+. Strange.

As for the request, it has nothing to do with .stl format, since .stl is text-based format. BMP's are useful with .son and/or sst.

I have resized numerous times the bitmaps, whilst using the same .son script without a problem, so i guess you won't have to deal with the script at all.

Also, I'd like to thank you for the tip, but it's extremly easy also to batch resize in Photoshop too. You just create an action of resize to the desired size and then choose "File>Automate>Batch" selecting the action you want.

ai4spam
31st May 2005, 19:12
Ah, ok, now I get it. I'll fix it later tonight.
About the request: I'll remove the limit for the bitmap height so that you can set it to your heart's content ;).
XnView has one more advantage: it's free, which is hardly the case for Photoshop :P.

ai4spam
1st June 2005, 03:39
Ok, I'm confused. I'm doing exactly as you describe, yet the headers are there when I save the file, so I can't reproduce the bug you reported.

ai4spam
1st June 2005, 07:23
SubRip 1.30 Beta 4 is up on the official website. As hard as I tried, I could not reproduce the bugs reported here and on the official site contact section (missing headers in saved .sst and .stl files).

Changes: fixed old character matrix format import routine: when an old ANSI character matrix is opened, the current CharSet/CodePage is applied to convert the characters from ANSI to UniCode.

Unless serious bugs that I need to fix show up, Zuggy will continue regular maintenance from now on (I don't have the time). He already has some changes on his list. I will concentrate on the VirtualDub subtitle remover filter, and may get back to introduce OCR correction scripts based on regular expressions (like SubtitleWorkshop) into SubRip if I get the time later on.

Again, we could use everyone's help in reporting bugs, updating the translations and maybe writing a guide for the new features.

@SurfDrifter: Sorry, it looks like you're going to have to keep resizing your bitmaps. While it would be possible to allow non-standard sizes, changing it would break too many other things, and it's not trivial.

SurfDrifter
1st June 2005, 12:07
Thank you for taking time looking at my requests. No problem with the bmps, I'll do it as i was doing it all the time.

As for the header, it seems that there's something happening on my side, so if i could isolate why this happens on my configuration, I'll let you know. For now i could either stick on 1.17.1 or manually add the header.

And again, I'd like to thank you for the time you dedicated for my requests!

NN
3rd June 2005, 10:40
Hi,

Sorry it took so long for me to respond, but I've been on holiday the last 2 weeks. I just installed 1.30b4 and my first 3 requests have been implemented (the % character now works). Thanks !

However, 1.30b4 does seem to have a bug when loading .idx/sub files. Both the font color and the background color get set to black (so I can't read them !). My .idx files contain the following color information:


# The original palette of the DVD
palette: 000000, 828282, 828282, 828282, 828282, 828282, 828282, ffffff, 828282, bababa, 828282, 828282, 828282, 828282, 828282, 828282

# Custom colors (transp idxs and the four colors)
custom colors: OFF, tridx: 1000, colors: 000000, bababa, 828282, 000000



For my 5th request (processing delay in .idx files) here is some additinal info (direct copy from the .idx header):


# VobSub index file, v7 (do not modify this line!)
#
# To repair desyncronization, you can insert gaps this way:
# (it usually happens after vob id changes)
#
# delay: [sign]hh:mm:ss:ms
#
# Where:
# [sign]: +, - (optional)
# hh: hours (0 <= hh)
# mm/ss: minutes/seconds (0 <= mm/ss <= 59)
# ms: milliseconds (0 <= ms <= 999)
#
# Note: You can't position a sub before the previous with a negative value.
#
# You can also modify timestamps or delete a few subs you don't like.
# Just make sure they stay in increasing order.


Example of an .idx file with delay:


# English
id: en, index: 0
# Decomment next line to activate alternative name in DirectVobSub / Windows Media Player 6.x
# alt: English
# Vob/Cell ID: 6, 1 (PTS: 7610833)
delay: -02:06:50:700
timestamp: 02:07:04:396, filepos: 000000000
timestamp: 02:07:08:200, filepos: 000001800


Thanks, NN

zuggy
3rd June 2005, 12:44
However, 1.30b4 does seem to have a bug when loading .idx/sub files. Both the font color and the background color get set to black (so I can't read them !). My .idx files contain the following color information:

It's known and will be fixed in next beta.


delay: -02:06:50:700

Ok, in next beta.

ai4spam
3rd June 2005, 19:12
@NN: Glad you fond the requests solved to your satisfaction ;). Thanks for the delay example: it looks like the delay is not per file or per subtitle stream, but can appear anywhere and only affects the subtitles appearing after it inside the same stream. The specs are not clear whether delays should be compounded (as in, if present, a second delay should be added to the first or not). I suppose it could go either way, and simplest would be not to compound delays. Have you ever encountered multiple delays in the same stream? Can you help me test the behavior of VobSub/vsFilter with multiple delays (I can't get it to work on my computer)? Basically, put in two 3-second delays a few subtitles apart and see if they're added to each other (resulting in a 6-second delay) or not. Thanks.
I think I can take care of the delay, while Zuggy fixes the blackness bug and some others he found. The new beta will be up in a couple of days.

ai4spam
4th June 2005, 08:39
SubRip 1.30 Beta 5 is up.
- fixed "black on black" bug
- added experimental support for delays in .idx files; multiple delays are compounded

I couldn't find anywhere what the default behaviour is supposed to be, so if you know for a fact (or by testing in vsFilter, which I can't get to run on my computer) that each delay overwrites the previous one instead of being added to it, please let me know so that I can correct it.

PS: If you downloaded in the first 15 minutes after this post, please re-download, there was a small fix I forgot to put in.

mpucoder
4th June 2005, 14:41
If you are talking about SP_DCSQ_STM, the delay before executing the commands in one command sequence, then the delay is not compounded, all are in reference to pts.

NN
4th June 2005, 14:51
Hi, I just tried 1.30b5 and the subtitles are gray on black again and the subtitles are adjusted with the delay.

I checked all my .idx files, but the delay is only used to specify the original offset, so I can't tell you if the delay is absolute or relative.

Thanks, NN

ai4spam
4th June 2005, 16:23
@mpucoder: Thanks for your reply. No, I'm talking about the "delay" lines in .idx files as mentioned by NN above (taken from VobSub, not from a DVD). They specify a time offset for subsequent subtitles. The problem is that the behaviour for multiple delays is not defined anywhere. So, if there is only one delay per subtitle stream, it will work, but if there are multiple delays, I may have gotten the wrong way of dealing with them. Maybe Gabest never thought of multiple delays, but there's nothing preventing anyone from using them, and we should deal with them accordingly. If this is the case (Gabest never intended them to be used multiple times), then the behaviour should probably be NOT compounding delays, so my current approach is wrong. Some simple testing as below (which I am unable to perform) or looking at the vsFilter source should solve the "mystery".

@NN: Thanks for testing. Can you please try what I suggested: edit a VobSub .idx file manually (in NotePad), put 2 separate delays of 3 seconds each a few subtitles apart, then watch the movie and tell me if the total delay in the subtitles after the second delay line is only 3 seconds (so delays are not added to each other) or 6 seconds (delays are added/compounded)? Thanks.

NN
5th June 2005, 18:58
@ai4spam: I did what you suggested and the total delay was 6 seconds, so I guess the delays are compounded.

ai4spam
6th June 2005, 10:43
Great, that means I don't have to release a new beta with a fix, and my initial intuition was correct. Thanks a lot for the help.

klinika
7th June 2005, 18:31
I say, SubRip's nearing perfection, good job :) One suggestion though, would it be possible to include a feature to be able to rip the colour codes of the subtitles too? If there's any interest for that kinda option, naturally, don't think this is much of an issue to most of the users. I just recently ripped the first subs (the colours identifying different people, which looks pretty confusing without the proper colours since the subs intertwined) in which this would've been a handy option.

ai4spam
7th June 2005, 19:37
@klinika: Thanks for the feedback.
If you mean ripping sub colors from subtitles "burned-into" videos, I suppose it's possible, but color tags are not supported for all text output formats. I'll think about having "color schemes" or something, but it's unlikely that I'll have time to implement anything major anytime soon.
If you mean ripping colors from DVDs... well, I think Zuggy knows more about this than I can possibly learn, so I'll let him answer this one ;).

klinika
7th June 2005, 20:38
Oh, sorry for being a bit unclear with the previous post. I meant "reading" the colours off the sub pictures themselves. I guess that's the only way to know which colours are used and where... Sorry I'm not very good at terminology here :rolleyes:

Here's a snippet of the subtitles I was talking about. These are coloured identically as on the dvd. Got them off the net after trying to edit the duration times for nearly an hour, to compensate for the lack of colouring.

255
00:38:26,070 --> 00:38:28,272 X1:122 X2:599 Y1:360 Y2:390
<font color="#faff1a">...and you've harbored her! Arrest them!</font>

256
00:38:28,272 --> 00:38:28,673 X1:122 X2:599 Y1:360 Y2:417
<font color="#faff1a">...and you've harbored her! Arrest them!</font>
<font color="#24e731">Yessir!</font>

257
00:38:28,673 --> 00:38:28,739 X1:318 X2:403 Y1:392 Y2:417
<font color="#24e731">Yessir!</font>

258
00:38:28,739 --> 00:38:29,440 X1:113 X2:608 Y1:360 Y2:417
<font color="#faff1a">Damn it, what do you think you're doing?!</font>
<font color="#24e731">Yessir!</font>

259
00:38:29,440 --> 00:38:29,507 X1:113 X2:608 Y1:360 Y2:390
<font color="#faff1a">Damn it, what do you think you're doing?!</font>

260
00:38:29,507 --> 00:38:29,907 X1:113 X2:608 Y1:360 Y2:417
<font color="#faff1a">Damn it, what do you think you're doing?!</font>
<font color="#24e731">C'mon! Get off the cart!</font>

261
00:38:29,907 --> 00:38:30,041 X1:219 X2:501 Y1:392 Y2:417
<font color="#24e731">C'mon! Get off the cart!</font>

262
00:38:30,041 --> 00:38:32,009 X1:219 X2:501 Y1:360 Y2:417
<font color="#faff1a">Give up!</font>
<font color="#24e731">C'mon! Get off the cart!</font>

263
00:38:32,310 --> 00:38:33,144 X1:188 X2:532 Y1:360 Y2:390
<font color="#faff1a">Pull 'em down to the ground!</font>

264
00:38:33,144 --> 00:38:34,941 X1:188 X2:532 Y1:360 Y2:417
<font color="#faff1a">Pull 'em down to the ground!</font>
<font color="#ef7b55">Sensei!</font>


As you can imagine, it gets a bit confusing without the proper colouring :) Not that it's that big of a deal, I maybe the only one to enjoy these coloured subs :rolleyes:

Edit: I do have a good amount of laserdisc transfers with hardcoded AND coloured subs, but it's really not a priority issue to say the least. Unless they get re-released in some point with coloured subs too, in which case... ack, I stop now, I'm too weird.

bourtzovlakas
7th June 2005, 21:12
Open the subtitle window...
Output format-->set output format
...and check "Include font color tags" option...

At least, i think so....

klinika
7th June 2005, 21:31
What the... bourtzovlakas, :thanks: Oh damn, sorry for wasting everyone's time here. Thought I RTFM'd but I really must've missed that, terribly sorry. It's more perfect than I thought :o

Edit: Works perfectly! But when the colour changes during the same line of dialogue, it splits them to two different occasions of dialogue. But that is easy to correct manually. And to think I thought the snippet I pasted was done manually :rolleyes:

ai4spam
8th June 2005, 03:36
A guide for ripping subtitles from videos is now available:
http://zuggy.wz.cz/redir.php?co=101
I hope it's useful and reasonably easy to understand (I tend to get lenghty in my guides ;) ). Feedback is welcome, as are other user-made guides.

veverica
8th June 2005, 09:33
Thank you for you good work, first. I have a question; when working with avi, i don't get any picture. Only white screen. Format is xvid. With divx it works fine. Where is the problem? With codecs? Avisinth - virtualdub opens the file without any problem.

thanks

ai4spam
8th June 2005, 10:07
@veverica:
That's weird. Does it happen even when you change the frame number? For example, a lot of movies start with a completely black frame, maybe yours starts with a completely white frame? Try pressing Play or changing the frame number.
Alternatively, if all your XViD movies have the same problem, then it's most probably a codec problem. Try using the latest codec version. Also, check if the movie is opened in native or AviSynth mode: does a "temp.avs" file exist in your SubRip directory? Do its contents look like:
OpenDMLSource("D:\DivX\SubRip\sample.avi", false)
If so, then you may have problems with your AviSynth installation. Check if you can actually play the "test.avs" file with MediaPlayer.

@everybody:
Is there someone with experience in developing VirtualDub filters? I've changed the DeLogo filter to remove subtitles using the bitmaps that SubRip saves, but managed to break it in the process: now the filter only works in preview mode, when setting the filter properties, and not in full processing mode (the RunProc function is never called). Also, it seems I'm not passing parameters correctly. Can anyone help?

veverica
8th June 2005, 10:32
@veverica:
That's weird. Does it happen even when you change the frame number? For example, a lot of movies start with a completely black frame, maybe yours starts with a completely white frame? Try pressing Play or changing the frame number.
Alternatively, if all your XViD movies have the same problem, then it's most probably a codec problem. Try using the latest codec version. Also, check if the movie is opened in native or AviSynth mode: does a "temp.avs" file exist in your SubRip directory? Do its contents look like:
OpenDMLSource("D:\DivX\SubRip\sample.avi", false)
If so, then you may have problems with your AviSynth installation. Check if you can actually play the "test.avs" file with MediaPlayer.

Everything is like it should be. I've checked and it shows white screen also for divx 5.0 files. But the size of the white screen coresponds with the size of the movie! (see attach!) Anybody experienced the same problem?

Add: tested and recompress avi with divx and it works...

ai4spam
8th June 2005, 11:48
It deffinitely sounds like a codec problem, then. Try ffdShow instead, or try the same videos on a different machine.

ai4spam
9th June 2005, 00:31
SubRip 1.30 Beta 6 is now up.
Changes:
- fixed a bug when saving subtitles as UniCode instead of ANSI for some languages
- GUI improvement when processing videos: show last frame of the subtitle when doing OCR, instead of the current frame

bourtzovlakas
10th June 2005, 00:34
Hi...
First i would like to thank for all your hard work on Subrip...

I have an idx/sub, that is giving me a hard time OCRing...
Here is a link, in case you want to take a look...
http://briefcase.pathfinder.gr/file/zavlakas/26857/438873
Is there something i could do with these kind of subs...
Thank in advance...

ai4spam
10th June 2005, 05:39
@bourtzovlakas: You'll have to be more specific about what the problem is. I can open the file and do OCR just fine (maybe I don't know Greek to be able to tell something's wrong?). The only problem I see is that lines look close to each other, but all you have to do in this case is set the min interline height in the advanced OCR setup to a small value (it works with a 2 here).

ai4spam
10th June 2005, 07:35
Website update: introduced a "Guides" section in the menu. Right now it only has my own guide for ripping subs from videos. Anyone willing to make a guide for using other parts of SubRip?

bourtzovlakas
10th June 2005, 11:31
The main problem, i have is that i have to type and re-type the same characters over and over again....
The same characters in this sub, seem to have tiny differences, which makes it impossible for the program to "remember" them, during the OCR process...
I hope you understand what i mean...
I was wondering if i reduced the "sensibility on character difference", would that improve anything in this case??

ai4spam
10th June 2005, 16:19
Yes and no. It will improve things in that you won't need to type as often, but you may need to cope with a larger number of bad guesses (so you'll need to run a spellchecker on the result). Also, one recommendation in this case is to NOT use italics when the video sub font is small, because the differences are not large enough and you'll end up with a ton of mistakes.
If the background is not white very often, you may increase the text color tolerance so that the letters are less irregular. This is already specified in the guide:
Also, irregular ("eaten by ants") characters will require you to type in the correct text a lot more frequently.
Also, press Ctrl-Enter to fill in the best guess so far: after a few times of typing in, the new characters are close enough to the old ones for the guesses to be accurate most of the time. Afterward, press Enter to confirm the filled-in guess.

Thanks for the feedback, this reply will find its way into the guide.

ai4spam
12th June 2005, 08:18
SubRip 1.30 Beta 7 is up.

Changes:
- large overhaul of the video GUI (now tolerances are per channel)
- changed the detection algorithm some (let me know if it works better)
- added text fattening to help with irregular characters

Also updated the guide to reflect the changes.

ai4spam
15th June 2005, 10:17
SubRip 1.30 Beta 8 is up.

Changes:
- improved the detection algorithm: now the frame times should be correct in all but the most difficult cases (white background under the subtitles, when subtitles appear progressively), and it errs on the plus side (in these rare cases subtitles may appear a few frames earlier than in the movie, which is not that big an inconvenient for later removal)
- fixed a bug in the disjoint characters routine (thanks to other1010 for reporting)
- fixed DVD Maestro saving bug (thanks to Petr22 for reporting)

ai4spam
17th June 2005, 18:13
Add: tested and recompress avi with divx and it works...
What version of DivX works? And what filters do you use for playing? You can find out from your player (e.g., in viPlay, right-click->Advanced->Filters).

ai4spam
20th June 2005, 00:12
Hi !
I tried to open several AVI files using SubRip 1.30b8.
There is no preview in "Video file viewer" - just white blank window.
I tried to reinstall AviSyth and also use other versions of AVS but it didn't help.
When I try to open temp.avs script located in SubRip directory it is decoded correctly and I can play every AVI file included in this script using Media Player Classic or Windows Media Player 6.4
So, what is the reason ?

Thanks for reporting.
Similar behaviours have been reported in the contact section of http://zuggy.wz.cz/ . Please report here from now on, it helps me by not requiring me to monitor several topics.
At this point, I am unable to determine if it is a driver problem or a codec problem. Please download one of the 1.2 beta versions before the introduction of AVS support (SubRip v1.2 Beta 13 was the last one) from AfterDawn or DVD.box.sk, and report if your .avi files work with it. Also, report if you receive a message saying it was opened in MediaPlayer mode.
Also, can you tell me if playing the movie does anything in 1.30 Beta 8? Does the frame number change? Does the video preview window refresh if you drag it around, or is it "transparent"? What is your hardware configuration (video card/driver)? What codecs/packs have you installed? Can you try a .mpg, .ogm or .vob file also, not just .avi?

For the time being, I can only recommend that you try another machine and/or another combination of codecs. The user above reported that the problem went away after recompressing the movies with DivX (he didn't say which version, I'm waiting for his reply). The sooner I recieve more details about this, she sooner I can try to fix it or at least recommend a work-around.

dr.Prozac
20th June 2005, 01:55
Hi !
First I want to express my admiration for your project and effort. SubRip is a great tool and I'm really happy that there is someone who wants to continue this great project.
It's very late now and I'm just going to sleep but tomorrow I will do so many test as I will be able to do. I will try to answer all your questions you have written above.
I'm not a professional programmer but I love Pascal and Delphi. So I will also try to download the source code of SubRip. I'm working on Delphi 2005 now so if there will be no problems with opening your project so let me be helpful also in this way.
See you soon !
Greets,
Prozac

ai4spam
20th June 2005, 17:52
I was going to suggest that, but didn't know if you had worked with Delphi. By the way, you can have both Delphi 2005 and Delpi 7 (the one we tested on) installed on the same PC - in case you have trouble pening the project in Delphi 2005. All the needed components are either included, or mentioned in the text file in the Components directory (you may need to download them).
Keep me posted on your progress, and I'll send you instructions on what to do to help me debug this (I can't reproduce this bug on my machine).

Thanks a lot for the help.

dr.Prozac
20th June 2005, 18:23
Please download one of the 1.2 beta versions before the introduction of AVS support (SubRip v1.2 Beta 13 was the last one) from AfterDawn or DVD.box.sk, and report if your .avi files work with it.

I found 1.2 beta 9. Avi files work fine with this version.

Also, report if you receive a message saying it was opened in MediaPlayer mode.

Yes. I recived this message.
Also, can you tell me if playing the movie does anything in 1.30 Beta 8?
It seems everything works fine. There is just no picture in the window.
Does the frame number change?
Yes.
Does the video preview window refresh if you drag it around, or is it "transparent"?
When I drag a rectangle by right-clicking then it is shown in the main window of the program as blue rectangle. There is no preview inside it.
What is your hardware configuration (video card/driver)?
nVidia GeForce FX 5700 LE.
What codecs/packs have you installed?
I do not use any packs. The only one I have installed is XviD 1.1 beta2. I regularly use it to MPEG4 encoding. I don't use any other decoding filters like ffdshow ect. XviD decodes my XviD and DivX5 clips. I have also prepared a screen for you containing my drivers configuration of system registy HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32 (attached file).
Can you try a .mpg, .ogm or .vob file also, not just .avi?
Now I have only AVI (divx5 and XviD) and VOB files on my HDD. I tried open VOB files and the situation is exactly the same.

I have done some more tests.
1.
As I mentioned above - using version 1.2 beta 9 my avi files were decodec correctly but when I decided to open the same clip via AVS script then the situation is the same when opening AVI file in version 1.30 beta 8. No preview but the total number of the frames is correct and the frame number changes properly.
2.
Next, I decided to install ffdshow filter, though I really don't like this filter since it is developed by various people and contains many bugs. I set ffdshow to decode all supported formats but nothing changed.
3.
Sometimes (not always), when I open XviD file the red coloured message apperars in "video file viewer": "Couldn't locate decompressor for DivX....". Really strange because the fourcc of this clip is XviD. Next time when I try to open the same file there is no any message. Strange.

According to Delphi code: I will download it soon. I think it will be better to discuss about it via PM, mail ect because it will be a little offtopic here for other users.

ai4spam
21st June 2005, 16:32
1.
As I mentioned above - using version 1.2 beta 9 my avi files were decodec correctly but when I decided to open the same clip via AVS script then the situation is the same when opening AVI file in version 1.30 beta 8. No preview but the total number of the frames is correct and the frame number changes properly.

Sounds to me like the problem is either in AviSynth or in avifil32.dll.

3.
Sometimes (not always), when I open XviD file the red coloured message apperars in "video file viewer": "Couldn't locate decompressor for DivX....". Really strange because the fourcc of this clip is XviD. Next time when I try to open the same file there is no any message. Strange.

There are TWO places where the fourcc is set in an .avi file, and they may not coincide. Try opening an .avi file with a decent hex viewer (like the TotalCommander lister) and see for yourself. Some apps use the first, others use the second. So, the fact that MediaPlayer plays a movie doesn't guarantee that AviSynth will.

ai4spam
23rd June 2005, 03:30
SubRip 1.30 Beta 9 is up.

Changes:
- fixed video not showing bug (thanks drProzac for help)
- added UniCode font support: by default, Arial Unicode MS is used, if available (it's installed with MS Office, and it supports about every character under the Sun)
- fixed several other bugs

Also, added Swedish language (thanks to Masken). All languages are updated to the last version, with English where the translation is missing. If anyone wants to update them, please contact zuggy.

ai4spam
26th June 2005, 07:02
SubRip 1.30 Beta 10 is up.

Changes:
- added a Font button in the subtitle window
- fixed several bugs in hard-subbed video ripping

ai4spam
29th June 2005, 05:39
By user request, here is my Char Matrix.
http://sr1.mytempdir.com/132702
It has some 8000 characters in it, and works for some 90% of the DVDs. Beware, although I did my best to type in things correctly, there may be occasional times when a character is detected incorrectly, so make sure to set the OCR sensitivity very high, even at 1000. There are DVDs with which it doesn't work, in which case you can either add your own characters, or make a new matrix file. If some subs are really "esoteric" (as in, a font I've never seen), I prefer to make a new matrix for them. If only a few characters are not recognized (such as diacritics and the like), I just add them to this big file as they show up.
This file will help you with the "best guess" feature too: most of the time a character is detected correctly, but SubRip is not 100% sure. Just press the "Use" button if the character is the one you want, or Ctrl-Enter to copy it in the edit box if the style needs changing (such as, if it's italic in the matrix, but not italic in the sub), then Enter to confirm.
There are only a few "compound characters" (like "%") because I've cleaned this matrix up recently, after I implemented extended selections. You can use the "<<" and ">>" buttons to shrink/expand the selection, or Ctrl-Left arrow and Ctrl-Right arrow.

Esc
2nd July 2005, 19:29
One thing I always wanted to ask.
Imagine, you have forgotten to set/remove the italic flag and screwed up several characters. You go to Edit Matrix and gladly see the characters unsorted. They are in the order of appearance. So you go to the last character and modify it. This is when the bad thing happens. They resort by the code. So now instead of modifying next to last character you have to search through the whole matrix looking for it.
Could you please not resort the matrix until it is saved/loaded?
Thanks!

ai4spam
2nd July 2005, 21:05
Just click on the column headings to sort by index (order of appearance) or alphabetically. It just gets really slow when the matrix is large, because to edit/delete, it removes everything from the table and adds it back.

yaz
14th July 2005, 14:44
sure, it was mentioned before, but i can't find it, so ... sorry for repeating.

since the introduction of unicode support (1.30b9) i got permanent problems w/the layout of subrip. texts are overlapping, some of them are unreadable (too small a/o too thin characters), even the about box is unreadable including that the subrip logo does not fit into the box. when i roll back to 1.30b8 everythings seems to be fine.
further i noticed that some items in the settings panels are always 'defaulted' on reload.

what should i change/set so as to get 1.30b10 to look properly. as far as i see it worx right.

thx
y

ai4spam
14th July 2005, 18:17
Beta 9 switched to using Arial UniCodeMS as the font instead of MS Sans Serif, Tahoma, Arial and Times, to ensure UniCode support for all languages. It is copyrighted, so I cannot distribute it, but it comes with Office XP and some other MS products. I think you're missing it and Windows defaults to some other font that's not exactly appropriate.
The font size for all the controls is the same as before, so if the font used is TrueType, it should show up ok, otherwise you get various weird things happening. I tried to resize most of what I could find, but I've obviously missed some things. It would help if you made a list of the windows/places where you found problems, so that I can go over them again.

In Beta 10 you can change the font back to MS Sans Serif, Tahoma or Arial in the Global Options dialog.

yaz
15th July 2005, 09:40
@ai4spam
thx a lot ! i've expected some font type mysery but it's pretty hard to chase down the appropriate one(s) by hand.

what's the reason of the bad fitting/alignment of the 'SubRip' logo in the about box. (the last quarter of P is out of the box) is it magnified from text ?

thx
y

ai4spam
15th July 2005, 19:13
If you're missing the Arial UniCode MS font, Windows chooses one that it thinks is closest (supposedly from the same familiy). I guess I could make it default to Arial or MS Sans Serif if it's missing...

I can't see the "incomplete p" problem here, the window looks ok to me. Can you attach/send a screenshot?

kaizoku
16th July 2005, 04:14
http://zuggy.wz.cz/ seems to be down...anyone got a working link for the latest beta?

edit: nevm...stupid me shouldnt post before googleing :D

ai4spam
16th July 2005, 09:21
Seems to work fine now...

jp80
17th July 2005, 06:40
The page for your char matrix displays the message "The file was removed.
Reason: Hosting period expired.", then could you please repost it?

ai4spam
17th July 2005, 09:12
Sure:
http://sr1.mytempdir.com/86416

Daijoubu
28th July 2005, 08:19
Is it possible to add a new feature to the hard subbed detection?
I'll like to only get the timing

The hard subtitles are in chinese so I wonder if it's possible to only write the timing to the SRT so I can fill in the translation manualy :)

ai4spam
29th July 2005, 04:03
Well, there's a good reason why SubRip asks you to type in stuff: this way it can tell if some white part of the image is actually a subtitle, as opposed to just white background (when it mistakes the background for a subtitle, you just press Enter for a "null" character).
So, just type in garbage (well, if you want to type in Chinese, using UniCode you should be able to do so using one of those "helper" applications that lets you type in several Latin letters for a Chinese character), and then open the resulting subtitle in SubtitleWorkshop and edit it to your heart's content.

Zerryk
30th July 2005, 21:00
Hi, there are some minor UI bugs in 1.30b10:
- in Global options dialog, the Charset listbox always resets to Default and the Codepage listbox resets to 1252 in the moment when opening the Global options dialog (before I open the dialog again, the previous presets are remembered and saved correctly)
- if different fonts are chosen for Subtitle window (ie Courier) and in the Global options (ie Arial Unicode MS), the font in Subtitle window resets to the global font when opening the Global options dialog (load some text subs, then open the Global options dialog and see the ugly redrawn screen)
- in the Time correction dialog, the last numeric field (after the comma) maybe should be autopadded by zeroes from the right, not from the left (ie "0:0:0,5" entered should mean "0:0:0,500", not "0:0:0,005" )

Zerryk
30th July 2005, 21:50
The character generator under the "Fill matrix from text" generates another characters than in the appropriate section in charmaps.ini (Czech in this case). In the OCR window and in the generator sample text window, the "hint" buttons show correct characters but the resulting character matrix contains another ones. See the screenshot, compare with Notepad window in background.
These ones were generated with CP 1250 set in Global options. With another CP set in Global options, different characters (but still not the correct ones) are generated.
When UTF-8 or Unicode is set in the Global options, the character generator crashes saying "Access violation at 004eedd5 in module SubRip.exe. Read of address 00000000"
My Windows has codepage 1250 set as default, the Arial Unicode MS font is present.

ai4spam
1st August 2005, 06:22
Thanks for the bug reports. The first two bugs (font reset) will be fixed in the next beta. The third one will probably be left as it is (hard to fix and confusing).
As for the char matrix generator, it only loops from 33 to 255, not outside, so you won't get any "special characters", just whatever gets mapped to this domain with the current CodePage. I will improve it when I have the time (it needs to know UniCode ranges, and that's not easy to do).
No date is set for the next beta, as I'm busy with other stuff. Meanwhile, Zuggy may release a new beta if he manages to get some work done on the DVD part.

Zerryk
1st August 2005, 17:49
When typing sample text in the char matrix generator window, the background color of both the sample bitmap and "fit-text-to-sub" bitmap changes randomly. Is it a feature or bug?

ai4spam
2nd August 2005, 05:06
It's a bug with color pallette conversion that I didn't have time to look into.

Nick Less
16th August 2005, 09:04
ok, first of all i apologize if what i'm about to ask has been dealt with before, so point me in the right direction if it has.

i've just strated ripping subs from avis and this is the problem - when subrip finds a sub, it displays it correctly and recognizes it, but it doesn't realize that it's the same sub so it keeps on repeating it over and over and i have to keep pressing the skip button hundreds of times. Any wa around this?

veverica
17th August 2005, 13:20
Hi ai4spam, i have some suggestions for avi subrip. I've developed PodPis Virtualdub filter to extract subs from avi, creates idx/sub files and than subrip it with SubRip. It works really good, for a tv-seria of 45 minutes it takes around 1 hour of your time to get a subtitle (including sub to avi manual check).

The detection routine is rather simple. It recognises around 99 percent of subtitles and double around 1%, for a medium quality video. We can talk more about it, if you like, you can get the source code if you like.

My first proposal would be to rip off the subs in two steps. First to run the detection, that would create idx/sub file and than to rip that file. It saves much time.

Another proposal would be to include a button that would skip the OCR but would include [skiped item nr.] line in a text file, like it does when you hit Done in manual typing.

Another proposal would be to Delete last typed char from char matrix without showing the matrix. With ALT-U it happens often (in a hurry).

The alt-u (USE best guest) is superb!!!

thanks for your work

:thanks:

ai4spam
17th August 2005, 16:59
i've just strated ripping subs from avis and this is the problem - when subrip finds a sub, it displays it correctly and recognizes it, but it doesn't realize that it's the same sub so it keeps on repeating it over and over and i have to keep pressing the skip button hundreds of times. Any wa around this?
Try increasing the "same sub tolerance" value.

ai4spam
17th August 2005, 17:28
The detection routine is rather simple. It recognises around 99 percent of subtitles and double around 1%, for a medium quality video. We can talk more about it, if you like, you can get the source code if you like.
Well, it would be nice to compare the detection routines, and maybe see where mine works and yours doesn't, and the other way around. Have you tried anime fansubs? Ther are a bit harder to work with - see the example in guide on the SubRip homepage, how does PodPis deal with that? Do you still get 99% detection accuracy?

My first proposal would be to rip off the subs in two steps. First to run the detection, that would create idx/sub file and than to rip that file. It saves much time.
Well, I'd have to run them side by side to decide. Sounds to me like you already have everything in place. We can ask zuggy to include a link to PodPis on the SubRip homepage, or I can do it myself, if he agrees. One question: what do you do when you have a "possible"? Do you still output it in the .idx/.sub files? I'd say actually seeing the subtitles helps a lot. And do you actually save the files with different text and outline colors, or do you just make them black and white?

Another proposal would be to include a button that would skip the OCR but would include [skiped item nr.] line in a text file, like it does when you hit Done in manual typing.
That would be easy enough to do, but what advantage is there? The "Skip this subtitle" button skips without adding that message. Do you actually go in with some other program (like SubtitleWorkshop) and fill in your skipped items? On the other hand, it would make sense to have a "Same as last" button in the manual typing window. However, that only shows up if SubRip can't detect the lines in a multi-line subtitle, which doesn't happen if you use the "inter-line options".

Another proposal would be to Delete last typed char from char matrix without showing the matrix. With ALT-U it happens often (in a hurry).
Hmm, it would also have to restart the detection of the last subtitle, since that character needs to be in fact replaced, not deleted. That would also mean going back N subtitles if all other characters have been properly detected :(. It is possible, but not easy to implement, and going back in videos is not easy, or guaranteed to work all the time. So... my advice... don't be hasty when pressing the "Use" button. Maybe I should put a delay timer on it ;)?

Back to your proposal: I now have zero time available to work on this, and won't have time for a few more months. I can at most give advice :(. Hopefully, zuggy will get back to the DVD part and make some improvements, and fix some of the reported bugs along the way.

On another note, I was trying to get the subtitle removal filter to work (see some earlier posts). It would be a great help if you could finish it (it's only debugging, everything else is in place) using your knowledge of VirtualDub, and maybe combining it with PodPis.

ai4spam
18th August 2005, 09:38
Beta 11 is up - I found some time after all, because I was ripping some subs in Romanian and they weren't saved properly, so I ended up fixing some bugs ;).

Changes: fixed some GUI bugs, including the ones mentioned in the recent posts; new French language (thanks to Kurtnoise).

veverica
18th August 2005, 10:14
Well, it would be nice to compare the detection routines, and maybe see where mine works and yours doesn't, and the other way around. Have you tried anime fansubs? Ther are a bit harder to work with - see the example in guide on the SubRip homepage, how does PodPis deal with that? Do you still get 99% detection accuracy?

I'll try that out. The detection often works very well but the picture is jammed, not possible to OCR. This kind of subs I just skip and use the times only and than in SubtitlesTranslator manualy enter the text. Saves a lot of time, I think.
In PodPis I compare the pictures I consider to be the same subtitle and than use only the one with least white points. Even if some parts of the subtitle are jammed it is a good chance to get a clear subpicture.


Well, I'd have to run them side by side to decide. Sounds to me like you already have everything in place. We can ask zuggy to include a link to PodPis on the SubRip homepage, or I can do it myself, if he agrees. One question: what do you do when you have a "possible"? Do you still output it in the .idx/.sub files? I'd say actually seeing the subtitles helps a lot. And do you actually save the files with different text and outline colors, or do you just make them black and white?
Yes, simply black and white. It would not work, if the subs would be yellow, if they are white i can use threshold parameter to get white color.


That would be easy enough to do, but what advantage is there? The "Skip this subtitle" button skips without adding that message. Do you actually go in with some other program (like SubtitleWorkshop) and fill in your skipped items? On the other hand, it would make sense to have a "Same as last" button in the manual typing window. However, that only shows up if SubRip can't detect the lines in a multi-line subtitle, which doesn't happen if you use the "inter-line options". See the first answer... If the subtitle is detected but it is too crowded (a lot of jam) I skip it and than type it in when doing correction. I think the correction is crutial for avi sub ripping, just to get a proper product :) I correct it in SubtitlesTranslator on speed 3x.




On another note, I was trying to get the subtitle removal filter to work (see some earlier posts). It would be a great help if you could finish it (it's only debugging, everything else is in place) using your knowledge of VirtualDub, and maybe combining it with PodPis. Yes, maybe I can check that out. I remember long nights when bringing up PodPis to life. Spins, Preview button, sliders, ah, thousands of bugs.... :scared: :)

johner23
18th August 2005, 12:31
Where I can find PodPis nowadays?

---> http://neuron2.net/other.html

I try using that link to find out, but it seems the path for PodPis Filter is broken. :(

I have heard about SubLog Extractor Filter too, by (c) Alain Vielle.

---> http://avielle.chez.tiscali.fr//video/sublog.html

Those filters ( PodPis and SubLog Extractor) could be improved and help SubRip to recognize better the hardcoded subtitle process?

Nice job, guys.

I hope you keep these projects and future improvements for them too. Thanks.

Best regards.

devil (johner)

ai4spam
18th August 2005, 17:06
@veverica: About the extra button, well, SubRip will still try to fill in the characters that it does recognize, but you're right, I guess it makes sense. I'll think about the best way to do it. About the sub removal: it just occurred to me that, ideally, it would be the reverse of VobSub/VSRip, in which the filter would read a .sub/.idx file and remove the burned-in subtitles. I was too lazy to try to go into the file format, and settled for reading simple .pgm images saved by SubRip instead. Maybe VobSub/VSRip's file reading part can be used (if available), and combined with DeLogo's removal part (which is what I use). Do you think you could do that? It'd be a lot more work than debugging my stuff, which is based on DeLogo. If so, send me your email in a PM.
On the other hand, I could work on improving SubRip's detection, based on both PodPis and SubLog Extractor, and make it save the result in standard .sub/.idx files instead of the .pgm sequences it does now. What do you think?
Again, I think the main advantage of using SubRip is that you see the subtitles on screen, and that some of the characters are filled in for you. So, even when you decide to skip a sub to fill it manually later, it helps, and will save you time as you progress, because it will recognize more and more characters as you go on. Maybe adding the possibility to edit a subtitle right within SubRip would help too, I'll think about it.

@johner: Thanks for the links, I didn't know about SubLog Extractor.

ai4spam
19th August 2005, 11:41
From the looks of it, both PodPis and SubLog extractor have fairly simple detection schemes. SubRip's is done in several steps, much like AviSubDetector's, and I think it works a lot better. I guess the only missing functionality is saving the bitmaps as .sub/.idx files for later processing/removal, without user assistance beyond the initial cropping and setting the colors. I'll see what I can do about implementing it. Now if only someone would undertake the endeavour of making a "reverse VobSub/VSRip" to remove burned-in subtitles given .sub/.idx files...

pcjco04
25th August 2005, 11:14
ai4spam, the page for your char matrix displays the message "The file was removed." again. :D
Can you post it again ?

ai4spam
26th August 2005, 12:23
Sure, here it is: http://sr1.mytempdir.com/132702
If anyone cares to host it, feel free to do it and post your mirror here, I'll update my first post accordingly.

foxyshadis
29th August 2005, 09:50
Laaaaaaaaaaaaaaaaame. (The site, not you.)

http://foxyshadis.slightlydark.com/random/CharMatrix.rar

ai4spam
29th August 2005, 23:56
Thanks for the mirror. Let us know if at any time it becomes a burden, and I'll rmove the link.

foxyshadis
1st September 2005, 03:48
170K as a burden? Don't worry about it, that site's up 24/7 and puts out tens of gigabytes a month.

Sinistral
2nd September 2005, 11:54
Hey ai4spam,

First of all, thanks for all the great work you've done on subrip. I use it a lot and it just keeps getting better.

I do however have a problem: when I rip subtitles from certain languages, and I save them as .srt format (not UniCode), some characters aren't saved properly. Like these:

ę --> e
ś --> s
ł --> l
č --> c
ź --> z

These are just some examples. Is there any way to fix this, except for saving them as unicode (I use subrip 1.30b11)? Thanks in advance.

And now for something constructive. I rip subtitles in a lot of languages and sometimes some characters aren't in the little boxes beneath the typing bar. So I made a list for myself which has all the characters I used for a language, but which weren't in the little boxes beneath the typing bar. So I though you might want to add some characters to the little boxes from my list. Here it is:

ENGLISH: ń á ú í ó ä ö ç č ü ı ë ď ˇ ż © ĺ ă ł â ˝ Ĺ
DUTCH: ď é Ë č ó ŕ ô ö ę î ç Ł ú ń á â
GERMAN: Ö ŕ é ˛ ş
FRENCH: Ś ş Â Ű Ô Î í ć ă á
ITALIAN: Ě Ň
SPANISH: Ú Ě ä Ş
PORTUGUESE: ŕ Ŕ ô Ô Ę Ő í Í Ç ń ş Ş
SWEDISH: Ö ć Ĺ ř á ü č
NORWEGIAN: ć Ć Ř é É â ô ň
DANISH: ĺ Ĺ é É ń ö ó í
FINNISH: ĺ Ĺ š Š
ICELANDIC: Ţ É é ý Ý í Í Đ Ć ó Ó Ö Ú á Á
HUNGARIAN: ű Ű í Í ó Ó
CZECH: ř Ř š Š č Č ĕ Ĕ ť ů Ů ň Ň ď Ž á Á ú Ú ó Ó é Ť ń Ď §
POLISH: ś Ś ę Ę ń Ń ł Ł ż Ż ą Ą ć Ć ź Ź ó
TURKISH: ğ Ğ ı İ ş Ş ö Ö â Ç ŕ č
SERBIAN: đ Đ ć Ć č Č š Š ž Ž
SLOVENIAN: š Š č Č ž Ž é
ROMANIAN: ţ Ţ ă Ǎ ş Ş
SLOVAK: í Í č Č ľ Ľ ú Ú á Á ý Ý é É ť ž Ž š Š ô ŕ ň Ď ä ó Ó ř Ť
ESTONIAN: ä Ä ő Ő š Š ř
CROATIAN: č Č ć Ć ž đ Đ

I tried to sort it on importance. So the characters I used the most are in front. I hope you can use them, but if not it doesn't matter.

I also found a orthography dictionary in Dutch for subrip. I tried it a couple of times and it seems to work very good. Here's the link: http://www.nlondertitels.com/board/attachment.php?attachmentid=1395

I hope I helped out a little bit. If you have any questions about my problem or about something else, just post it here and I'll respond. Thanks for your time! :D

ukendt
2nd September 2005, 22:39
DANISH: ĺ Ĺ é É ń ö ó í


It ain't danish, sorry to say :D


ń is spanish, it doesn't exists in the danish language.
ö ain't danish either, we use ř istead (pronounced almost like the french "eu")
ó never heard of it
í ??? We use i. Are U sure U didn't confuse italian with danish? :p

Sinistral
3rd September 2005, 00:01
DANISH: ĺ Ĺ é É ń ö ó í


It ain't danish, sorry to say :D


ń is spanish, it doesn't exists in the danish language.
ö ain't danish either, we use ř istead (pronounced almost like the french "eu")
ó never heard of it
í ??? We use i. Are U sure U didn't confuse italian with danish? :p


You are right about that, that isn't Danish. But sometimes I rip foreign movies with Danish subtitles. Those were probably from a Spanish or Italian movie with Danish subtitles. In some of the names some of those characters might have been used. If you look at English, you'll see a lot more of them ;)

Because it isn't Danish, I've put them in the back (the less used characters). Hope that clears it up.

ai4spam
3rd September 2005, 03:50
@Sinistral: thanks for the input. Can you please send me your charmaps.ini file (lookup my email in the SubRip manual, or just post a link to somewhere)? That would be easiest for me. I'll also include the Danish dictionary (if it's not too big) into the distribution, otherwise I may just put it separately on the web page. Please send it to me, I cannot login into that forum since I don't know the language.
Anybody that has such dictionaries, please submit them to me or Zuggy.

As for the characters that are wrongly converted, you need to select the apropriate CodePage and CharSet in the Global Options window. There's a bug in Beta 11 that doesn't update all the elements of the GUI to the new font. Currently, I'm working on UniCode support in the GUI without the need to change the system locale, and I've made some signfficant changes. After a couple of bugs are ironed out, a new beta will be up on the website.

Sinistral
3rd September 2005, 15:46
@Sinistral: thanks for the input. Can you please send me your charmaps.ini file (lookup my email in the SubRip manual, or just post a link to somewhere)? That would be easiest for me. I'll also include the Danish dictionary (if it's not too big) into the distribution, otherwise I may just put it separately on the web page. Please send it to me, I cannot login into that forum since I don't know the language.
Anybody that has such dictionaries, please submit them to me or Zuggy.

As for the characters that are wrongly converted, you need to select the apropriate CodePage and CharSet in the Global Options window. There's a bug in Beta 11 that doesn't update all the elements of the GUI to the new font. Currently, I'm working on UniCode support in the GUI without the need to change the system locale, and I've made some signfficant changes. After a couple of bugs are ironed out, a new beta will be up on the website.

Okay, I send you the mail. And thanks for solving the problem, it works perfectly now!

EDIT: I got a message in my inbox saying my e-mail to you wasn't delivered. Maybe I used the wrong address. Could you send your e-mail address to quintrixjvc@yahoo.com ? Thx in advance.

ai4spam
4th September 2005, 06:48
Well, I found a great resource in http://diacritics.typo.cz/index.php?id=49 , I'm in the process of incorporating it.
Also, tons of free fonts are at http://www.alanwood.net/unicode/fonts.html , hopefully some users will be able to get one of those instrad of Arial UniCode MS.

chkp45
7th September 2005, 14:00
Support for a new input format ?

ProjectX can extract subtitles from DVB-T broadcasts to .sup format which it says is used by IFOedit. These files have lines like:

{start frame number}{end frame number}{path to .bmp file}

ProjectX creates this file and the relevant bitmap files.

What would be nice is to have SubRip understand this format...

I can supply a sample / link to a sample if needed.

ai4spam
7th September 2005, 15:58
Support for a new input format ?
I can supply a sample / link to a sample if needed.
Please do.

johner23
7th September 2005, 19:27
Hi, I have some other questions too. :)

1) Can you add or improve the mechanism for captioning close captions in sub rip? I past, there was some dvd's that uses closed caption that sub rip can't handle or rip. :(

Here there is a great tool that can do that in some cases and video formats.

---> http://forum.doom9.org/showthread.php?t=72973&highlight=closed+captions

2) Gabest have created a tool that can extract closed caption too. Can you add similar features in sub rip core? :)

I guess the program is called "VobSub Ripper Wizard".

---> http://sourceforge.net/projects/guliverkli/ (try these link)

Well, if you could integrate, improve and expand all that features in sub rip, it will be useful for all users that need to extract closed captions from their videos.

Thanks in advance for your time.

Best regards.

devil (johner)

chkp45
7th September 2005, 20:27
Actually I was wrong about which program does what...

ProjectX extracts subtitles to x.sup, and x.sup.IFO files which are all binary (+ a log file).

What you need then is DVDSupDecode from DVDSupToos package and run this with -bitmap option and give x.sup for it as input. After this you get x.txt which is in the format I described in my earlier message, plus x_000001.bmp files.

A samples of all these are somewhere in the net, I will send the location to ai4spam privately

ai4spam
8th September 2005, 01:06
@johner:
1) I am not familiar with the format (don't even know if they're bitmaps or text), and I don't have the time to implement support for it. But hey, this is the beauty of OpenSource, anyone can take over ;).
2) Unfortunately, although hosted on SourceForge, none of Gabest's work is actually available in source form. I could have used some of his VSRip code for saving .idx/.sub from .avi files, but alas, he only gives the executable. And again, no time to reverse-engineer or lookup the documentation for this :(.

@chkp45: Thanks for the sample, I'll see if I can do something about it. It looks like a decent enough format, I may even implement saving to it myself (from .avi). The problem is, I don't know what the palette is: there are only 4 colors (background, outline, text1 and text2), but I cannot assume they are present in all the bitmaps of this type. Do you have another example, so that I can test (just one bitmap will be enough)?

DonGato
8th September 2005, 04:23
The CVS isn't useful or doesn't have the needed files?
http://cvs.sourceforge.net/viewcvs.py/guliverkli/guliverkli/src/subtitles/

ai4spam
8th September 2005, 05:22
@DonGato: Hmm, that may work, thanks. Too bad it doesn't do much about my free time, wich is still next to none :(. My thinking is... don't duplicate the functionality of something if you can't do it better. In this case, I can't do any better, so you'll have to keep using both programs.

@chkp45: Too bad DVDSupDecode doesn't give you any other format, like a "regular" .idx/.sub pair.

chkp45
8th September 2005, 12:46
More than you (or anybody) would ever want to know about DVB subtitles

http://webapp.etsi.org/action%5COP/OP20021004/en_300743v010201o.pdf

ai4spam
9th September 2005, 05:20
More than you (or anybody) would ever want to know about DVB subtitles
Indeed. Good thing ProjectX and DVDSupDecode did all the work ;).

ai4spam
11th September 2005, 08:09
Well, SubRip 1.40 Beta 1 is up on the home page.
Changelog:
- Large GUI overhaul (a better way of entering special characters) and bugfixes everywhere.
- Changed the format of the language and char map files to UniCode, so that they can be edited in Word.
- Implemented a way to fill a char matrix with entire UniCode ranges. With just a little exercise in matching you can potentially save a lot of typing for languages with lots of characters, like Chinese and Japanese.
- Implemented opening bitmap sequences that DVDSupDecode outputs from converting DVB-T broadcasts saved as .sup by ProjectX.
- Made Modify and Delete work faster for characters in the Char Matrix.

Thanks go to Sinistral and chkp45 for their suggestions.

bourtzovlakas
11th September 2005, 12:15
Is v1.30 beta11 considered the stable version of the v1.30 family??

ai4spam
11th September 2005, 17:56
Is v1.30 beta11 considered the stable version of the v1.30 family??
Well, just like with 1.30 from 1.20, there were so many changes I thought it deserved a new version, and yes, with all the changes I may have introduced new bugs that may need a whole new series of betas to fix. So, happy bug hunting ;)!

Saligia
12th September 2005, 06:05
Hi!
First of all, thanx for devoting all these hours, weeks, months... keeping Subrip going strong.
It is an one-and-only. And without it we would be nowhere. :cool:
THX!

Lately I've come across some subs that, no matter what, just would'nt be OCR'ed to anything, but endless lines of ocr-errors.

Born out of pure frustration, I came up with this solution, that works just fine.

1. Rip subs to BMP/SON with Subrip.
2. Convert to SUB/IDX with Son2vobsub.
(Can be scaled, to obtain large, clear, non-joined chars.)
3. Load SUB/IDX into AVIsynth on blank clip, with movie length.
(White chars on black background)
4. Make fake AVI with MakeAVIS.
5. OCR the .avi with Subrip.

It works well, thoug it's no timesaver. But then again, I'd rather spend some hours clicking the mouse now and then, than powerbashing the keyboard until i breaks and burn.

And now to my real agenda. (Of course there had to be a catch!) :D
When OCR'ing "hardsubbed" txt this way, it seems that Best Guess is correct, next to always.

So these options would be Soooo cool:
A. Use Best guess after (n) seconds, if not interupted. 0=allways
B. Insert (selectable chars) if best guess=none
C. Comment in lines where best guess is used

This could even make the OCR'ing unattended, and easy to correct afterwards with some spellcheking.

Thanks for your great work.

ai4spam
12th September 2005, 08:58
@Saligia: Thanks for the comments.

This whole "scale, to obtain large, clear, non-joined chars" sounds interesting, it's along the lines of AVISubDetector's "double resolution" feature. I did not use it for SubRip because that makes the characters too large, and SubRip's current limit is 72x44 ever since Delphi couldn't handle dynamic arrays. I guess I could make them larger, but that would deffinitely impact performance and potentially make char matrices less reusable. I'll think about it, but again, I have very little time to devote to this.

A question: what kind of scaling are we talking about? Is there some processing going on there to make letters disjoint? Can you send me an example (look up my email in the manual)? The scaling could be implemented directly in SubRip.

Also, it seems that your steps 3 and 4 are superfluous. Why don't you just load the "enlarged" .sub/.idx directly in SubRip, instead of making an .avi? This will also help with your problem, because you won't get the .avi compression artifacts screwing up with the binarization in the hard-subbed .avi OCR.

About your agenda: what the best guess does is it puts a new char in the char matrix, once you confirm it. So, the result of option A would be a char matrix potentially filled with really bad guesses. In my experience, once you start it, you seldom have to type. Try one of the following:
- lower the OCR sensitivity
- use the "fill matrix" option - it's a bit of work to match the font, but after that it should be smooth
I'm not clear what good options B and C would be. Presumably, you'd insert some special char or comment, and then go in and edit manually afterwards (spellcheckers never quite work). Again, if you got a decent source, once you start the OCR you have to type less and less.

Hopefully, with my suggestion above, you'll cut down the time you spend doing this.

chkp45
12th September 2005, 13:17
Many thanks for new features, I'll try to test .sup tonight.

Saligia
12th September 2005, 17:08
@ai4spam: Thank you very much for the reply.

ABOUT THE 44 LIMIT.
The 44 limit was inded on of the first barrieres I meet when "developing" my method. I did spend some time wondering why it was there. Now I know.

ABOUT THE SCALING AND PROCESSING.
The scalingfactor can be set in the .idx file for the vertical/horizontal resolution, as a percentage. Like say 50% to reduce or 155% to enlarge, to suit your needs and likings.

The number is used by the Avisynth VSFilter.dll, when the file is frameserved. Thus no scaling will be performed when opend directly in Subrip.
And implementing that, would be a whole new world, or rather... -program!
So beeing just a little realistic, it's doable but in my opinion, way off the scope of Subrip, since there are ways of doing this, without rewriting Subrip ;)

ABOUT THE BEST GUESS
I'm sorry to hear, that you do'nt like the idea of an best-guess-automode.
It's true, that it will introduce errors, when best guess is wrong or missing, but looking at pro's and con's I find it easyer to wipe out some errors using a search function, rather beeing tied up to the PC for hours.
But I do respect that this is'nt a matter of sceince, but a matter of opinion.
I still think it would be a big enhancement thoug.
But for now I will use your suggestiens, and do some more tweaking the parameters to optimize the ocr'ing

ANOTHER REQ
Would it be possible to allow editing the output file in Subrip?

LAST BUT NOT LEAST
I fully respect your work, and know that Subrip is'nt like your whole life, and thus there's natural limits to fullfilling the newer ending craving of feautures and options.
So I want to point out, that I find it more importent to appriciate what you HAVE done for us, rather than what will or could be done.

All those hours and hours and hours... -just for free.
That's the truely amazing thing here.

Best regards.

chkp45
12th September 2005, 19:23
Well, 50 % success..

Of two programs one converted as it should (code name italiaa), the other (code name prisma) did not when given .txt as input. Both worked when given the first .bmp, but of course the timing was screwed

Samples (a few hundred bmps...) in the same place as last time.

Happy bug hunt (well, not a bug really, bad initial specification rather)

ai4spam
12th September 2005, 22:42
@Saligia: Actually, the best guess request would be trivial to implement, compared to the resampling, wich can be done without "rewriting SubRip" (but with some substantial effort). So, how about I make the best guess an option, and you help me with the resampling? I need the original subs and a couple of screenshots from the .avi that show exactly what the rescaling does.
Editing the output is not easy, because the list is re-filled each time some operation is performed from the internal structure, so I'd have to allow editing that structure.

@chkp45: Did you check the file names? I mean, do the .bmp files in the directory actually coincide with the file names in the .txt file? I actully ran DVDSupDecode on an example and it worked on the output, so there must be something wrong with the file names.

Saligia
13th September 2005, 00:19
@ai4spam: Seems like a pretty good deal to me! :)

ABOUT DOKUMENTATION.
I'll be more than happy, to put together some dokumentation with screenshoots and all, of what I'm fiddling around with, and what i looks like.
I'll do that by tomorrow. PM or here?
But like I said, I know it will be a huuuge task, to implement - if possible at all. that's why I was'nt to pushy about it.
But I'll let you judge yourself, if it's any good, and worth the effort.

ABOUT BEST GUESS OPTION.
After I read your reply, I did some tweeaking here and there, and I did get some minor improvements. But not even close to what an best-guess-auto option would be. I don't think I was clear enough on this point in my first messesage: The fact is, that when ocr'ing this way the Best Guess is correct 99,99% of the time. So cleaning out a pair of errors afterwards, is a so little price to pay, for the ability to let Subrip do it's magic on its own overnight!

Therefore I'm absolutly exited, that you are willing to give it a try!
You´r to cool to be true. :cool:

ABOUT THE SAVE OPTION IN VIDEO FILE VIEWER WINDOW.
I've tryed ticking this option on. I see that i creates a subfolder with .pgm files. But i haven't been able, to find any doku about it. First i thought it would save some images for later processing, but it keeps on ocr'ing AND saving .pgm files. Sorry if it seems like I've been living under a rock, but how is it supposed to be used? And what is a .pgm file?

ABOUT EDITING OUTPUT FILE.
It's no biggie that it can't be done. But as you see, most of the time we have absolutly no idea of what we REALLY ask for. But at least, it's not because we aren't greatfull, of the work beeing done. If we did'nt find Subrip importent and usefull, we proberly would'nt bother asking. It's just because that most of us don't realize the huge amount of effort that goes into even changes that seems, barely noticable to us.


Best regards.

Esc
13th September 2005, 00:33
Hey, ai4spam! Thanks for keeping working on it.
I opened the new version and the toolbar battons look kind of strange. Like the pictures do not fit the buttons and go over the edge. A screenshot of 3 of them is attached to this message.

ai4spam
13th September 2005, 00:55
@Saligia: No rush with the documentation, take your time - I won't be able to do anything until the weekend anyway. Don't go into too much details either, I just need some examples where the "low-res" detection fails, but the upsampled version works. PM or email is fine (lookup the address in the SubRip manual). As for the .pgm files, they were designed for removal using a VirtualDub and special version of DeLogo that I was working on. Unfortunately, debugging it is a royal pain and I simply don't have the time. I've sent the source to one of the members here, maybe he can work on it. This option will probably be replaced with saving regular .idx/.sub pairs, just like PodPis does, if we can get the removal part grafted onto VSFilter to remove subs intead of putting them in, yet still use the .idx/.sub loagind routines.

@Esc: I've changed the button components because the old ones did not have hints in UniCode, so they didn't work with the new UniCode language format. I'll make them a bit larger if needed. Also, I've shortened a couple of captions in the "Enter new char" form to make all the buttons fit in. All the languages need updating.

chkp45
13th September 2005, 16:27
@ai4spam: This is really something different.
The 'prisma' set shows bitmaps as black on black initially, and processes nothing. (All bitmaps seem to be read and displayed but nothing is offered to be recognized.

When I go to 'change text color' I see texts in red with blue outline on black background. Then I uncheck black and blue and conversion starts. Trouble is, it shows only the character to be recognized, (blue on black in thin red outline box). Other characters are black on black ??? (This is on main window where tho whole bitmap is shown). You can actually do the conversion but you get errors as the whole text is not visible.

Funny it does not behave like this on the other sample ??

Another minor detail, as these recordings have ridiculously long file names they spoil the apperance of the status line where the file name is shown..

Best regards

ai4spam
13th September 2005, 16:58
@chkp45: I've looked into it. It seems like I overdid it: the bitmaps are always 4 colors (0..3) even though the palette may have more, and they always refer to shades of gray. I guess I'll just ignore the "Palette=" lines and be done with it.

ai4spam
15th September 2005, 05:39
SubRip 1.40 Beta 2 is now up on the home site.

ChangeLog:
- Fixed a few bugs.
- Added an option to automatically fill the best guess (look in the global options window for how to turn it on).
- Updated Portuguese language by Vítor Vieira

Future plans are to implement something to automatically look in all your fonts for a match, instead of asking you to choose the font. It may take a long time to do (got tons of other things to worry about in my own life).

@Saligia: now it's your turn to hold your end of the bargain ;).

masken
15th September 2005, 11:03
@ai4spam, how did it go with the suggestion to allow only whole words to be formatted? (italics, bold etc, the issue where some characters are formatted with italics and some not, causing hard-to-read and large files)?

ai4spam
15th September 2005, 17:11
@masken: I totally forgot about it :(. I'll see when I get the time.

masken
15th September 2005, 17:30
np m8, you're doing a great job :) just a suggestion ;)

movax
15th September 2005, 18:56
ai4spam, I'll checkout the source and email/PM you some of the changes if I make any :P

*EDIT* PM I guess, your email is secret. :)

ai4spam
15th September 2005, 19:33
PM I guess, your email is secret. :)
No, it's not. Look in SubRip's Credits.txt. Don't use Yahoo Mail if you send attachments. Mark your changes for ease of integration.
And remember: I am to blame for only part of the mess in the code ;).

giannid
17th September 2005, 20:59
Hi,
I opened an .srt file in the 1.40 Beta 1, and I tried to use the "Post OCR Spelling Correction", but this option was not available. I think it's available from a fresh rip but not for an old, previously ripped .srt file.

ai4spam
17th September 2005, 23:22
The first thing that happens when you open an old file is that SubRip asks you what CodePage/CharSet to use to convert to UniCode. Chose the values you want, then press "Done". Then all the other options will be enabled again.
The whole purpose of this is to deal with non-standard CharSets. For example, for Eastern European, if you don't choose that CharSet, some UniCode characters (the diacritics) will be converted to the wrong values. The reason the text shows is so that you can try different CharSets until you are satisfied with the conversion.
Anyway, I recommend other tools for better OCR and spelling correction, like SubtitleWorkshop.

ai4spam
19th September 2005, 06:57
A screenshot of 3 of them is attached to this message.
Well, it's been pending approval for a while, so I guess you need to send it over via email or put it on the web someplace.

TiaoMacaleh
20th September 2005, 21:17
Anyone have problem with subrip not recognising whole lines?

I tryed changing colors etc, even it looking perfect it doesnt recognise the line. Some subs have more than others this problem... sometimes have to type the whole line dialogue 20-30 times...

Is there any way to solve that? maybe a config etc?


thanks

LeMoi
20th September 2005, 22:17
On french windows, with default XP theme, when i save subs, i can see the end of the last charsets, so i don't know if they are utf-8 or utf-16 or other, i just see until UTF :o
and with french language selected, i can't the char proposed by the soft, it appears under the words "meilleure réponse" :|

ai4spam
21st September 2005, 04:58
@TiaoMacaleh: If you mean that you often get the prompt to type the entire dialogue, it's probably due to the fact that the lines don't have enough distance between them (usually that happens if you have accentuated characters on the second line). Try lowering the "min interline height" value in the OCR options. Sometimes it's impossible to draw a straight line between the two lines of text no matter what you do, so you'll need to type in those dialogues manually. It is indeed possible to separate text lines with a line that "goes around" accents and the like, but these cases are too rare to justify the programming effort at the moment. And since now you also have the special characters table in that window, it's a lot easier to type the entire line.

@LeMoi:
1) You probably mean the last CodePage, not CharSet. The French language usually triggers the UniCode flag due to the "oe" ligature character. Answer "No" when asked to save as UniCode, then just leave "DEFAULT_CHARSET" and "1252 - ANSI Latin I". You should have no problems with the resulting subtitle. You should never need to choose CodePage 65000 or 65001 (which are UTF-7 and UTF-8, by the way). When you change the CharSet, SubRip automatically sets the corresponding CodePage for you, and normally you should never have to change the CodePage yourself (it's there only for more flexibility). Alternatively, you can save the text as UniCode, then load it in Word and save it as text with the encoding (CodePage) of your choice. Word highlights the characters that cannot be converted for you (it shows them as red question marks).

2) The translator didn't respect the requirement to keep the number of characters when translating, so the best guess text is overlapping the text that says "Meilleure reponse". It should be a bit better in the last beta, because now the best guess has spaces before and after it, like " l ". The font and color are different also, so you should easily see the best guess. Or... edit "Lang\Francais.lng" with NotePad and put "Meil. repo." instead of "Meilleure reponse".

LeMoi
21st September 2005, 10:08
@LeMoi:
1) You probably mean the last CodePage, not CharSet. The French language usually triggers the UniCode flag due to the "oe" ligature character. Answer "No" when asked to save as UniCode, then just leave "DEFAULT_CHARSET" and "1252 - ANSI Latin I". You should have no problems with the resulting subtitle. You should never need to choose CodePage 65000 or 65001 (which are UTF-7 and UTF-8, by the way). When you change the CharSet, SubRip automatically sets the corresponding CodePage for you, and normally you should never have to change the CodePage yourself (it's there only for more flexibility). Alternatively, you can save the text as UniCode, then load it in Word and save it as text with the encoding (CodePage) of your choice. Word highlights the characters that cannot be converted for you (it shows them as red question marks).

OK but yesterday i subriped subs where there were "Ç" and it didn't detect that unicode was needed to save these chars and proposed me to save in ansi, which does'nt keep such character

and thanks for the tip ;)

ai4spam
21st September 2005, 15:49
@LeMoi: That's weird, because that character is kept by default. Are you sure you OCR-ed it as such? For example, if you OCR-ed it as regular "C" (either by mistake, or because your char matrix tells it to) and the inter-line distance is too small, it may skip the "," underneath the special "C" altogether.

LeMoi
21st September 2005, 15:56
Hmm, i don't really remember, but i'm almost sure. But maybe i am wrong, since in most of the cases, it's well OCR-ed and it advises me to save it in unicode, i'll try with other subs and tell you about it.

TiaoMacaleh
21st September 2005, 18:53
ai4spam it worked, i tryed changing the setting before without luck but the problem was the program doesnt seem to apply the changes right away. You need to restart subrip to changes take effect. After restart everithing was fine. Thanks =]

sapient
21st September 2005, 19:36
Everytime I load ai4spam's matrix subrip freezes up and stops responding... Any ideas?

bourtzovlakas
21st September 2005, 19:43
It 's big and needs an amount of time to load...

sapient
21st September 2005, 21:35
No amount of time unfreezes it.
I realised, though, that the problem exists only if the matrix is loaded automatically using the search for match button. If it is loaded manually at the beginning, it works fine.

ai4spam
22nd September 2005, 01:00
@LeMoi: the special ",c" character is part of the ANSI CharSet, so if you only have that and no other special characters SubRip will not ask you to save as UniCode, but will directly go to the saving window and let you set the CharSet and CodePage for conversion.
The problem may be if DEFAULT_CHARSET has a different value for French Windows XP. To be sure, select ANSI_CHARSET instead - this changes the CodePage to 1252 and it should be fine.

@sapient: bad idea, using the search button with my huge matrix. Again, if you see some really weird font, make a new matrix, otherwise just add characters to mine.

LeMoi
22nd September 2005, 10:31
@LeMoi: the special ",c" character is part of the ANSI CharSet, so if you only have that and no other special characters SubRip will not ask you to save as UniCode, but will directly go to the saving window and let you set the CharSet and CodePage for conversion.
The problem may be if DEFAULT_CHARSET has a different value for French Windows XP. To be sure, select ANSI_CHARSET instead - this changes the CodePage to 1252 and it should be fine.
I know, i was speaking about the 'Ç' character ;) (the same in caps)

ai4spam
22nd September 2005, 14:30
@LeMoi: Both are part of the standard CharSet.

ai4spam
26th October 2005, 13:33
SubRip 1.40 Beta 3 is now up.
ChangeLog:
Added support for negative timestamps. It'll show a warning that some delay needs to be added to synchronize, and start with 00:00:00,000 as the first subtitle timestamp.
Added support for using the file offsets from .idx files. It does not seem to help with badly-formed subtitles and screws up some good ones, as the file offsets seem to be bogus, so it's not on by default.
Fixed a few bugs.

fight2win
29th October 2005, 04:15
pls pls pls re-upload that char matrix that works with 90% of dvd's, i badly need it!

ai4spam
30th October 2005, 03:15
There's a mirror (kindly provided by FoxyShadis): http://foxyshadis.slightlydark.com/random/CharMatrix.rar

fight2win
30th October 2005, 09:19
thanks!

JnZ
7th November 2005, 18:15
Hi,
I have big problem with SUbRip. When I rip czech subtitles, program ask me to save it to UNICODE or not, but I don't want unicode, because it's sux. So I chose NO but what now. Which charset to select? I try 1250 or 1252, but with even one cant' save right format. With first, instead character "č" it saves "e", and second instead "ř,ů,...." it saves "r,u,....".

Beee, I wanna old SubRip without unicode, but new features...
:thanks: for any ideas...

EDIT: I found, where is the problem. Because I'm using my old-saved matrices,that maybe isn't saved as unicode...

ai4spam
8th November 2005, 00:07
Well, as per your edit, go through your "old" matrices (which are, BTW, updated to the new format automatically), and manually correct the "wrong" characters.

JnZ
8th November 2005, 13:39
Well, as per your edit, go through your "old" matrices (which are, BTW, updated to the new format automatically), and manually correct the "wrong" characters.
Hm, thx, but browsing and correcting about 200 matrices are litlle suicide. I make some convertor from source codes instead.

BTW: In the last time I rip subs from about 30 DVDs, your matrices can't cover any single case. But my matrices covers 95% cases. So they are very valuable for me. :-)

svcdprayer
9th November 2005, 13:34
Hello!

Charmatrix works perfectly but the problem is when i want to save and choose ansi charset 1250 to save i get the problem in saved file for character "i" i get "!" and for italic i get 0 instead of o.

But in previous versions when i had to enter chars for matrix there wasnt option to save charactherset.

Is there any workaround so it can be choosed only codepage and thats it ? Since charmatrix from ai4spam is perfect

Thanks for any suggestions!

ai4spam
9th November 2005, 19:46
@JnZ: Well, you probably use the option to search in other char matrices, and you have many small ones. You should have had them all in one, and only start a new one when the big matrix wasn't working. BTW, if you use alphabetical sorting, correcting them shouldn't be that hard. How do you choose the right matrix out of 200, anyway?
@svcdprayer: Hmm, "perfect" is a little too much. The problem is not the charset you save in, but the OCR sesitivity. Try setting it to 1000. If you still get problems, then somewhere in the matrix you have an "!" instead of an "i" and so on. Use alphabetical sorting (click on the column heading to sort) and look at all the "!", one of them must be wrong. The "0" vs "o" problem may not be solvable, since characters otherwise identical may mean different things in different DVDs. For that, I'd run a spellchecker (Word or SubtitleWorkshop) on the final text.

JnZ
9th November 2005, 23:56
How do you choose the right matrix out of 200, anyway?

It's easy. Only click on "Search for Match" and program serch all matrices, I have. When it find some one, I test it, and if some next chars are different, I use next one...etc. When almost chars are OK, I fill in some missing chars, then save to this matrix.

So I have many matrices with diffrent charmaps. Matrices differs, but contains only one charmap. I don't have problem with bad-recognized chars.

ai4spam
15th November 2005, 00:40
I don't have problem with bad-recognized chars.
Well, I think you've been lucky. The search for char in another matrix feature just explores all the matrices in the directory. If one of them happens to contain a char that's wrongly recognized in the context of a new DVD, you'll still get in trouble.

masken
28th November 2005, 17:13
@ai4spam, have you worked anything on the "whole words formatting only" issue? :)

Two other things I've come to notice:
If the vobsubs are smaller than usual, the words often get stuck together if you don't manually adjust the Space Width setup. Nothing strange in itself, but actually, vobsub could do a pretty good guess at the space width setup automatically by checking the medium character height in a vobsub picture when OCR:ing an adjust this according to a table or math function etc. What do you think about this? :) Check your PM's for an example on this.

Another thing in the post-OCR check... I think there might already be something similar there, but I'll post about it anyhow. Since the pre-extend selection period, one often missed parts of certain characters (especially when in Italics) when OCR:ing, and many still haven't got the habit of extending a selection since they think most of the character is covered. The post-OCR check could automatically replace these character combinations:
.! > !
!. > !
?. > ?
.? > ?
.: > :
:. > :

ai4spam
29th November 2005, 10:46
@masken:
1) It wouldn't be that easy, because there are other factors involved, and kerning is different from font to font, from regular to italic to bold, and so on.

2) You can do those yourself by editing the "English_screwed.dic" file or creating a new one.

PS: A new version will be up soon, but my time to work on it is limited.

zuggy
29th November 2005, 13:28
.! > !
!. > !
?. > ?
.? > ?
.: > :
:. > :

Beware of .! > !, .? > ? replaces.

What about this sentense:
[Mama] Wash yours hands...!
[Good son] Should I do it today...?

The other replaces you suggested are already covered by postocr correction.

Mtz
4th December 2005, 04:16
There is a bug in English at the Post OCR Correction.
For example: Wasn't
Become: Wasr't

enjoy,
Mtz

ai4spam
4th December 2005, 12:37
There's an error in Dict\English_screwed.dic. Just delete the following 2 lines:
n'
r

LeMoi
4th December 2005, 22:20
Subripping of idx/sub extracted from an mkv file is really weird
http://lemoi.fr.free.fr/sub_fr.rar
idx/sub are correct, but after subrip, timecodes are messed up :o

johner23
5th December 2005, 12:36
Hi, dear all.

I have tryed to rip subtitles from an extra dvd edition and got some problems in OCR.

I final, Subrip can "extract" all of the subs in bmp without problem ( about 400 bmp's files showing all the speeches). But, when I try to rip to srt text, Subrip can't read directly.

There is a way to correct that in Subrip? Or maybe using Ifoedit ( or other tool) to create a new ( dvd pallete) file that can be better read by Subrip later?

And, for additional future request to add, can Subrip in future be able to read/rip/save in SUP/srt and vice-versa formats, just the way I got subtitles when I demux in dvd rip extraction usind DVD-D and similars rippers?

Thanks.

ai4spam
5th December 2005, 15:26
@LeMoi: I don't understand what you mean by "messed up", the subtitles you sent work fine here.

@johner23: You'll have to give me more details than "can't read directly", what exacty does not work? Are the colors in the bitmaps somehow screwed up? Can you send me the index file and a couple of bitmaps?
By the way, if at all possible, use vsRip from http://guliverki.sf.net for ripping into idx/sub files instead of bitmaps.

johner23
5th December 2005, 16:07
Are the colors in the bitmaps somehow screwed up

Yes, I guess the original palette dvd color is a problematic case.

PS: it's possible to correct them using Ifoedit or other tool?

If I choose to rip in bitmap way, ok. Subrip give me almost 400 bmp files, which contains all the lines in an image way.

But whe I try to rip into srt-txt file, no way: Subrip can't recognize the colors. So I need to type manually one by one. There is an option that contains 4 basic colors in subrip ( blue, red, black and one other that I can't remember now).

I turn off 2 of them and after that, Sub rip can "read" in part that files. But I need to type all the lines, because Subrip only reconize the times, not the words themself.

Do you want that I send you that file? It's 7Mb lenght.

I've tryed to use Gabest tool, but it seems that fails in extraction. Only subrip could get the times.

Thanks.

ai4spam
6th December 2005, 11:23
Do you want that I send you that file? It's 7Mb lenght.
Sure, go ahead.

johner23
6th December 2005, 12:41
@ai4spam

Again, I tried to rip the sub, but that times, I use the most recent Subrip's version ( the other was a little bit older) and could rip it well.

Of course there was some little parts that I had to correct manually. But, almost 98% was done this time. :)

As suggestion, can you add the same functions similar DVD Subtitle Tools inside Subrip core?

---> http://web.quick.cz/FKasparek/

In the worst case, if I couldn't rip the sub, I would try to demux into sup files using DVD-D or VobEdit and try to conver them into txt using DVD Subtitle Tools.

If we could deal with sup files and edit them, it will be interesting to correct the colour pallete and others aspects in hard ripping cases.

Thanks for your attention.

LeMoi
6th December 2005, 13:16
@LeMoi: I don't understand what you mean by "messed up", the subtitles you sent work fine here.
Didn't you notice any difference between subs in idx/sub and the subripped ones? do sentences match same timecodes?

ai4spam
7th December 2005, 15:04
As a matter of fact, I did. Here are the first and last 3 subtitles, from the .idx and form the result:


id: fr, index: 0
timestamp: 00:00:48:760, filepos: 000000000
timestamp: 00:04:05:120, filepos: 000001000
timestamp: 00:04:08:560, filepos: 000002000
...
timestamp: 01:43:00:800, filepos: 0003ec000
timestamp: 01:43:03:160, filepos: 0003ed000
timestamp: 01:43:05:720, filepos: 0003ee000



1
00:00:48,760 --> 00:00:51,593
blah blah blah

2
00:04:05,120 --> 00:04:08,317
blah blah blah

3
00:04:08,560 --> 00:04:10,755
blah blah blah

...

1127
01:43:00,800 --> 01:43:03,872
blah blah blah

1128
01:43:03,160 --> 01:43:05,116
blah blah blah

1129
01:43:05,720 --> 01:43:07,676
blah blah blah


They look the same to me. Now, I looked at my version of the subs (I have them from another source), and the timings are quite different. It may be due to differences in NTSC/PAL framerates. I suggest you grab the .srt from somewhere else and skip ripping this one with SubRip.

ai4spam
7th December 2005, 15:07
Again, I tried to rip the sub, but that times, I use the most recent Subrip's version ( the other was a little bit older) and could rip it well.

Well, it's always a good idea to get the latest version ;).
As for functionality implemented elsewhere, there's very little chance you'll see it in SubRip. I simply don't have the time, and it doesn't make sense to reimplement something that works well. If it didn't... that's another story.

LeMoi
7th December 2005, 17:13
As a matter of fact, I did. Here are the first and last 3 subtitles, from the .idx and form the result:


id: fr, index: 0
timestamp: 00:00:48:760, filepos: 000000000
timestamp: 00:04:05:120, filepos: 000001000
timestamp: 00:04:08:560, filepos: 000002000
...
timestamp: 01:43:00:800, filepos: 0003ec000
timestamp: 01:43:03:160, filepos: 0003ed000
timestamp: 01:43:05:720, filepos: 0003ee000



1
00:00:48,760 --> 00:00:51,593
blah blah blah

2
00:04:05,120 --> 00:04:08,317
blah blah blah

3
00:04:08,560 --> 00:04:10,755
blah blah blah

...

1127
01:43:00,800 --> 01:43:03,872
blah blah blah

1128
01:43:03,160 --> 01:43:05,116
blah blah blah

1129
01:43:05,720 --> 01:43:07,676
blah blah blah


They look the same to me. Now, I looked at my version of the subs (I have them from another source), and the timings are quite different. It may be due to differences in NTSC/PAL framerates. I suggest you grab the .srt from somewhere else and skip ripping this one with SubRip.
It's not really the timestamps, but the content !
At the end of the subriping process :
http://xs58.xs.to/pics/05493/subrip.jpg
and the content :
Example :
idx/sub : 00:52:38:320 : Pourquoi ils rient ?
srt : 00:52:38:320 : On a la sensation d'ętre amoureux
srt : 00:51:33:680 : Pourquoi ils rient ?
idx/sub : 00:52:49:120 : On a la sensation d'ętre amoureux


is it normal ?

ai4spam
7th December 2005, 19:27
Hmm, ok... so the timestamps don't correspond to the content. It's weird, you can actually just open the .sub file (without the .idx) and still get them "wrong". What tool are you using to visualize the .idx/.sub?
Anyway, I can't really help you, maybe Zuggy can take a look, but my guess is that it's a malformed .sub file.
Again, just go online and get the text subs from some specialized website.

LeMoi
7th December 2005, 19:35
I see the content of the sub with SubResync.
Going online to find subs is not really helpful. If i extract subs from file, it's often to find other subs in other languages and sync them with those extracted so that they match and i add those to original mkv. If extracted subs are wrong, i can't resync them ^^. I talked about this with Mosu and he thought it wasn't ang mkvtoolnix problem, but i think he's wrong, so he asked to see with you...

ai4spam
7th December 2005, 21:07
Well, sync-ing won't help you, since the contents are shifted. What you need to do is get a sub that is "good" from the web (maybe in another language), then open it in translator mode in SubtitleWorkshop, and load the "bad" sub as the translation. Then, the times will be taken form the "good" sub, and all you have to do is save the "bad" sub with the new timings. Of course. SubtitleWorkshop also lets you check if the tranlsation is correct.

LeMoi
7th December 2005, 21:34
OK but it doesn't solve the problem, SubRip still can't process such subs properly ;)

ai4spam
8th December 2005, 11:24
Well, I think one in thousands is a pretty good rate, especially for free software ;).

ai4spam
8th December 2005, 16:44
SubRip 1.50 Beta 1 is up.

ChangeLog:
Added whole words formatting (in the corrections window): if more than half the letters of a word are formatted (italic, bold, underline), the entire word is formatted.
Added support for text formatting in subtitle window: .srt subtitles can now be visualized with formatting (italic, bold, underline, and color).
Lots of other GUI changes: a progress bar for loading char matrices, etc.
Moved to Delphi 2005 (but Delphi 7 is still supported).
Speedup in processing videos when the frames are empty (as in, no white parts).
Experimental Spanish language correction for I vs. l: need help checking if it works correctly.
Updated Swedish language (1.40 Beta 3) by Masken.

Esc
11th December 2005, 06:42
Hey! Downloaded the new version. The new colors look great, I like them.
Didn't have a chance to test any new changes, but I think it would help to have a font where you can tell apart I's and l's as the default.
update Oops! My bad again. They really were all l's. So scratch that and leave just the "look great" part. :thanks:

ai4spam
11th December 2005, 11:46
Thanks for the comments. Actually, the default font (Arial) looks a lot like what is used for most subtitles. The reason I chose it, however, was because it's the only on that has the entire UniCode set. You can easily set your own font if you don't do subtitles in "esotreric" languages.

hawk123
12th December 2005, 15:31
Hey, ai4spam

TQ for sharing this great and little program.

I am new to this Subrip program.

I would like to know how can I change the color palette when I want to extract subtitles from DVD (ifo/vob files) to bmp format (sonic scenarist or spruce DVDMaestro) using Subrip. It seems that whatever color I choose the program just doesn't change it. It still sticks to the color set of red color background, blue text and white outline.

:thanks: TQ in advance.

P/S: I can change the color palette if I save it to other format (I-Author, Philip SVCD Designer, Sonic DVD Creator and Pinnacle Impression).

Esc
12th December 2005, 16:42
I actually found something I don't quite like. That strange file name suggestion. Okay, I understand when it gives some default name based on vob name. I don't think anybody would ever want to really save their file as vts_01_02English.srt. But okay, I can always change that. No problem. But then the new name doesn't stick. I am splitting the newly ocr-ed subtitle in episodes, and I want them to be named "Magic User's Club OVA 01.srt", "Magic User's Club OVA 02.srt", "Magic User's Club OVA 03.srt" and "Magic User's Club OVA 04.srt". So if the name were sticking I'd have to change only one char. But I still can handle that. Then I am done with splitting and start fine-tuning the timing. I open each file in the small window at the bottom, shift the timing until I am comfortable with when the subtitles appear and save the file back. And it again gives me that vts-based name instead of the one I just opened it with. This is where I crack. :)
My suggestion is: let the name stick. Use the one from the last save/open action.

johner23
12th December 2005, 17:57
Maybe @hawk123 wanna do similar thing that I am trying to do:

---> http://forum.doom9.org/showthread.php?t=103925

If I could change the palette colors from IFO files / BMP in some problematic OCR cases ( which ones Subrip could'n read them properly), perhaps after that editing could become "readable" these IFO/ BMP than original ones.

If it is possible, how to proceed and which program to use in this process?

Thanks.

ai4spam
12th December 2005, 20:23
@Esc: It'll be taken are of.

@hawk123: I'm not familiar enough with the bmp format, I'm afraid I might break some specs if I change stuff. Zuggy?

@johner123: A lot of the cases when SubRip fails to OCR can be taken care of by selecting just 1 or 2 colors instead of all 4. Sometimes there still are problems (such as incomplete characters showing up). The rule of thimb is: if an incomplete "piece" is part of a character that has already been recognized, press Enter in the OCR form to skip it and any other fragments like it.

hawk123
13th December 2005, 02:38
@hawk123: I'm not familiar enough with the bmp format, I'm afraid I might break some specs if I change stuff. Zuggy?


Do you meant that you have developed the program in such way that its color palette can't be changed when it save the ripped bitmap subtitles in sonic scenarist and spruce DVDMaetsro format?

@johner123: No, what I am trying to do is save a bitmap format subtitle, it's nothing to do with OCRed subtitle. So far, as my own experience, Subrip have done the OCR job pretty good with all my DVD subtitles. But, I would prefer to carry the OCR in SubResync included in Vobsub. It is simple and no color setting. However, it's a bit frustrated to key-in every single letter everytime someone want to OCR cause there is not saved chr matrix feature. Once the program is closed, all your hard works and time spent before are gone.

ai4spam
13th December 2005, 15:25
No, I did not develop that part. It would be "easy" enough to change, but the problem is... what if some other application expects them just the way they are? That means I'd break the specs.

And... it baffles me why you would prefer something that frustrates you.

hawk123
13th December 2005, 17:26
TQ for your quick reply.

Perhaps I should tell you what I am going to achieve. Then, you might able to provide me a head.

Pls refer to this post (http://www.videohelp.com/forum/viewtopic.php?t=287069).

The reason why I don't want OCR the subtitle is because it's a Chinese subtitles. It will take me a lots of time and energy just to OCR it. It is almost like I am redo the typing of all the text in the subtitle.

I am just finding an easier way to add a few lines to the current subtitle.

I just notice today the timecodes for the subtitles I got from Subrip are quite different from that I got from idx/sub file. ( I save a copy of son file from Subresync and Subrip respectively and compared them ). And I would say that the idx/sub has a closer timecode with the original DVD. Thus, it has some progressive lag when I play the new DVD after muxing the subrip created subtitle.

Pls advice.

TQ

zuggy
13th December 2005, 18:04
You are right, vobsub gets the best timecode. Subrip forgot to take "some" very small delay into account ATM, and in addition to, SR does only process PGC1. I have to fix it, but no time...

Now, it's recommended to vobsub dvd first (if you need accuratest timing) and then ocr it using subrip.

ai4spam
13th December 2005, 19:34
Well, you two sort it out, I'll stick to my hardsubbed videos and other things like filling the matrix and so on ;).

gubi-gubi
30th December 2005, 00:18
Ok here's my problem (it's really stressing me out now lol!). I've downloaded 1.50 from lots of different sites so im sure it's not the file im using so here goes...

I do the normal ripping process untill it's finished and all my subs are in the black text box. I go to save as then the bit below the menu flips to ANSI options. They look fine (default and then other latin) so I go to hit the save box to the right then the menu flips back so I even go to click the save as disc button there but then it flips back to the ANSI menu and so on and so on. The save as dialogue doesn't come up like it did on other versions... What's going on?

ai4spam
30th December 2005, 05:34
I have no idea what's wrong, I just tested it and it seems to work fine here.
Try this: open the subtitle window, then go to file-open and open some subtitle file. Try saving it and see if the same thing happens, and let me know.

gubi-gubi
30th December 2005, 14:03
I have no idea what's wrong, I just tested it and it seems to work fine here.
Try this: open the subtitle window, then go to file-open and open some subtitle file. Try saving it and see if the same thing happens, and let me know.

Ok I've got it working. I'm running it with compatability for Windows 95. It also shows more subs this way wereas if run normally the sub wouldn't show at all on manual input but here I can make out what they say. Any ideas why I can only get it to work this way? Is there some settings on my computer interfering with it?

ai4spam
30th December 2005, 21:16
Hmm, it may be due to the switch to Delphi 2005. I may switch back to Delphi 7 if more users report this.
As for seeing the subs properly... there are weird things going on with the bitmap pallette. I'm looking into fixing it.

awx
31st December 2005, 00:15
Hi,
I just wanted to report a strange thing I found after using 1.50 b1. My final SRT file contained this line after running the correction feature on it, using the new whole word formatting option:
- Blah blah blah?
- A</i> <i>blah blah blah.</i>
Notice that there is no opening <i>.

I went back and reran Subrip on the idx/sub files and the uncorrected text is:
- Blah blah blah?
- <i>A blah blah blah.</i>
Then rerunning the correction produced the bugged output.

SubRip 1.50 b1 also seems to be staying the frontmost window and blocking my attempts to click on another window's non-title bar area (such as Notepad) after the process of saving the SRT file.

If you need more details about the problems that I am seeing, please ask and I will do my best to elaborate. Keep up the good work.

ai4spam
31st December 2005, 03:07
Thaks for the bug report. It's fixed in the new version, to be uploaded shortly.

awx
31st December 2005, 06:30
Very quick debugging. Would you please consider posting MD5Sums for each release? I also have a hard time getting complete downloads from your site.

prubin
31st December 2005, 10:51
Hello and thank you for a great program.
I was wondering if there is a solution to common spelling errors through OCR: often I find that words like 'weren't' come through as 'werert', 'mustn't' come through as 'mustrt', and 'won't' come through as 'wort'. Is there any way to automatically correct these common errors?

ai4spam
31st December 2005, 14:49
@awx: Use one of the mirrors.
@prubin: Edit Dict\English_screwed.lng

ai4spam
31st December 2005, 14:55
SubRip 1.50 Beta 2 is up. I guess it's safe to say it's the last one for this year ;).
ChangeLog:
Fixed the detached chars problem.
Fixed UniCode support to preview CodePage changes.
Other bugfixes.
Some changes in the video GUI.
Reverted to Delphi 7.

@gubi-gubi: Can you please confirm if this version still needs to be run in Windows95 compatibility mode?

prubin
31st December 2005, 15:33
Thank you for your reply. Does the program automatically use the English_screwed.lng file? Or do I have to somehow load or run it???

@awx: Use one of the mirrors.
@prubin: Edit Dict\English_screwed.lng

ai4spam
31st December 2005, 20:37
It uses whatever you choose next to the "correct ortography" check box. So, you can write your own file.
Careful for things like "wort"->"won't", which leads to "worth"->"wont'h" - put spaces at the end. This example is already done in the latest version.
Mail me the file if you make signifficant additions to it, and I'll include it for everybody.

gubi-gubi
2nd January 2006, 21:35
@gubi-gubi: Can you please confirm if this version still needs to be run in Windows95 compatibility mode?

Save works normally now thanks! Although still can't see some subs that require a manual input. Is there any settings to improve them that I might of missed?

ai4spam
3rd January 2006, 01:33
You mean the sub has the same color as the outline or something? Can you send me that particular sub file (email is in the manual)? Thanks.

Mikele
3rd January 2006, 09:57
Is it just me or splitting a sub using an AVI file doesn't work? I've gone back to 1.30 and it works fine, but with 1.50b2 I cannot find the 2 files that it's supposed to save.

ai4spam
3rd January 2006, 10:24
Indeed, the splitting is broken. It'll be fixed in the next beta.

Dreassica
3rd January 2006, 13:24
Somehow whatever I try, It won t let me save me to any subtitlefile anymore. if I choose Save as.. and press the button, all it does is go back previous menu, witout any saved ssa/srt or whatever in sight..

ai4spam
3rd January 2006, 15:33
@Dreassica: Are you using the latest version (1.50 Beta 2)? If not, please get it and report back. Again, the desired behaviour is for a save dialog to show up when you press the "Save" button after you're satisfied with the conversion.
Also, please look on the previous page of this topic, another user reported similar issues with 1.50 Beta 1 that he fixed by setting it to run in Windows 95 compatibility mode. He says the problem is gone in Beta 2.

Raithmir
3rd January 2006, 19:16
Any chance of a mirror? Downloading is very slow for me ~1.5k/s and I've downloaded it twice now only for a CRC error extracting the exe file. :(

riggits
3rd January 2006, 20:38
SubRip 1.50 Beta 2 is up. I guess it's safe to say it's the last one for this year ;).
[...]

no worries, it'll take 8 months b4 downloads complete anyways ;)
how about using rapidshare.de as a mirror?

ai4spam
3rd January 2006, 20:47
Some of the mirrors listed on the page have the latest version (FreeCodecs and AfterDawn to say just 2). Just go and get it from there.

Raithmir
3rd January 2006, 20:58
listed on which page? Have a link?

riggits
3rd January 2006, 21:21
Some of the mirrors listed on the page have the latest version (FreeCodecs and AfterDawn to say just 2). Just go and get it from there.

no idea where the mirrors are listed but a quick search revealed this beauty:
http://www.afterdawn.com/software/video_software/subtitle_tools/subrip.cfm

thanks!!

Raithmir
3rd January 2006, 21:24
no idea where the mirrors are listed but a quick search revealed this beauty:
http://www.afterdawn.com/software/video_software/subtitle_tools/subrip.cfm

thanks!!

Cool, thanks :)

ai4spam
3rd January 2006, 22:37
listed on which page? Have a link?
On the download page of SubRip, on the official site, at the bottom, it says:

Other download locations:
Doom9.org / DVD.box.sk / DivX Digest / AfterDawn.com / Softpedia / Free-Codecs.com ... English
Unité-Vidéo Board ... French
Freeware World Team ... Galician

The links are there for the taking. And they're usually pretty fast to mirror new releases.

giannid
4th January 2006, 05:06
Sirs, I have noticed a problem when ripping portuguese subs. The problem involves having a high accent on the bottom of 2 lines. This involves an accent on a capital letter, such as É or Ŕ

Example:

Eu sei.
É uma garota.


Subrip will either do one of several things:

1) read that accent in the bottom line (É) as the first character in the top line

2) merge the accent into the first character on the top line

3) will require that the subpicture be typed in manually.

4) or it will read it correctly

ai4spam
4th January 2006, 09:05
Well, depending on the font, that accent is grouped with the line it is closer to. You can influence it a bit by setting the "Min. inter-line height" value in the "Advanced OCR setup" window.
It is possible to do something a bit more intelligent, but I don't have the time to do it.

ai4spam
6th January 2006, 04:24
SubRip 1.50 Beta 3 is up.

Changelog:
- Fixed saving bug for split subtitles
- Fixed video no longer working bug
- Added a progress bar for loading char matrices
- Updated ortography dictionaries to UniCode

Kurtnoise
6th January 2006, 17:20
Hey,

@ai4spam : what about adding new output subtitles formats (gpac ttxt and quicktime) ? Do you have some plans to add this ? I began some stuff for gpac ttxt but from the sources of the 1.4 beta. It's ok for you or do you prefer that I start with the 1.5 branch ?

ai4spam
6th January 2006, 22:59
Finally someone else wants to do some developing! Yeeey!
I have no such plans, since I have no time. I'd rather work on things like accents and diacritics, and hardsubbed videos. So, knock yourself out!
Some of the changes I made between the two versions were in Unit03, where all the subtitle formats are, so you'll need to use the latest version of it. If you keep the changes localized enough and mark them clearly, I'll make sure they get into the next version.

Sajan
7th January 2006, 11:04
Maybe bug....
1.Open hardsubbed video
2.Play,Pause -> Run enabled
3.Run,Stop -> Prev enabled
4.Click Prev (with subtitle count =0) -> Video file viewer scroll moves to the end, Exception occurs

Kurtnoise
7th January 2006, 11:11
I have no such plans, since I have no time. I'd rather work on things like accents and diacritics, and hardsubbed videos. So, knock yourself out!
ok...just a suggestion : have a look on the ď french special character...detection sucks. But this is not related to your changes. We have this problem since the beginning.


@Sajan: bug confirmed...:)

ai4spam
7th January 2006, 13:37
@Sajan: I noticed, just forgot to take care of it.
@KurtNoise13: Until then use "take with next", that's what it's there for.

ai4spam
7th January 2006, 14:22
A request: would someone be willing to mirror the hardsubbed avi guide? It loads very slowly, and probably starves the bandwidth for the software downloads. Drop me an email (it's in the SubRip manual).

Thanks,

johner23
7th January 2006, 14:35
@ai4spam:

I am ripping some specifical movies here and find some specifical Monetary Symbols to rip. Can you add some of them to put into Subrip as standard?

See some monetary symbols that you could put into Subrip, like "Ł" - Pound sterling ( I had to find these in some sites on internet and copy / paste them to put in my subs before save my final srt) or euro, for example.

---> http://en.wikipedia.org/wiki/Talk:Pound_sterling

---> http://en.wikipedia.org/wiki/Pound_Sterling

---> http://www.typography.com/catalog/hoeflertext/altchar.html

---> http://www.paratype.com/help/term/terms.asp?code=226

---> http://www.microsoft.com/typography/developers/fdsspec/monetary.aspx

---> http://www.microsoft.com/typography/developers/fdsspec/monetary.htm

And there is some other symbols, like in Math or measure/conversion numbers and scales, can you just add or find a way to add in some cases, for special OCR cases?

Of course, they are very rare to appear on subtitling scene, but it happens sometimes. :)

Thanks.

devil (johner)

ai4spam
7th January 2006, 14:57
All you have to do is add tem in the Punctuation section of CharMaps.ini. Edit it with NotePad, and paste them in there, then they'll show up in the Punct. row of the table.
Beware, though, they are UniCode chars, so you'll probably need to save the subs as UniCode. That's why, although there is a character for the "note" used to show songs, I use "#" instead.
As for Math and the like, just make a new "language" called "Math" in CharMaps.ini, and type in all the characters after "Small=", separated by "*".
If you do this, please send me the resulting CharMaps.ini file to share with everybody.

ai4spam
7th January 2006, 16:55
@KurtNoise: If you're adding new output formats, don't forget to change everywhere: Unit3 for saving, Unit13 for options and converting, UConfig for loading/saving settings, etc.

johner23
7th January 2006, 18:04
Ok, then... :)

And what about musical symbols like that above?

---> http://www.dolmetsch.com/musicalsymbols.htm

so you'll probably need to save the subs as UniCode. That's why, although there is a character for the "note" used to show songs, I use "#" instead.

Only using Unicode I can reproduce music symbols and similar ones properly in my subs? No other way?

I am asking that because I always use "srt" format to save my subs. These sub format has some limitations about that issues, then? :(

Ah, just another subtitling question...

I saw one videoclip from an rapper singing in jamaican patois style. For those who listen Snow ( performing the song Informer), knows what I am talking about.

The guy sang so fast that the TV editors must have to create a "different type of sub" to show correctly the letters on screen. They create a rolling bar that, literally, rolling on the video showing the lyrics from the music.

It was very, very fast. We have some difficult to follow with our eyes too.

Do you know if exist any sub format that can handle or create some kind of effect on subtitles? Or I wil need to use some professional Video Editor like Adobe Premiere, Sony Vegas or similar to create such effect and hardsub the subs to the video later?

Thanks.

devil (johner)

ai4spam
7th January 2006, 19:53
Well, VSfilter UniCode supports UniCode .srt files, so no problem there. It'll be a while until it is universally accepted though: basically all the utilities will need to learn how to deal with the new format. As for "reproducing", well, the result is like using Word as your music editor. Not really what you want, is it? I think bitmapped hardsubs are the best way, unless osmeone comes up with some format that is universally accepted.

You can simulate rolling subs by displaying different parts at any moment. I think SubtitleWorkshop lets you "decompose" a line into parts (the Effects menu). However, you need breaks in between, so that lines can be decomposed properly. I know of no utility that does this right now. Maybe you should write one ;). Here's an example for "The quick brown fox jumps over the lazy dog":

The quick brown
he quick brown
e quick brown f
quick brown fo
quick brown fox
uick brown fox
ick brown fox j
ck brown fox ju
k brown fox jum
brown fox jump

...and so on
Timed properly, this does what you want. There are sub formats for karaoke (not sure which) that have 2 text colors and show text being colored while the song goes on, but this thread is not the right place to about them. I'm sure there are some knowledgeable people in the parent topic group.

johner23
8th January 2006, 14:21
Thanks for helping me, ai4spam. :thanks:

Maybe TitleDeko Pro can create some scrolling/rolling "video" text bar, that can subtitle very fast speeches during one video clip, for example.

---> http://www.pinnaclesys.com/PublicSite/us/Products/Consumer+Products/Advanced+Video/Plug-In+Edition/TitleDeko+Pro.htm

The only problem is that HOW to time that, because I think "srt" doesn't support this kind of features. I dunno. I will try here some experiments and looking some other advices with some people who works in Karaoke/animes fields and video editing too.

Well... concerning about SubRip, I have some videos in my home that have a very hardsub white pale subtitles to "extract".

Any special set to do it in Subrip? I ask that because the golden/yellow ones are pretty much easier to be OCR'ed than the white ones. Specially if the scenes are very clear too.

One more thing: there is a way to "accelerate" ( get faster) the process of ripping/reading harcoded subs in Subrip? Ripping DVD's is much faster, a question of few minutes in some cases.

I know that reading/OCR in AVI's and similar ones are much more complex than one from separate streams like in dvd's. But, maybe, you can find out some way to improve the reading speed or something like that.

PS: for your experience, one movie that has 2 hours lenght takes ( generally, of course, because it depends case by case) how many minutes/hours to OCR a hardsub from it?

Thanks for your program. Very, very useful for me. The last week I use it more than 10 times !!! ;)

devil (johner)

ai4spam
8th January 2006, 15:51
Of course .srt supports timing. As per my example above, one line becomes 10 lines, each with 1/10 of the initial duration.

Unfortunately, if the subtitles don't have an outline, any program will have a hard time extracting them. Try AviSubDetector too, if you can figure out the options - it lets you do a lot more tweaking, and its detection methods may work better for some particular cases.

Accelerating is possible, but I don't have much time to do it these days. I have a few ideas to make it work faster. The bottleneck isn't in the processing, it's more in the fact that chars with minimal differences are not recognized, and SubRip asks you to type them in again. You can try to lower the OCR sensitivity, then run the whole thing through a spellchecker at the end. I can usually rip subs from a 2-hour movie in 1 hour, even faster depending on the quality of the subs.

ukendt
9th January 2006, 14:30
For several reasons, this thread is going to be unsticked. We'll start a new, sticky one

ai4spam
9th January 2006, 15:47
We'll start a new, sticky one
...when another beta is up. No telling how soon that will be, though ;).

ukendt
9th January 2006, 20:19
:thanks: (for the specification although I wasn't going to tell anyone anything:D

ai4spam
10th January 2006, 00:17
I didn't want anyone refraining from posting bug reports because they had to wait for the new thread ;).

Paulcat
14th January 2006, 01:27
I tried ripping subs from an old dutch film, and what would happen was that the letter in question (I started with a blank character matrix) would appear with a red box around it, but the rest of the subtitle bitmap would not appear in the main window.

I had some difficulty distinguishing a capital I from a small L without the rest of the words visible and as a result had a lot of editing to do. Anyone else have the same problem? BTW the 'display subtitles' box was checked...

Paul

ai4spam
14th January 2006, 15:07
It's just the color palette in that particular subtitle. Can you send it to me (look up my email in the manual), maybe I can find a way to deal with subs like it?

SpellCaster
23rd January 2006, 13:45
Hi everybody, good day to all!
I've checked out latest SubRip version just yesterday (previously I was using ancient 0.9 ver.). There's much improvements since that version, but I've found some problems with new one.
1. Window labels have VERY small font! I had to get much closer to monitor to read them :(. Especially it applies to Subtitle combobox.
2. When ripping, main window doesn't keep its size/position. At some moment (i believe when the one VOB is finished and a new one started) window returns to default placement, whatever placement/size it had before.
I'm now downloading source, maybe i'll tell where this bug located.
3. The red blinking of "Enter Char" window is REALLY annoying! This window has a lot of buttons, fields and stuff, and i was just studying them but red blink almost drove me mad >:-[. It would be nice to have an option allowing to turn the blinking off.
4. I didn't found an option to set inter-character distance. In Russian, letters are often flowing together and SubRip considers that 2 or even 3 chars are one.
5. I've tried to fill the matrix using some font, but nothing was filled, although subtitle font was like Verdana. Maybe i did it wrongly?
6. (trifle or maybe my OS bug). Scrolling in window where text is stored does by strange way. When scrolling (with mouse wheel) down, it seems like scrolling up and then down 8-|

Best regards, SpellCaster.

bourtzovlakas
23rd January 2006, 13:53
1)You can raise the font size...
3)You can disable it from Options-->Global options-->Wake me up:untick
4)Options-->Advance OCR setup-->"Space width setup" and "character setup"

ai4spam
23rd January 2006, 15:52
2) I usually do .idx/.sub files, so I never noticed this. Let me know if you find the bug.
5) Is currently being improved (I got a new, automatic version in the making). But, in a nutshell, you need to select some UniCode ranges that will appear in the "characters to fill" box.
6) You may have peoblems with your mouse driver settings as well (there's a setting telling it how many lines to scroll). Also, the "V" checkbox tells SubRip to always scroll to the last line when adding a subtitle, and that may conflict with your manual scrolling.

SpellCaster
25th January 2006, 14:49
Thank you for answers!
1. You mean, set font size in Delphi and then recompile?
2. I will take a look at the code
3,4. Thanx, i got it

ai4spam
25th January 2006, 16:01
1) There used to be an option that let you set the interface font and size. I'll think about reintroducing it in the next version. Meanwhile, you can tell Windows (Desktop->Properties->Appearance) to scale up your fonts. Or... get a pair of glasses ;).

ToS_Maverick
26th January 2006, 13:43
hello!

i've been using subrip for quite a while and it's great!

there is one major improvement that i'd like:
is it possible to select which subtitles should be ripped and where they are saved? it's a pita-work to select each subtitle track, wait for it to be finished, save it, clear the text, reset the time-count and start to rip again.

it would be nice to set everything up and let the pc do the work.
i know that i still have to enter the correct characters if SubRip doesn't know them, but after 4 or 5 episodes almost all characters are known.

ai4spam
26th January 2006, 16:04
SubRip supports comand line interface. Just read CLI.txt for details.

ToS_Maverick
28th January 2006, 10:46
yeah, i tried it,but i need .srt files!

what i've seen so far, subrip doesn't work with CLI + OCR?

ai4spam
3rd February 2006, 06:07
Indeed, since SubRip assumes that the need to type in characters defeats the whole purpose of the command line interface (no interaction). As more featurea are added (better OCR, planned in the next version), text output for CLI may be implemented, but I don't have any time for it in the near future, so I can't tell you if/when it will be done.

ToS_Maverick
6th February 2006, 12:23
thank you very much for the information!

with your character-matrix, text output shouldn't be a problem ;)

jmk
7th February 2006, 10:55
ai4spam: would you be so kind and put your char matrix file online again? its hosting period seems to have expired...

thx for the great program!

jmk

CoNS
7th February 2006, 14:12
Try this:

There's a mirror (kindly provided by FoxyShadis): http://foxyshadis.slightlydark.com/random/CharMatrix.rar

ai4spam, you may want to correct the links for the charmatrix at the subrip homepage etc.

jmk
7th February 2006, 14:23
sorry,
should have probably read through the whole thread... i came from the subrip homepage.

thanks for the link / mirror!

jmk

foxyshadis
8th February 2006, 17:20
Of course, if you ever need me to update it, just PM me! It's about six months old, I have no idea if it's changed at all in that time...

promitheas
8th February 2006, 20:46
" I didn't found an option to set inter-character distance. In Russian, letters are often flowing together and SubRip considers that 2 or even 3 chars are one."
I agree with Spellcaster, the same happens in Greek language.

ai4spam
9th February 2006, 01:36
@foxyshadis: Thanks a lot for all your help. Not much ahs changed in the matrix since the last update. It would be great if you could mirror other stuff as well, such as the hardsubbed video ripping guide.

@promitheas: Space width setup in Advanced OCR options will do that for you. Bear in mind that if the letters are "glued" together, there's no straightforward way to separate them.

ericf
11th February 2006, 20:22
Hello. Sorry to say this but I've not been able to make this work with any of my files. The OCR feature simply doesn't work for me. I can't get the selections to work for more than one subtitle ( it seems the subs move up and down all the time), I can't make the program fill in the background in any color but red (it's never black and white), fatten text doesn't take care of fonts with thin bends (like Times New Roman). I got the program to find and react to the first appearing subtitle at some point with one file but when I paused adjusted the parameters to make it read the subs better (broken subs) and started over the program didn't detect any subs at all.

And then, if I did get some of these right, the process is very slow.

Am I doing something wrong here or is this what people have to cope with all the time? I know that subrip doesn't know back from front when it comes to characters with broken parts. And I have no way of making my subs appear fully even with fatten text.

Another thing. If I wanted to exit from the ripping window and go back to the startwindow of subrip, how do I do it? I can't shut down the window since there is no close button and no X.

Thanks.

ericf

ai4spam
12th February 2006, 05:52
If the subs move, don't check "Fill sides" or "Draw lines on top". The background may be red because you tell SubRip to use the outline color, which happens to be close to whatever else is in the image. Try adjusting the color tolerances. And look in the status bar at the bottom, it tells you what to do. You have to click a second time to define the outline color. As for the processing being slow... it is the best it can do at the moment, and I don't have time to improve it in the near future, sorry. You may want to try AviSubDetector as well, it may work better for a particular movie.
And... to exit, press Stop, then Close. You can also use the Pause button to change some settings, Resume will go back to the first frame of the current subtitle.

ericf
12th February 2006, 08:08
Thanks for the tips. I will try to work it out.
I have used AVISubDetector for about a year and I'm quite happy with it's detecting abilities. The OCR is quicker but when fansubbers use different outline colors depending on viewpoint and sometimes different fonts it's quite difficult to OCR no matter what program you use.

Thanks again for putting in effort making this program.

By the way, how do I make an Avisynth script for an mpg file (or any avi file as well) and open it in AVISubDetector? The problem is that the video is shown upside down and the flip command doesn't work for the program.

Do you know? I've tried to get an answer from the creator of that program but failed.

ericf

ai4spam
13th February 2006, 05:07
I'm not that familiar with it myself. SubRip just uses 2 commands, depending on whether the movie is an .avi or another type. If it's anything but .avi, it'll open it using AviSynth DirectShow interface. Look in the SubRip directory for the file named temp.avs, that's what SubRip writes commands into and loads.

Kurtnoise
14th February 2006, 17:40
@ai4spam ::

Hi...;)

I've got a question for development : do you know a way to convert bmp files ? I mean to change the colors (I've seen graphics unit but...) and especially to have the alpha channel ?

[edit]: hihi, I found something (http://members.chello.be/ws36637/transparent3.html)...

ai4spam
16th February 2006, 02:36
There should be a ton of components on torry.net that support transparency and conversions.

Zerryk
18th February 2006, 20:05
I don't know if I am doing something wrong or there is an error... It seems that it can not open MicroDVD .sub format. Only .srt seems to be working, I didnt test it for other formats.

Steps to reproduce:
- make a clean install of 1.50b3 into a new directory
- run subrip.exe
- show subtitles text window
- create simple test.sub file like that:
{1}{10}aaa
{11}{20}bbb

or take any other correct MDVD .sub subtitles.
- open it in the text window, via drag'n'drop or via File-Open
- an error dialog appears:
Warning
Error in file at Subtitle Nr.1
Ignore and Continue?
[Cancel] [Ignore] [Yes to all]
- None of the buttons helps.

It also does the same error in 1.40 version. In 1.30, there is no such bug, all works perfectly.

--------------------
And some idea for opening and saving the text files: When subs contains some non-7bit characters, the asking for the charset when opening, also when saving, and the warning dialog "Subtitle contains non-standard characters, save as Unicode?" is a bit annoying. In most (nearly all) cases, I'm working with one language only so I dont need always to watch and confirm these settings. I think it would be beter to:
- make these confirmations optional
- duplicate the charset setup somewhere in program options
- remember it for next program run

prubin
22nd February 2006, 00:35
Hello, I have been a very happy SubRip user for some time, and while the OCR works great with most .idx or .sub files, every once in a while I come across one that has a few lines in which SubRip seems to want to pick apart each letter in the whole line. For instance it will take a simple word, like 'problem', and break each of the seven letters into two or three pieces. Typically this problem continues until the line is complete, and then the next lines it recognizes fine, until the next problem line.

Needless to say, the problem lines are recognized as gibberish, and I have to go back and extract the sub pictures as .bmp's to manually do the conversion.

Any ideas?

ai4spam
22nd February 2006, 04:57
@Zerrik: I'll look into it.
@prubin: It probably has to do with the wrong colors being assigned (heuristics sometimes fail). Try to assign them manually ("Change colors" button).

prubin
22nd February 2006, 10:41
Thank you for your reply. I'm working with one now that has white characters on a black ground. I don't think changing colors would do anything. Let me know what you think.

@Zerrik: I'll look into it.
@prubin: It probably has to do with the wrong colors being assigned (heuristics sometimes fail). Try to assign them manually ("Change colors" button).

ai4spam
22nd February 2006, 16:10
Well, try changing the colors anyway, see what it does, if anything. The colors you actually see may have very little meaning (for example, the outline color may look the same as the text color). Oh, and use the Extend Left and Extend Right buttons to bring together "disjoint" characters as a last resort.

prubin
22nd February 2006, 17:25
Thank you. I did as the 'Change Colors' box suggested: "leave background and all outlines unchecked. This setting will verride the built-in autodetection." and amazingly, it worked! No split characters, and no garbling. Thanks for the tip!

I don't see the 'Extend Left' and 'Extend Right' buttons; where are they?

Well, try changing the colors anyway, see what it does, if anything. The colors you actually see may have very little meaning (for example, the outline color may look the same as the text color). Oh, and use the Extend Left and Extend Right buttons to bring together "disjoint" characters as a last resort.

zyrill
22nd February 2006, 17:48
I OCRed some vobs and when I select to save the Subtitles, the resulting file is empty except for a lot of empty lines. :s Tried selecting different Codepages, to no avail.

ai4spam
23rd February 2006, 22:08
@prubin: They're the ">>" and "<<" buttons ;). You can also use Ctrl-Left and Ctrl-Right.
@zyrill: Are you using the latest version? What format are you saving in? Does the text show up in the text window?

prubin
24th February 2006, 01:06
Thanks again for your kind reply. Aha, I see the ">>" and "<<" buttons now.....

I am using the very latest 1.50 b3.

I'm saving in .srt format.

And the text does show up, and OCR worked well when I deselected two of the colors (background and outline).

A new question: sometimes when I deselect a couple of colors, I get an Error box, "You have to check 1 or 2 colors!", even though I still have two colors selected. And then I'll re-select the colors, so all four colors are selected, and I still get the same Error box. I don't understand!

Plus, how do you actually change the colors in the four boxes that come up??? I have four boxes, Black, White, Red, and Blue, but they are not labeled as to what they stand for, nor can a change the colors. I can only select or deselect the checkboxes.....

@prubin: They're the ">>" and "<<" buttons ;). You can also use Ctrl-Left and Ctrl-Right.
@zyrill: Are you using the latest version? What format are you saving in? Does the text show up in the text window?

zyrill
24th February 2006, 02:45
ai4spam: using the latest version... text did show up in text window as well! don't know what went wrong - my best guess is the program hickuped when i tried to change codepage to unicode... i tried reading from .vobs-files. the enxt time i tried i just hit save and didn't change the codepage and it worked...

ai4spam
26th February 2006, 05:26
@prubin: Those error messages are old, I never understood them myself, but I never changed them either, afraid not to break something. And... I don't think you can change the colors (click on the big squares, maybe), you can only see the effects of checking them off.
@zyrill: That's something a couple of users have reported since I switched to full formatting the text inside the subtitle window. I can't reproduce it myself. Try using some other text format (MicroDVD .sub, maybe).

JnZ
28th February 2006, 16:44
Tryi'n to open MicroDVD subtitles in SubRip 1.50b3 and 've got this error:

Warning
Error in file at Subtitle Nr. 1
Ignore and Continue?

Subtitles, I'm try to open are standard MicroDVD subs.
{Frame}{Frame}1st line text|2nd line text

J.

ai4spam
28th February 2006, 21:41
@JnZ: Zerrik posted earlier with the same problem. I'll look into it when I get the time. Until then... use something else to convert to .srt

ai4spam
2nd March 2006, 02:16
@JnZ and Zerrik: Add DivxG400 info tags at the beginning, like this:

{1}{1}23.976

A fix is on the way in a new version.

Esc
5th March 2006, 02:28
Hi ai4spam! Haven't seen new releases from you for a while. Are you working on ssa/ass positions support?

Here is a bug that I have just found.
I was ripping subtitles and there was that french e with stuff on top of it in the word "cafe". I picked it up in that new little char map. That was great. Now I am splitting and saving it in parts. SubRip says there are non-standard symbols so why wouldn't I save it as unicode. Wow, that's great too. I say, go ahead, and it does save this part as unicode file that works fine later. But when I save the next part (that does not contain any non-standard symbols now) I get an empty file. It has all the rows (1435 to be precise) but every row is empty, only CRLF. The file is 2868 bytes (I guess, that's 1434 CRLF's and 1 EOF).

Looks like if it recognizes the text as ANSI you cannot save it as Unicode. I hope, you can reproduce that one easily.

ai4spam
6th March 2006, 05:50
Well, due to personal reasons (working on my thesis and a new girlfriend), I didn't have much time for SubRip lately. I'll eventually find time, spring break is just around the corner.

Thanks for the bug report, I'll look into it. The new version of SubRip will save the subs both as ANSI and as UniCode, without asking. Hopefully, this will encourage other apps to support UniCode soon.

sharingan
9th March 2006, 20:31
I am curious, but does SubRip support positioned subtitles or not? I have seen some discussions here about it, and the .srt format examples show x and y co-ordinates for it, but I don't know how to enable the option in SubRip.

More accurately, the source DVDs have positioned subtitles (anime dvds with english text over japanese asian characters in the video). Yet when I use SubRip, these positioned subtitles have no co-ordinate informaiton in the srt file.

Is there a way to enable this, or is it only available with certain extraction methods (I always open IFOs&VOBs directly, rather than IDX+Vobsub). Or do I need to use a different srt extraction tool?

bourtzovlakas
9th March 2006, 21:36
Open the subtitle text window....
Output format-->Set output format...
...choose SubRip and tick Extended Format(with pictures co ordinates)...

GDion
14th March 2006, 22:01
I had many pms from people having problems with DivXMux and its conversion method of vobsubs (idx/sub) to xsub. The problem is that DivXMux accepts the 640x480 resolution for subtitles, making them appear off-center at current DivX players. The method we found is to use Subrip to convert vobsubs to Philips SVCD Designer format and then use bmp2xsub to convert them to XSub (and thus keeping to XSubs the original resolution of vobsubs, 720x480 or 720x576).

It would be very useful if Subrip will be able to convert VobSubs to XSubs - I think it's an easy implamentation to do.

johner23
15th March 2006, 03:59
And for those who wanna find some information about XSubs, follows above the related links:

--> http://projects.gdion.biz/guides/dmfwithxsub.html

--> http://forum.doom9.org/showthread.php?t=89718

Thanks.

ai4spam
18th March 2006, 16:32
@GDion: Unfortunately, I don't have much time for new features. If anyone with some Delphi knowledge would like to help, either Zuggy and I could take care of integrating any changes/publishing them.

Big news: I finally got around to debugging the subtitle remover VirtualDub filter (an extension of DeLogo by Karel Suhadja). It's a bit slow, but does its job nicely. SubRip would need some changes in the hardsubbed video section to make it easier to save bitmaps for subtitle removal. I could also look into the SubPis filter as a way of making idx/sub files, and then saving them as bitmaps for my filter. In the meantime, since the homepage is so slow these days, I'd like to know if there is enough interest for the filter before posting it and/or a guide for its usage. Did anyone actually bother saving bitmaps when they ripped the subs from a movie?
In the meantime, you can use the MSU subtitle remover filter from http://www.compression.ru/video/subtitles_removal/index_en.html

Egh
19th March 2006, 02:33
Big news: I finally got around to debugging the subtitle remover VirtualDub filter (an extension of DeLogo by Karel Suhadja). It's a bit slow, but does its job nicely.

BTW, are there any AVS filters for subs or logo removal? Converting to RGB32 on filtering is not very good idea IMO :)

ai4spam
19th March 2006, 06:24
I have no idea, but... wasn't there some way you could use VDub filters in AVS?

Egh
19th March 2006, 21:59
I have no idea, but... wasn't there some way you could use VDub filters in AVS?

Of course. But that still requires conversion to RGB32 and then back. Very inconvinent and waste of CPU, imo :)

ai4spam
20th March 2006, 00:55
Unfortunately, I think that's how VDub filters were designed, to work on RGB32 frames.

Egh
21st March 2006, 01:53
Unfortunately, I think that's how VDub filters were designed, to work on RGB32 frames.

legacy filters yes. But iirc the dev does new filters model for 1.7.0 or so, removing some constraints.

Any chance from you making your filter's AVS build as well? In, YV12, of course :)

promitheas
21st March 2006, 09:22
<<Did anyone actually bother saving bitmaps when they ripped the subs from a movie?>>
Yes, i had worked in the past that way, ripping an old movie "The prince and the pauper" for getting greek subtitles.
The way i did it, which was a little bit time consuming, was :
1. Saving bitmaps with AVISubDetector
2. Ocr them with ABBYY Fine Reader.
It worked, but it was really hard.

It would be nice to have the chance of saving just one nice and clear bitmap for every subtitle line, having the time code the same time and then ocr it. The author of AVISubDetector
has done a good job on that but unfortunately his OCR settings ar very confusing for the average user.

ai4spam
22nd March 2006, 03:18
Well, I was asking if anyone used SubRip to save the bitmaps. The format is pretty simple: a text file with <image#>,<frame begin>,<frame end>,<x>,<y>; and a whole bunch of .pgm black and white bitmaps. That's what my subtitle removal filter will work with. Basically, it does the first pass in SubRip, and the second pass in VirtualDub. So... anyone?
As for your process... you can probably open your bitmap sequence in SubRip and OCR it there, if what AVISubDetector saves is compatible. I never tried this method myself, and was similarly baffled by the interface of ASD. And, in the future, try SubRip's hardsubbed movies detection, it may work for you.

slk001
24th March 2006, 15:56
I have three issues with SubRip. The first is with the skipping of subs that are too short. If I set the SKIP SUBTITLES SHORTER THAN (ms) option to zero, Subrip still skips subtitles. Is there a way to get a list of the subtitles skipped and the timing offset where they occur so that I can inspect and correct the timing?

The second is with the character correction not picking up certain "I" versus "l" on the subtitle font. This almost always occurs on broken sentences, such as "I... I don't know." Ths sentence is corrected to "L... I don't know." This occurs so often that I usually just do a global search for "L..." and replace with "I..."

The third issue is with the character matrix for italic fonts. The character "box" is rectangular, while the font is "slanted", so the character box sometimes has parts of the previous character in the upper left corner. For example, the character combo "fo" would have part of the "f" in the "o" character box. Also, the italic "%" would have a "o/" part and a "o" part. I end up giving them both a "%" mapping, then search for the double and replace them with a single. Is it possible to get a character "box" to slant?

A feature that I would like to see is the removal of the part of the captions for the hearing impaired, such as "[ Laughing ]", or "[ Knocking on door ]" or "[Phone rings]". That would be of great help to be able to remove the brackets and all text between them. I believe that this would have to done with a search and dialog ("Remove this comment?"), since the subtitling program I use - SubStation Alpha - uses the brackets for section headers.

But still, Subrip is an excellent program that I find great utility with and that is very easy and intuitive to use. As for your questions about BITMAP capture, I use Subrip to capture subs in menu structures.

prubin
24th March 2006, 20:35
If you're finding that you're replacing certain phrases repeatedly, try editing the 'English_Screwed.dic' file in the 'Dict' directory.

You might wish to try using 'Subtitle Workshop' from http://www.urusoft.net/
This tool will allow you to remove all the hearing impaired subs quickly.

Hope that's helpful!


The second is with the character correction not picking up certain "I" versus "l" on the subtitle font. This almost always occurs on broken sentences, such as "I... I don't know." Ths sentence is corrected to "L... I don't know." This occurs so often that I usually just do a global search for "L..." and replace with "I..."

A feature that I would like to see is the removal of the part of the captions for the hearing impaired, such as "[ Laughing ]", or "[ Knocking on door ]" or "[Phone rings]". That would be of great help to be able to remove the brackets and all text between them. I believe that this would have to done with a search and dialog ("Remove this comment?"), since the subtitling program I use - SubStation Alpha - uses the brackets for section headers.

ai4spam
26th March 2006, 02:59
For the "o/" and "o" vs. "%" issue, use the Extend Right button (the one with ">" on it), or press Ctrl-Right arrow. That allows you to select multiple regions inside a single recognized character.
And... use the char matrix from the SubRip homepage ( http://foxyshadis.slightlydark.com/random/CharMatrix.rar , mirror kindly provided by FoxyShadis).

slk001
27th March 2006, 19:08
For the "o/" and "o" vs. "%" issue, use the Extend Right button (the one with ">" on it), or press Ctrl-Right arrow. That allows you to select multiple regions inside a single recognized character.

Been using the program for years... never knew about this ability. This could help quite a bit!

LeMoi
27th March 2006, 19:23
Been using the program for years... never knew about this ability. This could help quite a bit!
It's been introduced after v1.17 ;)

Egh
27th March 2006, 19:43
Been using the program for years... never knew about this ability. This could help quite a bit!

wondering how you were ripping subs then w/o that handy option. It saves lots of trouble when e.g. two letters are too close to each other so subrip thinks it's one symbol.

slk001
28th March 2006, 16:48
wondering how you were ripping subs then w/o that handy option. It saves lots of trouble when e.g. two letters are too close to each other so subrip thinks it's one symbol.

A lot of manual editing. However, some subtitle streams are inherently better than others (I guess that it's the font that the DVD designer used). I know that once I've re-created the subs (same text and punctuation as the original), Subrip has NO problems OCR'ing them. My current project has more than its share of character "run-togethers".

Egh
29th March 2006, 23:38
A lot of manual editing. However, some subtitle streams are inherently better than others (I guess that it's the font that the DVD designer used). I know that once I've re-created the subs (same text and punctuation as the original), Subrip has NO problems OCR'ing them. My current project has more than its share of character "run-togethers".

naturally. For instance, itallic font quite often results in double-chars detected. I found that probably easiest way to deal with double-chars is to input 2 chars for detected group of symbols in the matrix and that's it. Like "rn" and other stuff.

FarCry
29th March 2006, 23:38
@GDion: Unfortunately, I don't have much time for new features. If anyone with some Delphi knowledge would like to help, either Zuggy and I could take care of integrating any changes/publishing them.

Big news: I finally got around to debugging the subtitle remover VirtualDub filter (an extension of DeLogo by Karel Suhadja). It's a bit slow, but does its job nicely. SubRip would need some changes in the hardsubbed video section to make it easier to save bitmaps for subtitle removal. I could also look into the SubPis filter as a way of making idx/sub files, and then saving them as bitmaps for my filter. In the meantime, since the homepage is so slow these days, I'd like to know if there is enough interest for the filter before posting it and/or a guide for its usage. Did anyone actually bother saving bitmaps when they ripped the subs from a movie?
In the meantime, you can use the MSU subtitle remover filter from http://www.compression.ru/video/subtitles_removal/index_en.html

so this will be possible in the future? because like you said this filter requires to uncompress the video and compress it again. is there any other way to do it? apart from this filter. thanks

ai4spam
30th March 2006, 06:26
Well, conceivably you could apply the filter "in real-time", while viewing the movie. You'd need a pretty powerful machine, as right now the interpolation is really slow, or saving the results of some sort of precomputation as a separate file with removal information, and apply that in real-time. But until then no, it's impossible without recompression.

Teebeeke
1st April 2006, 10:52
Dunno if this has been asked before, but is it possible to combine all my character matrixes into 1 big file ?

Egh
1st April 2006, 18:57
so this will be possible in the future? because like you said this filter requires to uncompress the video and compress it again. is there any other way to do it? apart from this filter. thanks

well if you want to re-distro that file then you'll need that. What is more, with VDub-only filter you will need to recompress to RGB32, adding more time for processing. If you recompress, it will be then converted into YV12 again.

But even that filter is very useful for e.g. removing hardsubbed subs from transports. So I'm looking forward to test it :P

ai4spam
2nd April 2006, 05:51
@Teebeeke: Not really, but you can use the "search matrix" button every time you get an unknown char, if it finds it in an older matrix, it adds it to the current one.

@Egh: Believe me when I say it's VERY slow. Now, if someone figured out how to make VobSub remove subs instead of putting them in... ;). The way this filter works is to generate some information on where the missing parts (what's under the subtitles) should come from, then to apply that to remove the subs. If one had that info precomputed, it could be applied in real-time, while watching. I'll put up the filter soon, maybe someone wants to pick it up and make some software to output the info quickly from a .sub/.idx file or a bunch of bitmaps, and a filter to remove them in real-time while playing. Or... if other removal methods are faster (like gimp's fill texture filter), those would work as well.
Alas, I have no time to do any of this...

molitar
6th April 2006, 20:09
I would like to see Subrip be able to use ffdshow if installed. I am trying to rip a hard sub video but it has trouble identifying yellow subs on say blonde hair. If ffdshow was able to be used than I could adjust brightness and contrast making the subtitles have more contrast allowing the OCR to be able to detect them better. It would be alot of work I think to build the various hues, saturations, brightness, and contrast settings into the program itself.

ai4spam
6th April 2006, 22:05
@molitar: Hmm, I never thought of that. Well, playing with the colors may help, but you'd have to tweak them mid-way, while processing the movie.
If you know what values you want, try using AviSynth filters inside your own .avs script.

Egh
7th April 2006, 00:30
I would like to see Subrip be able to use ffdshow if installed. I am trying to rip a hard sub video but it has trouble identifying yellow subs on say blonde hair.

You can actually use any filters from ffdshow in video by calling it thru avs wrapper plugin.

molitar
7th April 2006, 02:12
How would I call the filter to start ffdshow through an avs wrapper plugin? If It starts ffdshow than I should be able to tweak to my hearts content throught it's own interface.

Egh
7th April 2006, 02:57
How would I call the filter to start ffdshow through an avs wrapper plugin? If It starts ffdshow than I should be able to tweak to my hearts content throught it's own interface.

it's not working that way :) you'll be able to save presets in ffdshow and use then in avs (with tweaking of the settings).

I wonder, btw, how subrip itself plays the video. Does it use Directshow for that? Cause if it does then implementing ffdshow in the processing chain will be pretty straightforward.

ai4spam
7th April 2006, 15:03
@molitar: I was suggesting some sort of separate AviSynth filter that changes the brightness/contrast/gamma. I'm sure there are plenty. The problem is, you'd have to use something else to figure out the values, then put them in.

@Egh: SubRip uses AviSynth and avifil32.dll, and does not care what's underneath (sometimes it's DirectX, sometimes it's not). It only gets the frames it needs and does processing on them. I guess some simple brightness/contrast/gamma sliders wouldn't be too bad to implement, I just don't have the time these days.

ericf
11th April 2006, 17:31
Hello. I have problems with i becoming j in the saved srt sub.
Example:
Maˇs ˇl nous faudraˇt plus de temps.
Hmm... It doesn't show on the board. It does in Google and worldlingo.

I used both 1.40b and 1.50b.

I used your matrix but when I discovered the problem I edited out all i and j entries. No change.

If I do it manually (put in every character myself) the i and j are correctly displayed.

Where is the problem?

I should add that in the sub file box the i's and j's look correct when they have been ripped. it's somewhere in the saving process or... No, can't be. where in the matrix could the problem be?

Thank you.

ericf

ai4spam
12th April 2006, 15:01
That looks more like an inverted exclamation sign to me, not a j. Try setting the OCR sensitivity to 1000.

ericf
14th April 2006, 09:33
Thanks. Ill try that.
ericf

ericf
14th April 2006, 10:44
Sorry. Sensitivity didn't work.
Also, this is what some of my subtitles from the french DVD of Dr Wai looks like:

275
00:24:48,314 --> 00:24:50,782
//s <i>s'rntrr- tučrrnt dans</i> /r <i>désrrt.</i>

276
00:24:51,674 --> 00:24:54,507
<i>0n racnntr</i> qu'aprčs /r massacrr,

277
00:24:54,714 --> 00:24:55,988
/r sab/r <i>drv/nt rnugr.</i>

278
00:24:56,434 --> 00:24:57,787
<i>D0nne- le-</i> m0ˇ 0u meurs.

279
00:24:57,994 --> 00:25:00,713
Jamaˇs!
Sˇ tu l'0uvres, c'est la fˇn.

280
00:25:00,914 --> 00:25:02,063
Taˇs-t0ˇ!

281
00:25:15,434 --> 00:25:16,469
<i>Le c0ffret</i> est lŕ-bas!

So the sensitivity didn't work.
And r's are coming up instead of e's.

Is there any way of removing the cursive tags from the program? This time only some of the subs were interpreted as cursive while others in the same word wasn't.

I can't find that kind of options in the Advanced OCR options window.

Thank you.
ericf

EDIT:
Is there a way I can delete several characters in the character matrix? If not, could you make it work? It seems a lot of characters are read the wrong way and if I remove the bad characters in the matix I can put in good ones. I deleted the upside down esclamation marks and put in an i when it asked for it. No more problems with those.
Thank you.

ai4spam
14th April 2006, 16:21
For r's instead of e's there must be a character that's wrong in the matrix.
About the italics, there is now a post-processing option that italicizes a whole word if more than half of its letters are italicized. There is no way to remove the tags other than search and replace in NotePad.
About removing multiple characters, I'll give it a thought as a feature for the next version.
If you still get this many errors with the sensitivity all the way up to 1000, you're better off starting a new char matrix for this particular subtitle.

ericf
15th April 2006, 19:56
Hello again. I removed all the upside down i (spanish I guess) and removed a character from the r's that said e. Now I have a working rip without the bad i's. The tags can be removed with notepad or Wordpad. I didn't understand the italicized or not option in the corrections window. I'll have a look at that. If you intend to use these files for a new DVD the tags are in the way though. They will sho up in the sub.

Thanks for thinking over the suggestion of being able to remove several characters at once in the character matrix.
ericf

Dreassica
15th April 2006, 21:34
When it comes to italizing I foudn that subrip tends to fuck up on ... 's, making them italized in sentences that obviously arent Italized.

ai4spam
16th April 2006, 02:29
The option is "Format whole words only" in the post-processing window. It looks at each word, and if more than half its letters are italics, it makes the whole word italic, otherwise it removes the tags. Same with bold and underline, although nobody seems to use those nowadays.

jesus2099
19th April 2006, 11:19
The hard coded subripavi is great!
I needed it so much and used it.
It's very interesting.
As it is from VHS, the letters move often and I have to type many times the sames letters in the matrix
After having typed many times the same letters I see that the best guess is often correct so I put the auto use best-guess after one second global option (fill in after ...). And I correct the small errors with subtitle workshop afterwards. It saves lots of time!

I had a 2 problems though.
- I reached the maximum matrix size quickly thus being unable to add more letters to the matrix. What I don't understand is that your Matrix has 9345 characters. Mine only has 3546 but subrip tells me it's full. (file attached)
- I was unable to open a simple DV AVI (tried MS codec, Canopus readonly Codec, Mainconcept Demo Readonly Codec). I had to make a DivX out of it and I lost some time.

Oh yes and it would be useful to be able to put 0 second in
fill in after best guess option (currently, the minimum is 1 second)

Thanks

ai4spam
20th April 2006, 05:13
@jesus2099:
The matrix constraint is something I'd have to look into, it's a bug in Delphi's memory management. Meanwhile, uncheck "add best guesses to chat matrix". Your letters will still be recognized correctly most of the time, yet the matrix won't fill that easily.
The 1 second minimum is there for a reason: in case you happen to be in front of the computer and notice a mistake, you can quickly type in the correct answer ;).

jesus2099
20th April 2006, 09:31
Hello ai4spam!

In fact I had the error before going automatic! How come I had this error and not you? What must I do to prevent it?

For the 1 second, I understand.. But in the case of a VHS (where image is almost always distorted) one must mostly count on guesses rather than to correct each and every characters. Because the prompt almost display for every character.
For this project I told myself it would be faster to post correct than to correct inline (which is even longer than typing all the subs). A waiting of 0 second would have been very nice in this situation. The rip would have been very very fast instead of (number of characters x 1s) time.
Thanks!

ai4spam
21st April 2006, 00:23
Again, the memory problem is a Delphi thing. I'm not sure if it'd go away when compiled with Delphi 2006, I haven't tried it yet. I need to experiment some. Sometimes it works by saving everything and restarting.

jesus2099
21st April 2006, 09:44
So you think it's not my file being corrupted?
Next time it happens I try to save and restart ; Thank you!
So Don't you think 0 second can sometimes be useful now? (^_^)

ai4spam
23rd April 2006, 07:42
I'll think about making 0 a valid choice ;).

Atomzk
30th April 2006, 18:58
I've been testing SubRip a bit (version 1.50b3). Overall it's doing a great job. Takes a bit of time to "train" it, but it does seem to save a lot of typing.

However, the main problem I'm having is that I just can't get the settings right. Either the "n" and "m" start to break (too thin), or the characters are surrounded by white spots. Using "outline" "fatten" and the tolerance sliders can't fix this. I've settled for having white spots and noise, however it does seem to ruin the OCR after some time because I keep adding spots to the matrix that Subrip has to ignore.

I get the impression the reason for this is that SubRip is insensitive to differences in colour saturation and just looks at the brightness. Subs are often white with a black border, so without any colour. This opposed to the background where bright areas often have some colour in them. At the moment Subrip may see a bright green spot (as in the attachment) as a character. When I would be able to tell subrip to have a low tolerance towards areas with colour in them, I'm sure seperation of the fonts from the background could be further improved.

Just a suggestion of course.. :)

molitar
30th April 2006, 19:09
Atomzk, that is why I think if a brightness and contrast filter at least was built in or the capability to use fdshow so I could do that it would work more efficiently.

ai4spam
30th April 2006, 22:36
@Atomzk: Nice to see people using the hardsubed avi feature ;). You can set the tolerance per channel, so for example in order to avoid something that is bright green being detected, you have to lower the green tolerance.
@molitar: Good idea. No time to implement :(. You can accomplish the same thing by using a custom AviSynth file with all the filters you want.

Atomzk
1st May 2006, 00:33
@Atomzk: Nice to see people using the hardsubed avi feature ;). You can set the tolerance per channel, so for example in order to avoid something that is bright green being detected, you have to lower the green tolerance.
@molitar: Good idea. No time to implement :(. You can accomplish the same thing by using a custom AviSynth file with all the filters you want.
Hi. Well I can adjust the tolerance for green of course in this case, but then I'd have to adjust the colour settings every few frames. That just takes too much time. I'll look into the AviSynth thing.

Isochroma
2nd May 2006, 18:53
I very often get the "overlapping subs" error, and indeed the subs are overlapping. However, I can extract subs correctly using subresync. So why does SubRip make mistakes on the timecodes?

Zerryk
14th May 2006, 01:02
It happens when converting from srt to sub and vice versa.
<i>first italic line</i>
<i>second italic line</i>
is correctly converted to:
{y:i}first italic line|{y:i}second italic lineBut:
<i>two lines spanned
in single italic tag</i>
results in
"two lines spanned|in single italic tag"
which is incorrect - the italic tags are lost and replaced by quotes. The same happens if the <i> tag is not closed at the end of line (as produced by Subtitle Workshop).
Similar problem occurs when doing a sub -> srt conversion. The {Y:i} tag (capital Y) is taken only for the first line.
I think some parse-time convertor which replicates spanning and unclosed tags for each following line would be the best solution...

Suchy
16th May 2006, 12:45
What about joining matrices (*.sum files)?

I have 2 *. sum files with matrices, and I can't join it into one file.

ai4spam
17th May 2006, 02:32
@Zerrik: I'll add it to my (already long) list.
@Suchy: Not possible at the moment. Someone with some Pascal knowledge could try to write something, by looking at the source code. Meanwhile, put them in the same directory, always open the one with more characters, and whenever there's an unknown one, use the search matrix button to make it check the other file as well. If a match is found, it'll be added to the currently open matrix.

Suchy
17th May 2006, 14:32
@ai4spam: thx. I try his way. I'm going to look at source and maybe try do this.

awx
18th May 2006, 10:13
@ai4spam: thx. I try his way. I'm going to look at source and maybe try do this.
Suchy, if you start on a project to join .sum files, another feaure which I would find useful is to compare two .sum files and report how many entries are duplicates.

Suchy
18th May 2006, 22:09
Hmm.. It allows add only non-duplicate entries to second sum file.

Ok. I rememmber that.

P.S.
But I don't know if and when I start this project. It depends of free time (I have a lot other projects).

iElectric
1st June 2006, 11:58
Great app. I would love feature that app would auto load chars at startup

ukendt
4th June 2006, 14:16
Something wrong with the last release, no matter which server I choose the file can not be read ?

ai4spam
4th June 2006, 17:57
It worked for me (easynews server). SourceForge tends to take a while to mirror things. Too bad the release includes source and executable - not everyone wants both.

Great to see people picking up the slack and carrying this forward ;). It's been a while for me, due to things happening in my personal life (I got engaged). I'll try to squeeze in some time to work on this. Unfortunately, this means I'll have to merge the latest changes (v 1.50b3a) with my current version, which has A LOT of changes going towards a v 2.0. I'll keep everyone posted.

Ummm... in case it wasn't obvious, the other news is we got subrip.sourceforge.net. Does anyone want to volunteer some nice website design? I think such a move deserves new "clothes" ;).

ukendt
4th June 2006, 21:58
Could not read file.

Go back. /home/ftp/pub/sourceforge//s/so/sourceforge/subrip/subrip_1.50_beta3a.7z
Jun 04, 2006 13:58

ai4spam
5th June 2006, 04:38
Try the usual way first: go to http://prdownloads.sourceforge.net/subrip/subrip_1.50_beta3a.7z?download and select a mirror.
Only if that fails, try:
http://easynews.dl.sourceforge.net/sourceforge/subrip/subrip_1.50_beta3a.7z

LRN
5th June 2006, 08:08
Unfortunately, this means I'll have to merge the latest changes (v 1.50b3a) with my current version, which has A LOT of changes going towards a v 2.0.
Just send me 2.0 (or 1.60 beta1, anything) code when it's ready.

P.S. I wish i had subtitles (in *.srt) with color tags, so i could implement color support. Do you have some?

ai4spam
5th June 2006, 14:37
Thanks for the offer, will do.
For colors, just enable colors in 1.50b3 (.srt section), save, then replace FFFFFF with radom stuff (hexadecimal) in a few places, and reopen the file, then convert to your new format.

Esc
10th June 2006, 04:10
Excuse me. Which files do I take from the archive if I don't need the source, just the utility?

LRN
10th June 2006, 07:07
http://lrn.no-ip.info/other/subrip_v1.50_beta3a_binaries.7z
Hope i didn't missed anything :)

Esc
10th June 2006, 15:35
Thanks, LRN! That's what I needed.

chipzoller
12th June 2006, 00:49
If this isn't appropriate for this thread either move it or start it as a new one.

I have the complete DVD set of Jeremy Brett as Sherlock Holmes and the episodes of the show produced in the 1980s-1990s that I wish to OCR the subs with SubRip and submit them to subtitle databases. I'm having lots of problems with these with the current and even prior version of subrip. It seems no matter what settings I try it turns out crappy. I wanted to hear what the experts had to say about this. I think the subs when created were done rather poorly, so there may be nothing to do.

I've posted them both (2 movies from the series) here:

http://arches.uga.edu/~czoller/vampyre.rar

and

http://arches.uga.edu/~czoller/blackmailer.rar

thanks for any suggestion.

ai4spam
12th June 2006, 02:03
Try selecting 2 custom colors, it worked ok for me. And, when there is a letter recognized as 2 parts, set the bigger part to the actual letter, and just press Enter when asked to type in the smaller part.
It would work better with 3 colors, but right now SubRip doesn't let you do more than 2.

PS: Make sure the subs are not protected by copyright before posting them anywhere.

chipzoller
12th June 2006, 03:29
Indeed, that works well. Many thanks for improving upon a great program!

chipzoller
13th June 2006, 17:14
What about your suggestion for this set?
http://arches.uga.edu/~czoller/lagoon.rar

When I OCR them, it re-recognizes the same letter MANY times over, even limiting the colors to 2. I'm not sure what else can be done here.

thanks again.

LRN
13th June 2006, 20:06
Try to decrease OCR's sensetivity (from 1000 or 980 to 950 or even lower)

chipzoller
13th June 2006, 23:54
I've also tried that, which only gives mediocre results. Are there no other settings I can use to achieve optimal results, or am I doomed to entering all sub pictures manually?

ai4spam
14th June 2006, 01:19
Again, not possible with only 2 colors allowed. It'll be on my list of things to change.
Using the best guess should save you some typing, and accuracy improves over time.

InuyashaSama
15th June 2006, 23:45
Since the zuggy.wz.cz site is deadly slow, I want to host SubRip 1.50 and the subtitles ripping guide at my website to make them accessible to all users.

Please send latest version binary to webmaster[at]divxland.org, because I can't get it from the server since the download drops to 0 kbps always. My server has plenty of bandwidth and storage.

ai4spam
16th June 2006, 04:21
Thanks for the offer, let's see what Zuggy says (he's the owner, after all). We were going to move to SourceForge, that's why I asked for any volunteers for a redesign. Would you be willing to host a mirror?
I'll be out of town next week, but will send you the archived contents when I get back next Saturday.

InuyashaSama
16th June 2006, 17:14
I can host it but I'll have to apply the standard page layout of DivXLand.org, including the current site ads and menu system, because I only have permission to host DivXLand.org website in that server. I may also translate the main pages to spanish, since all the site is available in both languages.

ai4spam
19th June 2006, 05:10
I guess that would be ok. If Zuggy is ok with it, I'll sent you the files. Probably the deal would be that you may use the text and apply your own formatting, but keep the copyright notices.

chipzoller
20th June 2006, 16:48
I'm having problems converting a new set of subs here (http://arches.uga.edu/~czoller/eng_subs.rar) and while I can only use 2 colors and adjusting the sensitivity to 950, I still have to recognize almost every character about 5 or more times, and with that the accuracy is still poor. Maybe you could try your hand at them and see if you have better results? Thanks.

steelman
7th July 2006, 22:46
Hi!

I want to report bug. When I try to delete character from character matrix I get accessviolation on adress ... error.

ai4spam
8th July 2006, 02:58
Does it always happen, or does it go away after you restart?
If it happens always, send me (fine my mail in the manual) the char matrix file you're using.

chipzoller
8th July 2006, 16:26
ai4spam, can you give me any hints with the abovementioned vobsubs? Perhaps a best-setting scenario by which to recognize them?

steelman
8th July 2006, 18:05
Does it always happen, or does it go away after you restart?
If it happens always, send me (fine my mail in the manual) the char matrix file you're using.


It happens all the time and it will not go away after restart. Maybe I'm blind but i haven't seen you mail in guide on zuggy web. I'm attaching it here. Oh and I'm trying to delete character with index 00036

EDIT:
btw aren't you plannig remove HI optional option for post OCR correction. Something like building another character matrix with this textes (e.g. [MAN]:)

ai4spam
9th July 2006, 07:52
I said the manual, as in the file Credits.txt ;).
Hearing Impaired removal should not be that difficult, especially with the code in place to do whole words formatting (same principle). I'll think about it.

steelman
12th July 2006, 19:03
Have you checked it?

Teebeeke
13th July 2006, 03:56
I tried that hardcoded thing, yesterday, but after 5 hours i still hadnt reached 50 %. I have a hard time getting the right colors for the program to reckognize the subs. I converted a tape to avi, which makes it hard i guess.

ai4spam
14th July 2006, 00:55
@steelman: I can't, the attachments has not been approved yet. Mail it to me (see Credits.txt for the address).
@Teebeeke: It takes a while, what can I say. Try lowering the OCR sensitivity.

SvenBent
20th July 2006, 08:26
Sorry i didnt read thorug 22 page of post.
just spank me for being a bad boy :-)

anyway the "format whoel words" cotains some bugs

E.G

Original: Dennis<i>...</i>
"fixed": <i> Dennis... </i>
Correct would be : Dennis ...

personaly i disable the function (but it wouldnt save it :-( ) and modify the punct.dic


ooh and also a suggestions
you should be able to selecte multiple languages from a list. The list should be a long list with checkboxes and a selection for "correction by langaug" for the post ocr correction.
And then it would go throug alle the files and saving it by the original language name.

That would save the user some time.
maybe even run each languange in its own threads. Rhat way the whole project would not stop for just one letter being uknown, and the speed would scale on a SMP system.

ukendt
20th July 2006, 08:38
@steelman: I can't, the attachments has not been approved yet. Mail it to me (see Credits.txt for the address).
They were approved short after your comment:D
Sorry i didnt read thorug 22 page of post.
just spank me for being a bad boy :-)

Spank:sly: beat:sly: hit:sly: ...

(furthemore in danish...)
Slĺ, flĺ, rive:D ....God varm sommer Sven Bent:D :D

ai4spam
21st July 2006, 01:23
Hmm, does it happen when the word is the first in the sentence, or anywhere?
The principle is: it looks for how many characters are italicized and how many are not, and depending on which number is greater, it formats the whole word or not.

SvenBent
26th July 2006, 21:33
Hmm, does it happen when the word is the first in the sentence, or anywhere?
The principle is: it looks for how many characters are italicized and how many are not, and depending on which number is greater, it formats the whole word or not.

I have sofar only found the errors when thers is only one word and then the triple dot

maybe jut make on corret one letter in a word. (or ...)

also i can oresse that this may also make more mistakes ten it fixed
E.G
the original lin :either/or
detectes as: either<i>i</i>or
fixed as: Eitherior

actually i would preffer te non fixes version is its graphically better reprenst what should be there

this is just my 2 cent.

thusfar i have fixed most errors without a wrong fixation by using these lines in the punc.dic

<i>ř</i>
ř
</i>ř<i>
ř
<i>/</i>
/
</i>/<i>
/
<i>...</i>
...
</i>...<i>
...

Works wonders

iElectric
27th July 2006, 01:33
Someone i know gets this error at start:
"Bad Packet Header at LBA 2. Do you want to continue?"
Then LBA just grows up: 2,3,4..

ai4spam
28th July 2006, 04:15
@SvenBent: Working on fixing it, but my motherboard died :(. Also, the correction is applied AFTER the punctuation correction, so feel free to use the dictionary to work wonders ;).
@iElectric: That's usually a bad/non-standard .sub file. Try a different source. Other than that, I don't know, Zuggy handles the .vob/.sub parsing stuff.

SvenBent
28th July 2006, 22:35
another "bug" (actualyl a limitation i think)

Error
Not enough memory to add this character to the Matrix!
Size of the Matrix in Bytes: 6326094

would you consider increaseing te maximum size for the matrix file ?

ai4spam
29th July 2006, 03:35
It's not memory that's the problem, it's the fragmentation. Now SubRip allocates each character on demand, when it should in fact allocate chunks of 10 or even 100, and fill them afterwards. Too many allocation requests eventually lead to the failures that you get.
So... as soon as my new motherboard gets in, I'll work on this as well.

colonel32
6th August 2006, 19:37
Hi, I'd like to report a bug. If you view/edit a character matrix which contains unicode characters (Korean), and try to "Delete This Character (Del)", SubRip 150b3 crashes with an "Access Violation at address 004C7AF8 in module 'SubRip.exe'. Read of address 00000000."

It seems to be reproduceable after a restart and a reboot. You can see yourself by editing the attached character matrix and trying to delete index 00094.

Hope this helps!

This is an excellent program, thanks so much :)

ai4spam
8th August 2006, 05:21
I'm working on a new version, which should take care of all these issues. I'll try your example when I'm done. Thanks for reporting.

PS: I'll repeat an earlier request: anyone wants to volunteer to design a new face for the SubRip page, once we move to SourceForge?

iElectric
8th August 2006, 12:30
I would gladly help, but only thing i am good at is Flash.

ai4spam
9th August 2006, 00:16
Well, a nice Flash intro wouldn't hurt either. No need for fancy menus or anything, just an intro would be cool.

masken
10th August 2006, 22:30
just like to say thanks for your continued efforts with this excellent and essential application ai4spam. Keep up the good work :)

iElectric
13th August 2006, 02:32
ai4spam, you have msn or something? Tell me more details about intro, i would like to help at making new home for subrip

ai4spam
13th August 2006, 04:48
Thanks for the offer. I have gMail (use the same id as here @ gmail). I don't log in often, but you can leave me messages that way. Just add my id to your contacts.

SvenBent
15th August 2006, 22:42
i have another bug.

Big I and litle i are detected as THE SAME even though they are Graphicaly different

I Reduced the matrixc size so that it did ask for the big I and tgen i entered some random character and the same character was used for the litte i

I can send you the subs ?

LRN
16th August 2006, 14:00
Maybe colors isn't set right?

Teebeeke
20th August 2006, 10:09
I was wondering if it could be possible to add a list of all characters to the dialog (as an option) , atleast a-z / A-Z / 0-9, to see which characters have allready been added. I always wonder how many i need to add before i have had all of the a-z/A-Z/0-9 characters.

LRN
20th August 2006, 11:30
It is useul only if you're using new matrix each time you OCRing.

iElectric
20th August 2006, 21:32
And option to auto-load the same matrix each startup would be perfect!

ai4spam
22nd August 2006, 05:54
@Teebeeke: I'm also working on an improved version of the "fill matrix" algorithm, the one in 1.50 is working, barely.
@iElectric: I'll think about it.

SvenBent
27th August 2006, 11:54
I found more errors with the "format whole words only)

Before
41
00:07:26,360 --> 00:07:27,554
That<i>'</i>s all right.

42
00:07:35,160 --> 00:07:40,951
My name<i>'</i>s Gaius.
lt<i>'</i>s nice to meet you.

43
00:08:47,880 --> 00:08:49,552
lt<i>'</i>s Valhiss!


after:
1
00:07:26,360 --> 00:07:27,554
<i>That's</i> all right.

42
00:07:35,160 --> 00:07:40,951
My <i>name's</i> Gaius.
<i>It's</i> nice to meet you.

43
00:08:47,880 --> 00:08:49,552
<i>It's</i> Valhiss!

clearly something is wrong.
mabye you should make somw week letters that never change the whole word like ' and /

--- edit ---
Never write when you are tired :-)

SvenBent
27th August 2006, 11:56
i really would like to suggest a debug mode where the text is filled with the matrix index number instead of the characters.

That way you could easy track down a misunderstod matrix entry

--- edit ---
I really shouldn't write in forums when i tired

ai4spam
30th August 2006, 00:22
Clearly something is wrong with your keyboard :p.

Thanks for the feedback, I'll look into it some more. I've made some changes, but I'm still far from ready to release.

Sinistral
9th September 2006, 23:19
Hey ai4spam,

First off, thank you for the continueing work on SubRip. It's an amazing program.

Unforunately, I have two problems.

1: When some subs are ripped in SubRip 1.50b3, SubRip warns me that the timing is negative and that it might need a delay. However, most of the times all the timings in the sub turn negative and the sub is unusable (unless you know a way to positivate them).

I remembered seeing something about negative timings in one of your changelogs and I saw that SubRip 1.40b2 was the first to support negative timestamps. So I downloaded SubRip 1.40b1 and ripped the subs with negative timestamps, and most of them came out okay. So I thought you should delete the support for negative timestamps.

However some subs with negative timestamps, come out mostly okay, when ripped with 1.50b3, but when ripped with 1.40b1, they are f*cked (the timings are all wrong). So I thought it might be nice to have an option in which you can choose wether to ignore the negative timestamps, or to use them.

2: I've ripped a lot of subs with your program but I never came accros one I couldn't rip, until now. SubRip 1.50b3 only detects the top part of characters of this subtitle, but they're to small parts to make out what character it is. When I use the sub with a movie however, the subtitle is displayed fine. If you want the subtitle, you can download it here: http://rapidshare.de/files/32553152/Movie.rar

These are not very important things, so if you don't have the time to fix it, it doesn't matter too much. It has to stay fun for you too ;)

Anyway, thanks in advance for reading!

masken
11th September 2006, 18:33
Can someone please setup a working mirror? http://zuggy.wz.cz/ is just not downloadable and the mirror specified there has expired...

DonGato
12th September 2006, 01:36
What you can't get?
It's hosted at Sourceforge and you have plenty of mirrors.

ai4spam
12th September 2006, 09:23
@sinistral: You're probably talking about different kinds of negative timings. I don't really understand how some of them could have come out ok with 1.40b1. Since 1.40b2, the default delay that is added is so that the first sub starts at 00:00:00. That takes care of the negative timestamps on some DVDs that "count backwards". When you load subs with negative timestamps in vatious applications, you get various results: some ignore the sign, some wrap aroung (-1=255, etc.). The method I chose works out pretty well. Can you send me an example where it doesn't?
The subs you put online are deffinitely weird. The Chinese ones indeed only show the top part. I have no idea why. The English ones are completely blank (I gave up after a few blank images). Which ones do you mean?

@masken&DonGato: Sorry to hear about your download troubles. AfterDawn has a good mirror. Although SubRip has a project space reserved on SourceForge, we haven't begun using it yet.

I've been too busy lately for any progress (getting married). LRN has worked some on ttxt support.

steelman
12th September 2006, 11:31
@ai4spam: wz.cz is the worst webhosting in CZ. Its very slow server therefore people can't download from there or load the site.
btw congrats to getting married :D

Sinistral
12th September 2006, 11:44
Thanks for the reply. I got a subtitle here which turns out with negative timings if ripped by SubRip 1.50b3 and positive timings if ripped by 1.40b2: http://rapidshare.de/files/32833451/Negative_Timestamps.rar.html (I also included the character matrix for this subtitle).

And about the weird subs; my SubRip also detects the top of the Chinese characters and also the top of the English ones, though when SubRip detects them, they look like lines. You should change your Min. Char. Height to 1, maybe then you'll see them. If you have no idea how to fix the problem with these subs, it doesn't matter much. It's the first time I've had this problem and I've ripped a lot of subs. So it's a pretty rare problem.

And congratulations on getting married! You must be busy with all the planning and stuff. Good luck! ;)

masken
12th September 2006, 14:05
AfterDawn has a good mirror. Although SubRip has a project space reserved on SourceForge, we haven't begun using it yet.
Sorry but where? Link?

ai4spam
12th September 2006, 23:27
@masken: Google is your friend:
http://www.google.com/search?q=subrip+afterdawn
takes you to:
http://www.afterdawn.com/software/video_software/subtitle_tools/subrip.cfm

@sinistral: I'll look at it sometime, thanks for the report.

Sinistral
17th September 2006, 20:48
Hey ai4,

Sorry to bother you again, but I just have one quick question. Is there any way to edit the method for Post OCR Punctuation correction?

I already know about punct.dic, but not all of the method is in there. For example when you do a punctuation correction on two sentences like:
-Amen.
-Amen.
And you have an empty punct.dic, it still becomes:
- Amen.
- Amen.

I just wanna see how it works and maybe (if possible) improve it. Anyway, thanks in advance for any help and good luck with your wedding!

LRN
17th September 2006, 21:37
punct.dic!? I didn't know...For me, all post-ocr corrections are hadcoded (i know, i hardcoded one myself :) )

ai4spam
18th September 2006, 14:12
The syntax is straightforward: first line is word to be replaced, and second the word to be replaced with, and so on. So, just type in all the pairs like:
- A
-A
- B
-B
... and so on.

masken
19th September 2006, 22:40
ai4spam, dunno if I've asked for this before, but is there any chance of RegEx replacement support in subrip (like in Subtitle Workshop)?

ai4spam
21st September 2006, 06:17
I don't know what component they use, but it would indeed be fairly easy to put in, if I only had the time. My question is... if you have SubtitleWorkshop, then why not use it? Besides not supporting italics per word, everything else works nicely in it.

awx
21st September 2006, 07:23
Does SubtitleWorkshop open unicode .srt files? It refuses to open any of mine from SubRip.

LRN
21st September 2006, 08:49
Try SubtitleProcessor

masken
21st September 2006, 09:38
I don't know what component they useMe neither, but there's always the built-in VBscript.RegExp, and in .NET you have System.Text.RegularExpressions.

More info about RegEx and programming:
http://www.regular-expressions.info/tools.html

Sinistral
22nd September 2006, 18:09
I completely agree with masken. It would be very nice (if you have the time ofcourse) to see Regular Expressions in SubRip.

I'm currently writing a custom script for Subtitle Workshop with Regular Expressions, but the don't have unicode support and they don't support the italics SubRip uses. Unicode support has already been asked for in the Subtitle Workshop Forums, but the develepor seems to have quit unfortunately. So it would be very nice to see it in SubRip! :)

ai4spam
24th September 2006, 06:27
It would be nice if they released the source ;).
As for regular expressions, it'd have to be something Delphi supports, not VB and not .NET, unless we're migrating it to Delphi .NET.
Now, assuming I'd have it done, would anyone write dictionaries/scripts for it? I haven't looked much into it, but I don't remember seeing many SubtitleWorkshop scripts floating around the web :p.

Seriously now, is there nobody woth some Delphi experience that could help? I have thought (more than once) of implementing this from scratch in C (maybe reusing code from VSRip), but I barely have time to look at the forum and fix some small bugs in the now perpetual next beta version, let alone do it all over again.

Sinistral
24th September 2006, 12:12
It would definately be nice if Subtitle Workshop released the source, but they won't. :mad:

I checked the Regular Expressions website and this is what they said about Delphi:
"Delphi - Delphi does not have built-in regex support. Delphi for .NET can use the .NET framework regex support. For Win32, there are several PCRE-based VCL components available."

Unfortunately, I don't know Delphi (nor any other programming language), so I don't understand what that means nor can I help you with the development of SubRip.

Fortunately, I am making a regular expression scripts for English subtitles. If I have that one finished, I might be able to delete some things out of it, so it can correct some small things for all (Latin based) languages. And if I have enough time, I might also make a Dutch one (my native language).

It will probably take some more months before they're really finished and tested, but since you probably can't implement Regular Expressions that soon, it'll be no problem.

Anyway, I'm already very happy that someone is actually listening to us and thinking about improvements, since SubRip wasn't even being developed anymore for almost 2 years. So many thanks for being here! :thanks: :thanks:

S36d2
26th September 2006, 20:35
Is there another mirror available with the guide for ripping hardcoded subtitles? Zuggy's site is very slow at the moment and won't show all pictures; http://zuggy.wz.cz/redir.php?co=101

LRN
27th September 2006, 10:58
You could use TRegExpr or T-Rex for regular expressions in Delphi.

ai4spam
28th September 2006, 00:55
@S36d2: I can send it to anyone who would like to host it. Send me an email (same id)@gmail.
@LRN&Sinistral: Thanks for the suggestions.

Unfortunately, SubRip has grown into a big mess, with too many features that are not really needed, and should have been implemented separately, like support for other formats. I feel very tempted to start from scratch in C, except... I don't know anything about the structure of a DVD, so I have to keep using Brain's original parser, written in Delphi. Oh, well...

LRN
28th September 2006, 20:18
I don't know anything about the structure of a DVD
http://sam.zoy.org/writings/dvd/subtitles/
I have to keep using Brain's original parser, written in Delphi
http://sourceforge.net/projects/subtitleripper

masken
28th September 2006, 21:19
I'd help out regex:ing away hearing impaired for sure :) Got loads of reference material from backing up my R1 DVD's through the years.

A humble suggestion is to move to visual studio :D

ai4spam
29th September 2006, 02:50
Thanks, everybody. The thing is... a GUI is still needed, and the easiest I know of is... C++ Turbo Explorer, wich is a free version of a Delphi-like GUI, with C code to drive it. The other stuff at the links seems pretty rudimentary due to the programmers being Linux-only folks, with CLI, and pretty old (unless TransCode has evolved). I don't know what to say, and I certainly don't have the time to deal with starting from scratch now :(.

frodeste
14th October 2006, 12:19
If you delete a character from a Character Matrix, the software will completely stop to a halt.

Is this a known bug?

ai4spam
14th October 2006, 14:59
What version are you using? As a workaround, use another (smaller) char matrix, it should let you delete just fine.

Mtz
14th October 2006, 15:46
Also my char matrix is big, and crashing SubRip when trying to delete some character. Used the latest version of SubRip 1.50b3.

enjoy,
Mtz

frodeste
14th October 2006, 18:13
Also my char matrix is big, and crashing SubRip when trying to delete some character. Used the latest version of SubRip 1.50b3.

enjoy,
Mtz

Same for me,

Then it seems that this is related to the size of the matrix file, and is a bug.

ai4spam
16th October 2006, 08:14
Sadly, it doesn't look like I'll have the time to look into it soon. It never occurred before because people were using small matrices. I guess my advice is to use smaller matrices for now.

Teebeeke
18th October 2006, 10:18
Well, i have the same problem when going into the matrix (no phun intended) and deleting a character.
I create a new one for every different DVD, so my matrices arent really big. Even after 8-9 characters it crashes when i want to delete one.
If i modify the character where i put a wrong input, and save it, it doesnt crash.

awx
20th October 2006, 05:50
I have the delete char problem too. But I have found that when the error dialog is open, you can tell Windows to log off and SubRip will then give you the option to save the Char Map without the pesky error dialogs blocking you. It's makes for slow and tedious work but it's better than having to force quit SubRip and lose all the unsaved entries in the character matrix.

ai4spam
20th October 2006, 22:07
Wow, that's some detective work ;).

The news is that I really don't have any time to further develop SubRip right now. I'll be uploading a stable version of my latest beta. I'll try to fix all the bugs signalled here before I do. It's been a good ride while it lasted, and I hope someone else will pick up the torch and carry it on.

Teebeeke
21st October 2006, 12:15
All your work has been highly appreciated, and i hope someone can pick up where you left off.

Thank you very much :thanks:

Sinistral
21st October 2006, 12:35
Thank you for all your fantastic work ai4spam! You've improved SubRip so much... I can only hope someone like you comes along to pick it up again. Have a good marriage and again, thank you for all your hard work! :o

omion
1st November 2006, 23:28
I'm using 1.50b3a, and I get some weird things happening. I'm encoding Fullmetal Alchemist, and on episode 41 the save dialog does not show up. For all the previous episodes this worked, but not ep 41... I re-processed episode 40, which still worked perfectly, so there seems to be something odd going on with the input files.

I tried compatibility mode, but it doesn't help. It seems to be dependent on the input file. Has this problem been figured out yet?

ai4spam
3rd November 2006, 03:19
Try renaming the input files, see if that does anything.

omion
3rd November 2006, 21:23
Nope. :( I tried putting it in a different directory, and then renaming the files themselves, but it still doesn't work.

I just got done encoding some more episodes, and it looks like all the eps on one DVD (41,42,43,44) fail to show the save dialog. The other DVDs are OK.

I'm using it on Windows XP x64, if that matters.

hanen87
11th November 2006, 18:31
Hi,

I'm a beginner in ripping vobsub to SRT format....

I hv tried ai4spam's Character Matrix n i hv noticed most "l" has been converted to capital letter "I"

I hv tried to edit every "l" & "I" but it still don't work.

Can someone tell me which letter should i edit?

zuggy
12th November 2006, 18:50
I and l are very similar (or equal) in many subtitles. The only workaround is to apply "post-OCR" correction after the sub-rip process.

LRN
13th November 2006, 11:52
Best workaround is to hardcode font name into subtitles (not all formats support this feature), Arial for example (in Arial I and l are the same)

masken
19th November 2006, 17:20
Getting Access Violations when using ai4spam's character matrix:
Access violation at address 0052135D in module 'Subrip.exe'. Read of address 034AB002.
Is it too large? :o

ai4spam
20th November 2006, 08:22
It may indeed get too bloated, try to download it again, and next time you save it, choose a different name so that you can revert to the previous one.
I'll probably have time for an update over winter break, during which all the bugs will hopefully be taken care of.

roli_bark
25th November 2006, 08:07
Can anybody help with a problem I have w SubRip v1.50b4 -
reported in this topic:

http://forum.doom9.org/showthread.php?t=118616

Paulcat
30th November 2006, 16:11
Hmm, I have a large avi file with hard-coded subtitles, I have tried both SubRip and AVISub Detector and both seem to run the length of the clip and pick up nothing no matter what settings I alter.

Is there some software out there that I can use to create the timing and just manually enter the text? Does Subtitle Workshop do this?

roli_bark
30th November 2006, 19:24
Hmm, I have a large avi file with hard-coded subtitles, I have tried both SubRip and AVISub Detector and both seem to run the length of the clip and pick up nothing no matter what settings I alter.

Is there some software out there that I can use to create the timing and just manually enter the text? Does Subtitle Workshop do this?

If the Hard-Coded subtitles are bit-mapped, then
'Subtitle Workshop' doesn't work with bit-mapped characters.

ai4spam
4th December 2006, 05:45
@roli_bark: See answer in that topic.
@Paucat: I assume you've used it before, for other movies? If not, follow the guide at http://zuggy.wz.cz/guides/video.htm
SubRip does not have automatic detection like AviSubDetector, you have to go to the first subtitle and set the subtitle and outline colors manually before it can go on. You can also try PodPis instead, and use the timings it gives you to translate, if you're doing a translation.

iElectric
12th December 2006, 18:02
I have a problem with your charmap ai4spam, all subtitles i rip are like this:

http://shrani.si/?screenshotoyd0.jpg

All the letters i are strange.

ai4spam
13th December 2006, 08:11
Yes, that's the Spanish inverted exclamation sign. If you never rip Spanish subtitles, go to the Edit Char Matrix window, sort it by character, and delete all the inverted exclamation signs.
Alternatively, just open the file in NotePad and do a replace all from ˇ to i (to find the ˇ character, type Alt+0161).

iElectric
13th December 2006, 16:11
I removed all ! and i sings.. sometimes it happens i get "I" sign also instead of "i".... hope this works.. I wonder why does it happen only to me? :|

ai4spam
14th December 2006, 09:06
It happens to everyone, maybe just the subtitles you rip are weirder. You can try setting the OCR sensitivity all the way to 1000.

Deaf Raiders
21st December 2006, 17:37
How longs does it take to rip a 25mins episode (1VOB) from 1 DVD i've done mines for a min or 2 its stuck at 95% and no subs are showing in the subtitle window. its not hard subbed am ripping it from the VOB i can't see whats doing wrong can anyone help me maybe configure the settings or whatever. Raiders

iElectric
21st December 2006, 22:57
When that happens to me, I click verify.. it takes some time but then it works.

Deaf Raiders
21st December 2006, 23:29
When that happens to me, I click verify.. it takes some time but then it works.

How Long?

vBm
22nd January 2007, 18:15
ai4spam any chance to post your matrix script again ?


tnx in advance ;]

dwm4444
23rd January 2007, 02:30
@ vBm:
If you're referring to ai4spam's character matrix file, it's being hosted at:
http://foxyshadis.slightlydark.com/random/CharMatrix.rar

masken
23rd January 2007, 23:09
@ai4spam, here's some Icelandic characters that could be added to the OCR-dialogue:

Islenska|Icelandic
Large: ÁĆĐÉŢÍÓÚÝÖ
Small: áćđéţíóúýö

ai4spam
24th January 2007, 04:48
@Deaf Raiders: if it gets blocked, just pause and save the file at 90%.
@Masken: Thanks, but... isn't it there already? Or maybe it's my (perpetual) beta version...

Also, it appears that "Use IDX file offset" in Global Options is set by default in the latest beta. Uncheck it if you get weird looking characters.

lucassp
26th March 2007, 06:57
heya! :D what subtitle coding should I choose, so I can preserve special characters like " ş, ţ, ă, etc.", and open the subtitle in BSPlayer (BSPlayer won't read Unicode subtitles)??? thanks!

http://img241.imageshack.us/img241/8731/46143405go1.th.png (http://img241.imageshack.us/my.php?image=46143405go1.png)
http://img296.imageshack.us/img296/5531/75664618ju3.th.png (http://img296.imageshack.us/my.php?image=75664618ju3.png)

dwm4444
26th March 2007, 07:40
@lucassp:

Those look like characters from an ANSI 1250 — East European Latin page. You can check out the various pages at:

http://en.wikipedia.org/wiki/Code_page

in the "Windows (ANSI) code pages" section.

Good luck.

lucassp
26th March 2007, 08:36
@dwm4444

yes, i'm from romania :cool: . ANSI 1250 doesn't work... :confused:

dwm4444
26th March 2007, 09:45
@lucasssp,

Don't know if this will help, and you may have already tried it, but in Bsplayer (I'm using an old 1.39 build, but should be the same on yours), right-click on the movie, then Subtitle> Subtitle Properties> Font> Script and pick from the choices available (I've got 9 showing; "Central European" would probably be your best bet; mine's on "Western"). Then click on "Apply", and restart your video.

I'm in the U.S. and don't have any subs like yours to test, so I have no idea if this will work.

GrofLuigi
26th March 2007, 13:08
@lucasssp,

Try this trick:

Open the subtitle in notepad. From the menu, choose "Save As", and in the "Encoding" box, choose ANSI.

This has worked in the past for me, when other programs couldn't read SubRip's Unicode.

GL

lucassp
26th March 2007, 15:31
@GrofLuigi

:thanks: u the man :p

ai4spam
12th April 2007, 03:04
CP 1250 should work just fine for Romanian, if you set the right characters in the first place (if you used the characters in the table that appears when it asks you for a new char).
As a rule of thumb, you should receive no error message on conversion, and the diacritics should look right after changing the CP. If you get an error message, it's probably the wrong CP.

Foofaraw
14th May 2007, 23:31
You don't render the underscores on the buttons ("Skip this subpicture" etc). I have to use a shortcut (alt p) before they show up (this is in english)


Also the "change text color" window doesn't adjust the height of the window correctly if the system is set to large dpi font setting (to be able to read it) *, then you can't see the buttons you have to click, they are outside the window (hidden)


* display/advanced/genral/dpi

Foofaraw
14th May 2007, 23:32
Also, it would be nice with a feature which turned all subtitles into BW (since some vobs have many different colors for the letters...)

dgiij
27th July 2007, 23:56
I want use subrip 1.50 beta4 to get son file from single sub file (vobsub format sub file without the idx file),but the son file i got couldn't be converted into vobsub with son2vobsub. I had done the same work before by using the old verison(1.20) subrip and same version son2vobsub.

johnggg
17th August 2007, 16:57
I've created subtitle files (srt) from a ntsc DVD using both dvdsubedit and subrip but they give me different timings:

dvdsubedit:

1
00:01:49,133 --> 00:01:50,259
Is anybody home?

2
00:01:53,633 --> 00:01:54,429
Hello!

3
00:01:56,166 --> 00:01:57,360
Who are you?

4
00:02:08,199 --> 00:02:09,258
I'm Rick!

5
00:02:13,533 --> 00:02:14,659
Do I know you?

But subrip gives me:

1
00:01:49,476 --> 00:01:50,602
Is anybody home?

2
00:01:53,980 --> 00:01:54,776
Hello!

3
00:01:56,516 --> 00:01:57,710
Who are you?

4
00:02:08,561 --> 00:02:09,619
I'm Rick!

5
00:02:13,900 --> 00:02:15,026
Do I know you?

Vsrip gives me even different timings:

timestamp: 00:01:49:175, filepos: 000000000
timestamp: 00:01:53:680, filepos: 000000800
timestamp: 00:01:56:216, filepos: 000001000
timestamp: 00:02:08:261, filepos: 000001800
timestamp: 00:02:13:600, filepos: 000002000

Can anymone enlighten a newbie (myself) why the three programs are giving three different subtitle timings from the same ntsc dvd? Which is correct?

LRN
20th August 2007, 23:08
Everyone knows that my TTXT ripping implementation in SubRip is buggy and incomplete. Well, yesterday i grew tired of it, downloaded 1.50b4 and fixed everything.
Now SubRip outputs better TTXT subtitles than mp4box (mp4box.exe -ttxt <file.srt>) itself, including full position info support (<TextBox>) and full color support. Give it a try!
I hope this will be my last Subrip 1.xx release. And if you find any bugs in my code - report here (my code is marked by comments, you won't miss it).

http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4a_bin.7z - binaries
http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4a_src_bin.7z - sources + binaries

Also...
Since there is no (or i don't know any) subtitle editors with TTXT support, i wrote two small commandline applications.
TTXT_timeshift, shifts time.
TTXT_slice cuts subtitle file to pieces. It is compatible with AviSynth function Trim().
Get it here - http://lrn.no-ip.info/home/subrip/TTXT_Tools_v0.1_src_bin.7z

LRN
22nd August 2007, 14:04
Very minor update.
New option - to replace <'> (single quote) character with <&apos;> or <`>. <`> is a bit ugly, but safe. <&apos;> is better, but some versions of MP4box may not recognize it (actually, they do - but only before splitting text into lines, resulting in messed linebreaks). Latest version of MP4box (Celtic Druid's build of 0.4.5-DEV) works fine with <&apos;>, so this option is now enabled in SubRip by default.
Now SubRip will always replace <''> (two single quotes) with <"> (double quote), because even if escaped as <&apos;&apos;>, two consecutive single quotes will be recognized as line seprartor.
New default font for TTXT subtitles - Arial Unicode MS. Now you could use any symbols (notes, special characters and all kind of international symbols) without having to change a font. Size is now 22, because 14 is just too small (remember, we're not in plaintext mode anymore!). I don't know what Unicode fonts are common on *nix machines, but i hope they know how to obtain some extra fonts :) It's pity we can't embed fonts into mp4 container...Can't we?

New TTXT Tools v0.2 - with fixes to <&apos;> handling.

http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4b_bin.7z - binaries
http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4b_src_bin.7z - sources + binaries
http://lrn.no-ip.info/home/subrip/TTXT_Tools_v0.2_src_bin.7z - sources + binaries

P.S. for some time some links were HTTPERR 404 because i temporarly removed files to fix some other last-second issues. Now everything should be fine.

bond
22nd August 2007, 22:27
hi, afaik it is supported theoretically to embed fonts in mp4, but i dont think any tool supports its (at least i dont know one. if any supports it, than propably mp4box)

Carlu
23rd August 2007, 18:22
Hey guys. Im a newbie with subrip and this must be an answered question maybe but I couldn't find it anywhere. Anyway, when I finish the first line of my subtitle I keep getting this error:
Instead of "justice" I get "jus tice". And every word with the letter "t" gets me the same error. How can I correct this?

LRN
23rd August 2007, 18:34
Use post-ocr correction (around the same menu where you save the subtitles at the end) with English language. Or you could make a simple replacement in any text editor: " t"->"t".
Or you could try to tweak OCR machine settings to be less sensitive to intervals between characters. I'm not sure there is an option for such thing though...

Carlu
23rd August 2007, 19:42
Thanks, I did what you said and the problem was solved. In "Advanced Ocr Setup" I increased the "Space Width Setup" and that was it. But I have a problem with the "l" and the "i". Instead of "i", the program thinks its a "l". Any sugestion to correct this?

LRN
23rd August 2007, 20:56
Had the same issue. You could try to make OCR less tolerant to character differences (big slider in Advanced OCR setup, with a range of 0..1000).

By the way, here's an update for TTXT Tools - fixes a bug with string length, like <... text="blah-blah,''blah-lah'HH">. I'm not sure how MP4box reacts on such broken (two H after lineend) strings, but it couldn't be good.

http://lrn.no-ip.info/home/subrip/TTXT_Tools_v0.2.1_src_bin.7z

Now, my next idea is to make a feature like "drop shadow". It is perfectly possible with TTXT - i could just double every sub-title with different color and slightly adjusted position and place them into different layer. It's only one thing that bothers me: should i include this functionality into SubRip, or make a new TTXT Tool for it. Or don't do it and just leave SubRip alone? :)

Carlu
23rd August 2007, 21:32
Yeah.. I adjusted the bar to 1000 and still the "i" gets replaced by the "l".. I have no idea how to solve this problem and its very difficult to correct the entire subtitle with it because its difficult to find the wrong replacements! Is there something Im missing?

prubin
24th August 2007, 00:27
After you rip all the subtitles to text, click on the "Use to Correct some Wrong Characters" button (green color) on the lower toolbar. Make sure you select the correct language, and select the "English Screwed" from the drop-down box.

Yeah.. I adjusted the bar to 1000 and still the "i" gets replaced by the "l"..

GrofLuigi
24th August 2007, 01:47
Yeah.. I adjusted the bar to 1000 and still the "i" gets replaced by the "l".. I have no idea how to solve this problem and its very difficult to correct the entire subtitle with it because its difficult to find the wrong replacements! Is there something Im missing?

A computer isn't able to sort out the differences between capital i and lowercase l because they don't exist in many fonts - they are physically identical. That would require a complex knowledge of the language (English in this case). Because of that, many programs that deal with subtitles have this "post OCR correction". Look it up and try to use it in SubRip, Subtitle Workshop and others...

GL

LRN
24th August 2007, 13:00
Good solution is to use fonts like Arial for subtitle rendering, as they have identical (or almost identical) "I" and "l".

LRN
14th September 2007, 23:23
http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4c_bin.7z - binaries
http://lrn.no-ip.info/home/subrip/SubRip_v1.50_beta_4c_src_bin.7z - sources + binaries
http://lrn.no-ip.info/home/subrip/TTXT_Tools_v0.3_src_bin.7z
Fixed major TTXT color bug. I wonder why noone reported it :( . This bug causes first text line to be custom (not DVD native) color (white by default) even if "use native DVD color" option is enabled.
Also i changed versionstr, now window title and about dialog shows proper "1.50 beta 4c" version string.
New TTXT Tools version features new tool - TTXT_resize. Allows you to change positioning info. If you resize original DVD image (you're making RIP with reduced resolution or it's just anamorthic and requires vertical resize), subtitle positions will not fit (i tried to RIP anamorphic video, and height change from 576 to 400 was enough for subtitles to disappear completely). Resizes horizontally and vertically by percentage. Could round floating point numbers up or down (down is default; maybe i'll change that later, for my first use of this tool i had to use up-rounding). Could resize textboxes or just move them (default). Resizing textboxes could cause some subtitles to be crop'ed if you didn't changed font size too (TTXT_resize does not changes font size; i thought about this feature though).
Fixed bug with escape sequences (sometimes some tools did not used escapes).
All TTXT tools now support '-' instead of filename to read/write from/to stdin/stdout. Pretty useless - i tried to write another tool for mass-processing (whould have use findfirst/next/close, spawnv and child process stdout redirect) and failed.

---EDIT @ 15.09.2007 10:31 GMT
Silently updated 4c archives (fixes another annoying glitch). Redownload them if you did so before now.

---EDIT @ 27.10.2007 19:18 GMT

Silently updated TTXT tools v0.3 archive, now compiled with /MT instead of /MD.

pcjco04
28th September 2007, 08:12
Hi,

When saving a subtitle file, SubRip proposes a default name based on the name of VOB file and on the language (vts_01_0.English.srt for example).

But, when there are some non ANSI characters (UNICODE), the default name is always NewFile.srt.

Regards.

LRN
4th October 2007, 18:17
By the way, i think it would be good to remind you that current SubRip developer is ai4spam, and that ai4spam is busy, and will be busy indefinitely long. While i am just fixing all kind of mess i created by starting this "TTXT format export" feature in SubRip, and i will not touch anything else in SubRip.
Do not be afflicted if your feature requests/bug reports will not be satisfied for a...year? Two years?

Teebeeke
1st November 2007, 10:47
Can anyone tell me why i have this weird looking chars with every sub i try ?
I never had this problem, but i formatted my pc and installed the latest subrip version.

http://img256.imageshack.us/img256/9250/subrippm6.th.png (http://img256.imageshack.us/my.php?image=subrippm6.png)

LRN
1st November 2007, 12:52
Looks like some sort of...i don't know...bug? I mean, subtitles are fine, and SubRip analyzes them fine (no corruption at that stage), but shows them wrong. And there's a strange corruption in top-left corner.
Try SubRip v1.50b4c. I can't give you any other counsel than that...

Teebeeke
1st November 2007, 13:10
I got the old 1.40b3 from a backup dvd i had and there the subs are shown just fine.
Gonna download a previous version from current one later on.

manusse
1st November 2007, 15:00
Have a look at here (http://forum.doom9.org/showthread.php?p=913258#post913258).

Teebeeke
1st November 2007, 15:38
Turning OFF both "Use VOB's subtitle map" & "Use IDX's file offsets" worked !!!

But only after I erased the SubRip.ini file from SubRip home directory [alike starting from a scrath new install ]

Very strange .... but at least it works now !
Thanks 'ai4spam' !


Turning off both those options seems to work here also

ericf
1st January 2008, 09:49
I have this problem:
the character matrix seems to make mistakes with n't.

This is what I get a lot of the time:
arert doesert hadrt hasrt strt wasrt won'th(worth).

I cannot find anything in the matix that would cause this. I keep deleting all characters involved but the problem keeps coming up.

Any suggestions?
Thanks

ericf

gwaitsi
5th January 2008, 11:16
just tried 1.5 to do my first dvd conversion.

very cool man....

only thing i found. nero recode 3 does not like the .srt files from it.
not sure if it is a recode problem or subrip problem.

question, which is better and why .srt or .ttxt?

thanks

LRN
5th January 2008, 13:39
Nero Recode suxxors. At least Nero Recode 2. I don't know, maybe they fixed all bugs in 3rd version, but i doubt it.
SRT is a native SubRip subtitles format. It was developed along with initial SubRip versions, afaik. Thus when it comes to 'is this srt file of proper format?' you should look at SubRip's output - this is the real thing, not something Nero Recode thinks it should be. Well, there MAY be some kind of bug in 1.5 srt output, but not likely.
TTXT is an implementation (by GPAC project) of 3GPP Timed Text format. Or, to be precise, it is a temporary format that is used to feed Timed Text into MP4Box (part of GPAC toolset), where it is transformed to real (binary) Timed Text (as a side effect, you cannot demux Timed Text from mp4 - well, you can, but it will be in binary form, which is pretty useless at the moment).
It is possible to transform subtitles from TTXT to SRT (only theoretically, there is no tool for that afaik) and back (MP4Box does that), but SOME information that HAS to be stored in TTXT, cannot be stored in SRT and may only be obtained from DVD. Thus if you are going to mux subtitles into mp4 container via mp4box, you may consider using TTXT from the very beginning. It is not always simple - a few things may be necessary to be done with TTXT file after you rip subtitles into it, like time shift, textbox resize, split; i created a few tools for that, but they are buggy and lame. And TTXT subtitles support is not the most widespread feature around.
If you don't know anything about mp4 or mp4box, they you should stick to SRT.

gwaitsi
8th January 2008, 14:39
LRN, thanks for the info.

I got to the problem with my test srt file.
For some reason the file had a double entry with the second entry starting and the end point of the first entry.

This did not exist on the original vobsub but once removed, the srt file imported into recode 3 fine.

There seems to be another issue with encoding srt in the container and showtime, but that does not seem to be relevant here.

cheers

LRN
8th January 2008, 14:59
Double entries happen. It's a feature, not a bug :)

Poopoo
24th January 2008, 23:30
Can anyone tell me why I always have the same problems ?

I'm using SubRip 1.50 beta4, my main subtitle language is Dutch/Nederlands. For all of my movies subrip always misdetects small L (l) and big I (I), so most dutch words like "Ik", "In", "Is" etc... are being misdetected ?

I can't save a custom matrix because SubRip doesn't detect them anyway, Allthough it does show the "What Is" dialog the first time it encounters a small L (l), when it continues, it reads them wrong again.

Also for words ending with "l" or "r" subrip doesn't even detect the space following them, resulting in a complete faulty .SRT file.

LRN
25th January 2008, 08:38
small L ("l") and big I ("I") confusion happens because it is not possible to distinguish between these two without knowing the context. SubRip does not knows anything about context, so it confuses them. All the time. To solve this, use i-l independent font to display subtitles. Words will be wrong, but since you can't see the difference between "I" and "l", it does not matters :)
About space detection - try to adjust OCR settings.

Poopoo
26th January 2008, 04:32
Thanks for the help LRN.

tomos
8th March 2008, 03:07
Hoping someone can help (tried search but nothing relevant came up). I'm having problems saving the text that subrip creates.

By that I mean, it does it's thing, I can see all the ripped subs there, but when trying to save - nothing happens. I dont get this fault for everything i try to rip.

E.g. i'm trying to rip my DBZ movie DVD's and I do one - works fine. move on to the next - alls fine till the end.

http://img141.imageshack.us/img141/9539/save1yz5.jpg

i click save and instead of a 'save as' popup, i just stay with the 'subtitles window and instead of the 'save' button I have 2 checkboxes


http://img119.imageshack.us/img119/1920/save2bf5.jpg

F - format the subtitle text
V - auto scroll down to show the last subtitles

started from scratch but same thing happens. Always on same movies too.Cant even ctrl+a to select text and copy it myself to notepad or something :( I have no idea why it freaks on some movies.

talen9
13th April 2008, 01:15
@tomos: you want to look at this thread (http://forum.doom9.org/showthread.php?t=124669) ;)

tomos
13th April 2008, 12:28
hope that 'fix' works

thanks :)

vartaxe
28th April 2008, 20:11
someone help me please

i need to convert those subs to .srt... but it's almost impossible i mean the ocr detects like 4 parts of each letter...

_http://www.sendspace.com/file/s9rpry

unskinnyboy
30th April 2008, 03:45
someone help me please

i need to convert those subs to .srt... but it's almost impossible i mean the ocr detects like 4 parts of each letter...

_http://www.sendspace.com/file/s9rpryIn this particular case, any easier way would be to use VobSub package's SubResync - just be prepared to hit the Extend button a lot. But works better than SubRip.

bmnot
21st May 2008, 15:34
My workaround for the striped subtitles bug was to rename the .idx file and use only the .sub file => OCR works, but the lines are invisible in the preview (only current character is visible) and I have to restart Subrip for each subtitle stream, or else the timecode offset will get bigger and bigger. So not really a solution. I hope b4c works.

Those links to the current builds http://lrn.no-ip.info/home/subrip/ are really hard to find. They should be on page 1 of this thread and on the "Useful Software" page (still points to v1.30!). Not to mention the About in Subrip itself, it only points to zuggy's website and to two dead sites.

manusse
21st May 2008, 19:11
@bmnot,

I had an idea regarding your problem. Maybe you can try to open your sub (without idx) with SubtitleCreator and save it as VobSub. It should recreate and idx file that may work better?

Cheers
Manusse

Elias
21st May 2008, 22:33
Is this project still alive and kicking for Windows? There hasn't been any updates in over a year or so. I am using 1.50b4 and it has lots of buggs (such as, creating spaces when it's not supposed to be a space) and mistaking I for l, etc.

Encoder888
10th July 2008, 17:19
I hope someone can help me with this, I tried extracting the subtitles for Vantage Point and everything seems fine except they start a little over a minute after they are supposed to and I just can't figure out why... Ive been trying to figure it out for over 2 days now i tried different versions, settings, input methods, nothing helps. Anyone else experience the same problem ? I know i can adjust them manually but id rather not, i really want them to be perfectly synced so.
.. Any help is appreciated!! Thanks.

slk001
15th July 2008, 18:10
I hope someone can help me with this, I tried extracting the subtitles for Vantage Point and everything seems fine except they start a little over a minute after they are supposed to and I just can't figure out why... Ive been trying to figure it out for over 2 days now i tried different versions, settings, input methods, nothing helps. Anyone else experience the same problem ? I know i can adjust them manually but id rather not, i really want them to be perfectly synced so.
.. Any help is appreciated!! Thanks.

Just adjust the time on your subtitles so they are sync'ed and move on with your life. What happened was somewhere along the line an offset that was in your original DVD was removed during a recode.

Why? Who knows... Just because someone builds DVDs for a living doesn't mean that he is an expert, or even competent to do so. Many DVDs are put together so badly as to question the competence of the "compiler".

ericf
17th August 2008, 17:16
I found out that the problem I had with wsn't becoming wasrt and worth becoming won'th was because of the OCR correction.

If you uncheck the three boxes at the bottom (in fromt of the english_screwed box that is at the bottom right) this won't happen. It'll only change the l to I where appropriate.
ericf

kabster
19th August 2008, 08:03
ok....

subrip works fine ...except ....

Why is it it messes up the timings of my perfectly synched .srt file !?? The times are moved by like -00:00:00:70 hours when i import the file to begin whit!!

And to make things wurse, i cant seem to fix it using speed modifications !!

When i try and remove/add 700 ms to EACH and EVERY subtitle it actualy adds much more +ms or allot less -ms but NEVER the exact vallue !!???

As a result the subs show too late or either to earlie in my re-autherd movie !!!!

Wot can be done about this folks!!!

picrade
28th August 2008, 07:20
ok....

subrip works fine ...except ....

Why is it it messes up the timings of my perfectly synched .srt file !?? The times are moved by like -00:00:00:70 hours when i import the file to begin whit!!



What is the output format set to in SubRip?
It doesn't mess up the timings. It is probably converting it to a different format and you are misinterpreting the converted timings.
It can convert to quite a few formats. Some are time based, some are frame based.

kabster
17th September 2008, 03:12
What is the output format set to in SubRip?
It doesn't mess up the timings. It is probably converting it to a different format and you are misinterpreting the converted timings.
It can convert to quite a few formats. Some are time based, some are frame based.

I hate to say it , but it does mess up the timings!! At least it sure does looks like it afterwards when watching my compiled / reauthored dvd!!

The format i try to convert into is either .SON or .STL both and only format (me thinks) dvd maestro can handle !!

And the only thing i can do about is, is to make sure i add an Delay of prox -700 ms everytime i use subrip picrade!!

I fail to see why it doesnt mess up timings to you, when infact the subs either show up to late (most of the time) or to early using subripped converted subs !?

I have the same issue , whit either demuxed subs directly from the dvd source using subrip or using OCR ripped subs through subrip!

edit: Let say its because 1 format is time based and another is frame based!!
The srt sub i try to convert is timed correctly and is already converted to the correct same frame rate the movie has before i even use subrip!?

And still, the timings are horrible OFFSET after using subrip!!!

I always need to RESYNCH them damn!!

kabster,

picrade
23rd September 2008, 05:45
Well, all I can say is that I have used SubRip at least 100 times and never had any synch problem.
I use Maestro as authoring tool and extract bitmaps directly from DVD (.son format). I rarely use .srt or the OCR.

Not seeing exactly what you are doing it is difficult to say what the problem is.

Is that delay of 700ms the same in every DVD you reauthor?
Are they PAL or NTSC format? (Mine is NTSC)
Give the title of a few movies you have this trouble with.
Post the timings of the first and last subtitles from the .son file when you extract directly from the DVD.
Open the DVD in DVDSubEdit, full domain, and post the timings of the first and last subs from the same stream as in the .son file.

Gokumon
11th October 2008, 03:32
I don't know if anyone will be interested but I am rewriting and refactoring SubRip into C# with an end goal of having it be able to run on Mono. I'll hopefully have something up and running in a few weeks but I can't make any guarantees as, like ai4spam has said previously, the current code base for SubRip is a big mess.

avivahl
18th October 2008, 11:25
I don't know if anyone will be interested but I am rewriting and refactoring SubRip into C# with an end goal of having it be able to run on Mono. I'll hopefully have something up and running in a few weeks but I can't make any guarantees as, like ai4spam has said previously, the current code base for SubRip is a big mess.
A C# rewriting would be an amazing project.

Gokumon
19th October 2008, 01:27
A C# rewriting would be an amazing project.

Yeah, I hope to end up with something rather nice and easy to work with. It's just been so far a slow and tedious process getting stuff translated over.

kabster
20th October 2008, 13:01
Well, all I can say is that I have used SubRip at least 100 times and never had any synch problem.
I use Maestro as authoring tool and extract bitmaps directly from DVD (.son format). I rarely use .srt or the OCR.


Thats very VerRY hard to believe, not to say complete nonesens!


Not seeing exactly what you are doing it is difficult to say what the problem is.

Wot iam doing is probebly just the same as you woud do to get the subs!! Meaning , either using OCR (save to text) or Demux (save as bmp/sup) !! NOt many options left are there !!
I read emm strait from my hard drive (video_ts) folder !!


Is that delay of 700ms the same in every DVD you reauthor?
Are they PAL or NTSC format? (Mine is NTSC)


Not always that amount of time no... And it happends BOTH whit PAL and NTSC sources!!!
Its realy strange how i most of the time A+L+W+A+Y+S need to RE-Synch them after ripped the original subs to keep them playing in synch whit the movie through MPC6. And when i need and convert them to .stl format ( meastro) ill need to synchronize them again by adding delay's through time correction !!!!!!!?


Give the title of a few movies you have this trouble with.
Post the timings of the first and last subtitles from the .son file when you extract directly from the DVD.
Open the DVD in DVDSubEdit, full domain, and post the timings of the first and last subs from the same stream as in the .son file.

I dont have a direct stream, as its uselless to import them in meastro because of the synch problem you know!! But i can give you an comparison of .srt ripped subs yes..

And SubEdit somehow suffers the same fate !! I need submagic to re-synch them almost everytime!!


For wot its worth ill give you an fresh ripped english stream from the movie " Journey to the center of the earth 2008". This stream needed to be synchronized aswell by removing ALMOST A WHOLE MINUTE :eek::eek:


This is orginal ripped untouched sub (not playing in synch)


Start time:

00:01:58,383 --> 00:02:00,551
Trevor!

End time:
01:26:49,216 --> 01:26:50,817
Come on.


And now the timings from an perfectly good re-synched subtitle:


Start time:
00:01:08,983 --> 00:01:11,151
Trevor.

End Time:
01:25:59,816 --> 01:26:01,816
Come on.



Now, iam not sure wots going on here !! But DVdSubedit shows the first line (star time) of the ripped sub in question at 00:01:07 !!!

But once i save it to a file and re-open the sub instead of 1:07 minute it shows 1:58 minutes !!!!?

So, theres something realy WEIRD going on there !!!

Still not fixed whit the latest release of subedit 1.5 !!


rgds,

kabster,

ai4spam
1st November 2008, 06:19
I don't know if anyone will be interested but I am rewriting and refactoring SubRip into C# with an end goal of having it be able to run on Mono. I'll hopefully have something up and running in a few weeks but I can't make any guarantees as, like ai4spam has said previously, the current code base for SubRip is a big mess.

That's a bit of an understatement ;). Good luck re-coding. I suggest you start by using some C source from guliverkli: http://sourceforge.net/projects/guliverkli/. That will give you C code that reads and writes .idx/.sub files properly (VSRip http://sourceforge.net/project/showfiles.php?group_id=82303&package_id=84442), and even does OCR (SubResync). Obviously a lot of things will still be missing, but it's a start.

To everyone else: sorry for the lack of updates, I have too much going on in my life right now and no time to deal with this mess. I have a more advanced beta version that I use, with character matrix synthesis and rudimentary/incomplete support for external OCR engines, but it's too buggy to release and I haven't touched the code in months. If anyone wants to try their luck at it, email me.

vartaxe
1st November 2008, 17:32
release those buggy builds mate :)

JoeBG
2nd November 2008, 07:08
I don't know if anyone will be interested but I am rewriting and refactoring SubRip into C# with an end goal of having it be able to run on Mono.

This would be really great. Many people are waiting for it. :thanks:

Gokumon
8th November 2008, 19:51
That's a bit of an understatement ;). Good luck re-coding.

Thanks, it's definitely been far harder than I thought just to do the initial translating of the code to C#.

I suggest you start by using some C source from guliverkli: http://sourceforge.net/projects/guliverkli/. That will give you C code that reads and writes .idx/.sub files properly (VSRip http://sourceforge.net/project/showfiles.php?group_id=82303&package_id=84442), and even does OCR (SubResync). Obviously a lot of things will still be missing, but it's a start.

Where are the actually source files for VSRip? All that it has on the site is the compiled dll.

To everyone else: sorry for the lack of updates, I have too much going on in my life right now and no time to deal with this mess. I have a more advanced beta version that I use, with character matrix synthesis and rudimentary/incomplete support for external OCR engines, but it's too buggy to release and I haven't touched the code in months. If anyone wants to try their luck at it, email me.

I would definitely be interested in the source.

ETA: Oops, I found the source. I forgot about having to click the more tab in SourceForge for it to bring up the code tab.

Gokumon
8th November 2008, 20:01
This would be really great. Many people are waiting for it. :thanks:

Hehe well if the current pace of work continues it may either be close to the end of the year or early next year before I get a working test build done. Not only is the source difficult at times to work but it's been something of a big learning curve in figuring out what exactly is happening, as I've never done any work with subtitles before, to make sure that none of the functionality gets broken as I translate it over. This is making my progress a bit slower than I expected, but as soon as I have something ready that people can use I will post it. I will try to keep people informed on my progress as it goes along.

odyssey
14th December 2008, 23:31
I've ripped idx/sub files from mplayer and they work perfectly when I mux them and playback, but they appear corrupt when I open them in SubRip. Some lines appear with interlacing-like artefacts and other lines are completely unreadable and with wrong colors etc.

Why is this? Can I fix it somehow?

muci
15th December 2008, 15:42
Hy! Can someone tell me what should I do when I get letters like these?
http://www.shrani.si/f/1u/J/1fyz3Yd0/subrip.png

I'm using 1.40, tried with 1.50 and it's the same.

odyssey
15th December 2008, 23:33
Hy! Can someone tell me what should I do when I get letters like these?
They look pretty much the same as the one I'm referring to in my last post.

muci
16th December 2008, 11:03
Did you find a solution?

odyssey
16th December 2008, 17:22
No, as you can see noone has replied...

How did you get these subs?

muci
16th December 2008, 18:42
They're on DVD (vob, ifo files). Strange, I never had a problem with Subrip before.

ai4spam
30th December 2008, 21:06
Well, the general recommendation is to try "Change text color" and select ONLY the text, without outlines.
In your situation, it may be the case that the text color just happens to LOOK the same as the background, but recognition works anyway.

LeXXuz
25th January 2009, 14:40
I've ripped idx/sub files from mplayer and they work perfectly when I mux them and playback, but they appear corrupt when I open them in SubRip. Some lines appear with interlacing-like artefacts and other lines are completely unreadable and with wrong colors etc.

Why is this? Can I fix it somehow?

I have exactly the same problem with almost all vobsub files. I have to convert all my encodes with vobsub files to srt, because WD TV Player does not accept picture based subtitle files. :(

The subs look like in this screenshot:
http://img3.imagebanana.com/img/fm980qt4/thumb/subrip.PNG (http://img3.imagebanana.com/view/fm980qt4/subrip.PNG)

When I play these subs on my Tvix Box or with mpc+vsfilter they look just fine.

Any ideas?

manusse
25th January 2009, 15:23
Hi,

Could you please post the problematic sub/idx file.
(post a link to rapidshare or similar)

Thanks
Manusse

LeXXuz
25th January 2009, 15:43
Hi,

Could you please post the problematic sub/idx file.
(post a link to rapidshare or similar)

Thanks
Manusse

No problem. Here you go:
http://rapidshare.com/files/189209258/subs.rar

I put 5 different subfiles into that archive. They all look more or less distorted in SubRip. :(

manusse
25th January 2009, 18:20
@LeXXuz and muci

Try this: http://forum.doom9.org/showthread.php?p=1178709#post1178709

Cheers
Manusse

LeXXuz
25th January 2009, 21:27
@LeXXuz and muci

Try this: http://forum.doom9.org/showthread.php?p=1178709#post1178709

Cheers
Manusse

You're the man, Manusse! :thanks:

Now it works just fine. :D

Do you know what this option does, and when it is needed?

Mugeb
20th February 2009, 20:32
Thanks for the link Manusse.

Betsy25
21st April 2009, 00:42
I have some problems with SubRip not correctly detecting the subtitle timings.

After I created a Movie only image with DVD Shrink, and after removing the first 30 seconds (little intro) from the movie, using DVD Shrink "Set Start/End Frames" option, and re-creating the DVD.

If I play the resulting DVD image DVD Shrink created in MPC, the subtitles appear correctly, however when you use a subtitle extracter like SubRip, it will "see" the wrong timings for the subs.

For example, using the Set Start Frame in Shrink, If you remove the first 30 seconds of a movie, Subrip will misread the subs by those 30 seconds. In other words, It "sees" the original times from before Shrink cut away the first 30 secs.

I cannot use the "timing adjustment" options from SubRip since DVD Shrink will only show some like "30s, 21frames" when repositioning the start of the resulting movie.

Is that a known problem please, or did I do something incorrectly ?

Daveyboyc
2nd July 2009, 16:47
does anyone have a solution for ripping dvb subtitles (i.e from tv recordings) using subrip/other ocr?
i've been trying to do it for ages and cant find a good solution.
i really need it to work as i'm trying to build a database from tv recordings using the subtitles (in text format) whereby i can search through recording using keyword search terms.

any ideas?

Weirdo
13th August 2009, 13:44
A never before experienced OCR issue: After a while of proper recognition, with the usual Bold-Blue characters, transparent characters show up (screen #1), forcing me to manually enter the whole subtitle.
The weirdness continues with garbled characters (#2) and 'undetectable' ones ('halfway' detection, #3).
Could this be a dvd rip issue? (Clone DVD with latest Any DVD in the background, subtitle transparency option, unchecked). Never had this problem.

Thanks


http://img268.imageshack.us/img268/153/subripissue.th.jpg (http://img268.imageshack.us/my.php?image=subripissue.jpg) http://img10.imageshack.us/img10/8531/subripissue2.th.jpg (http://img10.imageshack.us/my.php?image=subripissue2.jpg) http://img24.imageshack.us/img24/2369/subripissue3.th.jpg (http://img24.imageshack.us/my.php?image=subripissue3.jpg)

nurbs
13th August 2009, 14:21
Try the "change text color" button. Sometimes SubRip autodetects the wrong colors and causes issues like #1 and #3. Alternatively the subtitle itself may be the problem, but it's unlikely to be a rip issue unless you have problems with the audio and video as well.

Weirdo
13th August 2009, 14:49
Thanks nurbs, selecting the white colour alone, saved me some time, #2 remains (looks like bad dvd authoring).
A minor problem I discovered now is that many of Subrip's options/icons disappear (out of window) due to my high DPI setting. They can be selected with tab/enter of course, but playing with Vista's 'compatibility' options didn't help.

vjHeaven
17th August 2009, 13:52
Hello guys
My problem is:
http://img149.imageshack.us/img149/7586/40355325.th.png (http://img149.imageshack.us/i/40355325.png/)

The subtitle position seems to be lower then usual and it`s not scanned entirely. The problem appear only at the first VOB.
What can i do in this situation?

Weirdo
17th August 2009, 14:39
Looks similar to my previous post (screen #2). Only solution I could find is to enter it manually... :(

dwrbudr
20th August 2009, 09:29
Can someone help me rip these subtitles? SubRip freezes after the first line. There are probably corrupt, is there any way to fix them?

http://4storing.com/y3qc0r/da1d8845e7da656a0eda665a8e746740.html

Click on the blue button and wait a minute then download the file.

deank
26th August 2009, 21:45
Can someone help me rip these subtitles? SubRip freezes after the first line. There are probably corrupt, is there any way to fix them?


Try again with these re-processed: link (http://rapidshare.com/files/271868918/ttm.rar)

dwrbudr
27th August 2009, 09:26
How did you fix them?

deank
27th August 2009, 10:19
With bdsup2sub.

Weirdo
28th August 2009, 13:46
Tried to open the subs that caused me a similar problem with SubRip, but BDSup2Sup gives "Unexpected command 0 at index 0x00000012". This (http://rapidshare.com/files/272569927/25.rar) is the dvd-extracted .sup file. It seems to open with Subtitle Creator but no time to check atm.pass=subsub

0xdeadbeef
7th September 2009, 22:40
Tried to open the subs that caused me a similar problem with SubRip, but BDSup2Sup gives "Unexpected command 0 at index 0x00000012". This (http://rapidshare.com/files/272569927/25.rar) is the dvd-extracted .sup file. It seems to open with Subtitle Creator but no time to check atm.

If you would have bothered to read BDSup2Sub's online documentation, you would know that BDSup2Sub assumes a SUP file starting with "SP" to be a HD-DVD-SUP. Since indeed DVD-SUP and HD-DVD-SUP share the same package structure, it is not that easy do differentiate between both formats at first look.
Anyway, just copy a dummy IFO with the same name in the same directory and load that instead. You'll see that BDSup2Sub will import your sample without a single warning. If you don't have a dummy IFO file, simply create one by exporting another subtitle to SUP/IFO.

PatlaborForce
30th September 2009, 16:36
I don't know how many people are interested but I started a port of SubRip to C#. that I've called SubRipX (http://code.google.com/p/subripx/). At this point I'm just recreating all the GUI forms in WinForms to start out with and hopefully by the end of next week I will finish with that, since I can't devote my full time the next couple weeks to this, so I can start the major part of the porting.

vartaxe
30th September 2009, 22:50
I don't know how many people are interested but I started a port of SubRip to C#. that I've called SubRipX (http://code.google.com/p/subripx/). At this point I'm just recreating all the GUI forms in WinForms to start out with and hopefully by the end of next week I will finish with that, since I can't devote my full time the next couple weeks to this, so I can start the major part of the porting.

one word -> awesome!:thanks:

ai4spam
12th November 2009, 08:43
@PatlaborForce:
As I suggested earlier to Gokumon when he said he was starting a similar project (see previous page of this thread): start by using some C source from guliverkli: http://sourceforge.net/projects/guliverkli/ . That will give you C code that reads and writes .idx/.sub files properly (VSRip http://sourceforge.net/project/showfiles.php?group_id=82303&package_id=84442 ), and even does OCR (SubResync). Obviously a lot of things will still be missing, but it's a start.

muci
6th January 2010, 22:41
Hy! I have a bit of problem. I'm trying to rip IDX subtitles. When i load them in SubRip, I also load my CHMatrix, which has almost all characters, but for some reason it doesn't recognize it now. Here's the picture.
http://www.shrani.si/?2Q/qe/1GyC3OgD/subrip.png
What should I do?

medp7060
8th January 2010, 23:35
The enclosed files can be correctly opened and used by VobSub, but both cannot be processed by SubRip 1.50 b4 correctly.

181.sup - the original DVB subtitle demuxed by ProjextX

181.idx/181.sub - Vobsub directly converted from 181.sup by SubtitleCreator v2.3rc1

182.idx/182.sub - Vobsub converted from 181.sup by SubtitleCreator v2.3rc1 after adjusted the colours into black/white.

http://rapidshare.com/files/332391856/181sup.rar

Does SubRip lack the ability to process DVB subtitles? I have no problem to OCR DVD subtitles.

osgZach
20th January 2010, 21:33
Sorry if this has been asked before (its a huge thread after all), but I'd like to know how (if possible) to prevent Subrip from skipping ANY subtitle line for any reason.

For instance, when I finished OCR'ing some subs, the main program window lists the total VOB Pictures as 39, but the text window after OCR only goes up to Index 37 and says 2 were skipped for being too short/small ?

I looked around but can't tell what to change (if anything, hopefully) to prevent this from happening. I at least want to know that it isn't crucial dialogue or something I can correct myself. I turned "Skip subtitles shorter than" down to 0ms in gobal options, but that didn't seem to change anything.. Is it something under Advanced OCR?

Mauron
13th March 2010, 09:06
Any news about this good program?

vartaxe
13th March 2010, 15:09
i would say subrip just like subtitle workshop are dead projects right know...

lych_necross
14th March 2010, 07:17
http://img.photobucket.com/albums/v145/crushedbyastereo/darth_vader_nooo1.jpg

Mauron
14th March 2010, 07:33
So, is there an alternative and supported program that can do what SubRip does?

lych_necross
15th March 2010, 07:28
Maybe, I still use Subrip as it works fine for me. You could try easySUP (its still actively developed).

Rarok
21st April 2010, 02:04
Hello, Ive been using from a time ago subrip for getting the subs from DVDs and it always worked perfectly. But now I'm trying to use it for hardsubs and I'm being crazy with it. I'm always getting white zones that I can't take off without deleting the real text.

I'm using the Fill: Open and large areas, and the color text at 30. The only thing I didn't tried are the Frames options, but I don't undertand how they work, at least I undertand that the Skip First is when the text has fading but it's not the thing so I put it on 0, but for "update every" and "min.duration" I don't know if they can help me.

Prettz
26th May 2010, 05:25
Hello, Ive been using from a time ago subrip for getting the subs from DVDs and it always worked perfectly. But now I'm trying to use it for hardsubs and I'm being crazy with it. I'm always getting white zones that I can't take off without deleting the real text.

I'm using the Fill: Open and large areas, and the color text at 30. The only thing I didn't tried are the Frames options, but I don't undertand how they work, at least I undertand that the Skip First is when the text has fading but it's not the thing so I put it on 0, but for "update every" and "min.duration" I don't know if they can help me.
I just started playing around today with using SubRip to pull hardcoded subs from a Divx file -- one with low resolution and terrible video quality, unfortunately. I'm still playing around with the maze of buttons to figure out what does what and why, but not making much progress. The OCR seems to pick up on everything EXCEPT the subtitles, even when I click the image to pick a text and outline color. The low quality and video resolution means the text itself is full of slightly different colors due to compression, and SubRip doesn't seem to be able to handle that. I'll be checking back in this thread if I've had any breakthroughs -- or if I've made no progress at all.

Right now I'm working on instead feeding SubRip an avisynth script full of filters to denoise, smooth, and flatten everything out so the finicky OCR can pick out the letters. MSmooth is my current hopeful for doing most of the work, but it still doesn't seem to be enough.

The ability to scan hardcoded subs out of arbitrary video files is a genius feature, god bless whoever wrote it, but it's definitely still incomplete.

TheFluff
26th May 2010, 21:12
OCR only works decently if the letters look similar each time they appear and if edges are easily detectable. Your video sounds like it doesn't fulfill either of those requirements so no OCR engine will be able to make much sense of it. It's probably faster to just copy the subs by hand.

Prettz
28th May 2010, 02:06
OCR only works decently if the letters look similar each time they appear and if edges are easily detectable. Your video sounds like it doesn't fulfill either of those requirements so no OCR engine will be able to make much sense of it. It's probably faster to just copy the subs by hand.
You're right about my video being total crap. But I'm determined to use the OCR; for one thing, I've got to get the timings. There's no way I'm going to do the entire subtitling process by hand (and for the first time ever), hell no. So I at least needed to try to get it so SubRip could recognize when there are subs and when there aren't, otherwise it interrupts every few frames and asks me to enter the entire subtitle (when there isn't one on screen).

After tons of trial and error I've finally come up with an Avisynth script that gets SubRip to behave acceptably. Although there's probably more I could do, I don't have much experience using filters to dramatically change the picture. After playing around with other options I came back to MSmooth because it does the effect I need best. There was also no way to get any kind of acceptable results without feeding SubRip a greatly upscaled video res.

LoadPlugin("C:\Program Files (x86)\Avisynth 2.5\plugins\RemoveGrainSSE3.dll")
LoadPlugin("C:\Program Files (x86)\Avisynth 2.5\plugins\FluxSmooth.dll")
LoadPlugin("C:\Program Files (x86)\Avisynth 2.5\plugins\MSmooth.dll")
LoadPlugin("C:\Program Files (x86)\Avisynth 2.5\plugins\WarpSharpYV12.dll")


AviSource("E:\Video2\Anime\Kiki's Delivery Service (sub).avi") #560x320

Crop(32,252,-32,0,align=true) #496x68

FluxSmoothST(4,4)
RemoveGrain(mode=1)

BicubicResize(1736,238,b=1/3,c=1/3)
RemoveGrain(mode=1)
MSmooth(threshold=20,strength=5,chroma=true,highq=true)
RemoveGrain(mode=1)
WarpSharp(depth=90,blur=4)
FluxSmoothST(6,6)
RemoveGrain(mode=1)

ConvertToRGB32()
LanczosResize(992,136)
ConvertToRGB24()

My use of FluxSmooth here probably isn't having any helpful effect, but I don't think it's having a detrimental effect on the picture for the later filters, so I keep it there "just in case". Same thing with RemoveGrain. The text still has many different shades of yellow and yellow-green in it (even within the same letter) and there's definitely nothing that can be done about that. So I needed jack the OCR's text color tolerance way, way up.

I'm still not sure whether the filtering task I'm trying to accomplish would be more effective in YV12, with subsampled chroma, or in a 1:1 color space. No way to test that, obviously, so it's just a theoretical question.

Prettz
28th May 2010, 03:26
I seem to have triggered an infinite loop in SubRip when I was in the "View/Edit Character Matrix" dialog while the OCR-from-video-file process was on, but stopped. I pressed the "Delete This Character" button while a zero-character symbol was selected and it did that then froze up. The application doesn't look like it's frozen, but its CPU usage is steady at 100% of one CPU core, and clicking anywhere on its windows just causes Windows' "ding" sound. It's stayed this way for 6 or 7 minutes now. The character matrix was enormous, though; maybe that has something to do with it.

mr.duck
9th July 2010, 20:21
I'm trying to turn my sup file (from DVB TV) into srt. Not many programs are compatible with this. So far I managed to demux with projectX and convert it to bitmaps with DVDSupTools all automatically with the video file name passed as a parameter to a batch file.

Now I need to turn the bitmaps to srt with SubRip. I can do it manually by clicking File >> Open Image Sequence and taking it from there. I need to do it with the CLI. Can anyone go through how to set it up please? Because I can't work out how to do it. I can post the results when it is done if anyone is interested too.

krosswindz
23rd October 2010, 07:10
It would be nice if subrip could join srt files. Subtitle Workshop works but requires the files to be ANSI format. Some of the newer subtitles are either unicode/UTF-8 which it doesnt support afaik.

Buggle
22nd March 2011, 15:21
It would be nice if subrip could join srt files. Subtitle Workshop works but requires the files to be ANSI format. Some of the newer subtitles are either unicode/UTF-8 which it doesnt support afaik.
It's a bit of killing a fly with an elephant, but you could mux them in MkvToolnix and then extract them. Then they'll be joined.
The other option is to install VobSub with the submodification tool. I do not know its name at this point (as I always only join subs when joining vids, and I use MKV only) but you'll find it soon enough. When installed, it works via the context menu.

Foofaraw
22nd March 2011, 21:21
It would be nice if subrip could join srt files. Subtitle Workshop works but requires the files to be ANSI format. Some of the newer subtitles are either unicode/UTF-8 which it doesnt support afaik.

Load them into Notepad++ and convert them to Ansi and save them again.

Frogger13
30th April 2011, 09:21
For all these with big character matrixes and some wrong character, here's a mod that will allow you to easily identify the bad characters in the Matrix entry and correct/delete them:

Links to unofficial version 1.50 beta 5:

Program: http://www.mediafire.com/?d3aa3rp4a43o0bm

Code: http://www.mediafire.com/?epbh8ifhc8pwzvd

Enjoy

danideicide
20th May 2011, 19:27
I have a hardsubed video and i want to get only the timings, can someone tell me how to do it?

lovelove
14th August 2011, 22:45
Hi folks. I don't like my .srt output to be formatted (e.g <i>...</i>), so could you help me with either one of the points below:

1) can I tell SubRip not to format the output (i.e. ignore formatting)?
or
2) is there a clean-up operation in SubRip I could perform to delete formatting tags ?
or
3) in "view/edit character matrix": can I deselct the italics checkbox for all glyphs (I have >5000, too many to do this manually one-by-one) ?

thank you!

(PS: I know I can run a search&replace on the output file with any text editor, if I can avoid doing that each time, that would be great.)

lovelove
22nd August 2011, 16:15
PS: Can SubRip extract/export closed captions (CC)? When selecting files in SubRip which include CCs, SubRip says "Information: Closed Captions detected (2x)". So I was wondering if SubRip can detect them, can SubRip also display and save them to a text file?

Thank you.

lovelove
3rd September 2011, 19:19
other question: I entered a wrong character in the section marked below (in red circle).
Any ideas how to remove it? All my attempts failed. Thank you.

http://img508.imageshack.us/img508/7388/20110903201846screenhun.png

Sven Bent
5th January 2014, 21:25
just a little help
ive uploaded my matrix file for people to grab here

http://www.filedropper.com/sbmatrix

its based on aispam but i did a lot of cleanup on it and have added results from more dvd's


Setup help:
please remember to set sensibility to 1000
and if you have issues with i and the upside down ! in Spanish, then lower "max char top diff..." to 4.


Cleanup:
- Removed all smaller characters (, . ; : ' ") and the alike to avoid wrong detection.
- Removed all "takes with next" characters, since the have a reduced effect to get recognized correctly.
- Removed all instanced of multi character entries
- Manually removed entries based on only partial matching of characters
- Manually removed entries witch contained matching of parts of next/previous character

This was done to reduce false detections as i rather want sub rip to ask me a few more times rather than deliver wrong detections.

Dean007
13th January 2014, 20:42
Anyone has the same problem, where you have to always type same letters over and over again?



just a little help
ive uploaded my matrix file for people to grab here

http://www.filedropper.com/sbmatrix

its based on aispam but i did a lot of cleanup on it and have added results from more dvd's

Thank you, might come in handy!

Sven Bent
14th January 2014, 01:36
Anyone has the same problem, where you have to always type same letters over and over again?


hmm sounds like the character matrix files is not getting saved/read.

Is your char matrix files in a write protected area ?
If its because the characters looks a bit different even though they are the same you can lower the sensibility for this dvd only

Dean007
14th January 2014, 08:42
How do I check for that?

I tried on 2 PCs. First on mine, and then on laptop.

Sven Bent
4th February 2014, 15:04
done with the a section of my wife's dvd list so i thougt it was time to reupload my matrix file

http://www.speedyshare.com/zSgmF/SBmatrix.zip

I've done a bit more cleanup. I removed the (few) "°" entries as the sometimes got detected as the beginning of "%"

Sven Bent
9th April 2014, 05:36
a new matrix file update

http://speedy.sh/5JRf8/SBmatrix.zip

UPDATES:
I've changed my ways a bit with this one. im now including punctuation signs, since the matrix file is soo big now that it can easily run with even more sensitive settings. I've also includes nodes signs, even when they need a "take with next" approach sin no other character can be confussed with the start of a node sign.

Percentage sign that are only partial detect is now deal as a combination of degree sign, forward slash, degree sign.


RECOMMENDED SETTINGS:
its highly recommend to adjust the OCR sensitivity to the following (Options > Advanced OCR setup > OCR engine setup):
100
1
1
2

also make theses lines in you punct.dic file
°/°
%
to ensure corect handling of percentage signs

Disable "correct capital letters" and "format hole words only"
as they make things worse more often than better

Sven Bent
23rd April 2014, 04:25
new matrix file updated

http://speedy.sh/sbrpS/SBmatrix.sum

remember to set those ocr setings to
1000
1
1
2

Sven Bent
11th September 2014, 15:53
New update

http://speedy.sh/unG6F/SBmatrix.zip
* Had a few more dvd's where it had to detect all character. So plenty of stuff updated plus plenty of dvd's with minor updates to the matrix
* 2 characters deleted as they once got misdetected as wrong case
* Also Im now starting to keep entries of multiple characters

Partial detections, noise ftom neighbour characters and take with next are still cleaned out of the matrix to reduce/remove false detections.


Please remember to set OCR sensitivity to:
1000
1
1
2

Dean007
11th September 2014, 16:21
Thank you! Will come in handy :)

gonwk
15th November 2014, 20:41
New update

http://speedy.sh/unG6F/SBmatrix.zip
...

Please remember to set OCR sensitivity to:
1000
1
1
2

Hi Sven Bent,

A Newbie question ...

Q1: Where do I put your file?

Q2: OCR Sensitivity ... for my SubRip, are you talking about under "Advanced OCR Setup" tab and under "OCR Engine Setup" for the numbers that you have suggested?

Because on my I think they are currently as follows ..
980
2
2
6

Am I looking at the right place ... see jpg attached.

Thanks,

G! :)

Sven Bent
24th November 2014, 16:45
You can put the file anywhere really. but i prever to put it in the
"ChMatrix" subfoler of where you installws subrip

E.G.
C:\Program Files\SubRip 1.50b5\ChMatrix



yes you are lookign at the right place.

move the slider so its says 1000
and adjust the values below the slider to
1
1
2


this makes the program search for more exact copies.
The trade of is it might not find one the resembles close enough and ask you to define the character. however with this big database it should happen very rarely. and the improved accuracy lower the riscs of getting wrong but similiar character like "i" and the reverse "!" from spanish.

if you want it to "guess" a bit more you can increase it to 2.2.2 to reduce the number of times it will ask you. i would not go above 2 2 2


-- edit --
If you want it to go a bit faster disable "show pict." and the autoscroll in the text window it helps a bit on systems under heavyload

gonwk
24th November 2014, 22:43
Hi Sven Bent,

Thanks for your dummy-proof explanation. Appreciate the Help.

G! :thanks:

Sven Bent
5th December 2014, 06:19
just a little update I'm now hosting the file myself so i don't need to upload it everytime i update it

http://162.248.14.188:12380/

Note that this is the direct link to my file that i work with, so every time I've done some subtitles work, the file is updated.
so basically its always up to date

gonwk
7th December 2014, 03:46
Hi SubRip team,

@ SubRip team, I downloaded and tried both SubRip 1.50 b6 and b7 versions and the Text and Outline Color does Not work, I mean it does not give the 3 Color Bar Choices, it stays Blank.

@ Sven Bent, I was wondering if SubRip can do Chinese Characters!?!? I don't read or speak Chinese ... so, I wonder if the Chinese OCR can be made Dummy Proof? Is this possible?

Thanks,

G! :)

Dean007
7th December 2014, 14:19
just a little update I'm now hosting the file myself so i don't need to upload it everytime i update it

http://162.248.14.188:12380/

Note that this is the direct link to my file that i work with, so every time I've done some subtitles work, the file is updated.
so basically its always up to date
Thank you for this! Really appreciate it! :)

I do have a problem! In v1.50b5 when I try to rip subtitles (idx) I get this, and for every single letter
http://shrani.si/t/2Q/hz/jhsLX24/150b5.jpg (http://shrani.si/?2Q/hz/jhsLX24/150b5.png)

In 1.50b7 same subtitles I get this
http://shrani.si/t/U/PS/M672Z1U/150b7.jpg (http://shrani.si/?U/PS/M672Z1U/150b7.png)

Any suggestions?

Sven Bent
9th December 2014, 16:35
i dont know abotu the b7 version it looks like the data is getting corrupted before it hits the ocr part.

In regards to b5 does it ask you for identifying all characters ?
if so you might just have hit a very different font than has ever gone though my subrip.
if you are only going to rip english go to the OCR section and set the last parameter back to the default 6. Lowering this values as i originally suggest, mostly help on spanish/mexican reverse "!".
if you do run it with the third ocr value set to 6, make sure to check for confused "i" vs reverse "!"

If this does not help, you can lower the general OCR accuracy from 1000 to 980 ( or even lower) but you run into a dangerous low accuracy and might see a lot of confused letters ( espceil lower case "v" "x" "o" vs capital version)
To be honest i wouldn't not advise to do this but instead just "bite the apple" and type in the different character into the matrix file.

it should however happen very rarely with my matrix file that you need to type in all the character yourself

Dean007
9th December 2014, 18:52
Even with suggested options it's still the same! :(

Sven Bent
10th December 2014, 21:45
Dont think there is nothing else to do than to type in the characters. It should "only" be once for each character.
Im however highly interested in what dvd it is. Maybe I can track it down so i can add this "font" into the matrix

Dean007
11th December 2014, 00:00
It's from TV show "The Strain"! Subtitles are in IDX/SUB format. If you can't find it tell I'll upload them!

Sven Bent
4th January 2015, 13:36
I haven't been able to find it :(

I have however with the new version of subrip (v.1.51.1) sorted the matrix so it should go faster now.
I'm still trying to suggest the current developer for a better sorting algorithm for a faster matrix file.

Nevertheless the most up to date version can be found here and gets updated withing seconds after i finish a new subtitle set
http://techcenterdk.ddns.net:12380/SBmatrix.sum

Bloody
7th January 2015, 02:03
I do have a problem! In v1.50b5 when I try to rip subtitles (idx) I get this, and for every single letter
http://shrani.si/t/2Q/hz/jhsLX24/150b5.jpg (http://shrani.si/?2Q/hz/jhsLX24/150b5.png)

In 1.50b7 same subtitles I get this
http://shrani.si/t/U/PS/M672Z1U/150b7.jpg (http://shrani.si/?U/PS/M672Z1U/150b7.png)

Any suggestions?


Try to un-check the "Use IDX's file offsets" checkbox in the "Global Options" dialog. I bet you had that already done in the old version.

Btw: you may import (copy) your SubRip.ini from an older version to the installation folder of a new SubRip version, to preserve your previous settings.

Sven Bent
1st March 2015, 07:49
My server is up and running again so my matrix file can be downloaded

http://162.248.14.188/

remember to set you "Sensibility on character difference" to 1000
If you do spanish subtitles you need to lower "Max. Character Top Diff." to 2

Xebika
1st March 2015, 20:03
Will the setting of "Max. Character Top Diff." for spanish subtitles be the same for danish subtitles??

Sven Bent
5th March 2015, 00:25
Will the setting of "Max. Character Top Diff." for spanish subtitles be the same for danish subtitles??

No. The Max. Character Top Diff." is only to see the difference between the lower case "i" and the Spanish reverse exclamation mark "ˇ"

Xebika
5th March 2015, 00:41
Ok thanks for the information.

Sven Bent
23rd March 2015, 02:52
just some small info update.

Ive noticed a few subtitles where the lowered "Max. Character Top Diff." would help resolves issues i with capital vs lowercase . its very few but if you run into that issues you might wanna reduce "Max. Character Top Diff." to 2 on other languages than Spanish.
i personally runs mine on 2 most of the time but I'm a bit over cautious

Sven Bent
22nd April 2015, 18:55
My ISP gave me a new IP again.

Currently my matrix file can be found here
http://162.248.14.188/

it haven't been updated for month's as i have been busy with other projects

Sven Bent
4th August 2015, 03:16
Just an update if people are still using my matrix file.
i finally got my domain up and working so no more dead links when i get a new IP :)

Website: http://www.techcenter.dk
Direct Link: http://techcenter.dk/SBmatrix.sum

tormento
30th March 2020, 12:30
Is there any active support yet? I need to report some problems with UTF-8 output encoding, actually giving ANSI files.

ukendt
31st March 2020, 19:43
Iis there any active support yet? I need to report some problems with UTF-8 output encoding, actually giving ANSI files.
I doubt it...

tormento
1st April 2020, 09:44
I doubt it...
What a pity. I think it's the best DVD OCR out there.

locotus
1st April 2020, 14:50
This one is also not updated, but for DVD still works very fine for me.

https://forum.doom9.org/showthread.php?t=162633&highlight=DVDSubextractor

Boulder
1st April 2020, 16:46
Subtitle Edit works perfectly with DVDs.

tormento
2nd April 2020, 09:30
Subtitle Edit works perfectly with DVDs.
I am encoding my private DVD collection to NAS as the supports are starting to lose reflective properties (some are 20 or more years old).

I am talking about more than one thousand.

I tried both and SubRip is way more accurate.

tormento
2nd April 2020, 09:31
This one is also not updated, but for DVD still works very fine for me.
Will try, thanks mate.

Boulder
2nd April 2020, 14:35
I am encoding my private DVD collection to NAS as the supports are starting to lose reflective properties (some are 20 or more years old).

I am talking about more than one thousand.

I tried both and SubRip is way more accurate.

I've used both applications quite a lot over the years and don't miss SubRip at all. I guess it depends a huge amount on your settings (colors and max error-% so that you teach the detection to get better over time), and it varies between DVDs as well. And I don't even think about using Tesseract, binary compare is the way to go.

EDIT: One option could be to just extract the subs and use them as they are?

tormento
2nd April 2020, 16:33
EDIT: One option could be to just extract the subs and use them as they are?
Unfortunately there is no puke smiley in this board.

Ever tried to look at resized DVD bitmap subs?

Boulder
2nd April 2020, 16:36
Unfortunately there is no puke smiley in this board.

Ever tried to look at resized DVD bitmap subs?

Of course I've had to test how it looks :D

I would be interested in testing if you have a particularly difficult case to OCR.