Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
11th May 2005, 21:48 | #41 | Link |
Registered User
Join Date: Nov 2004
Posts: 93
|
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.
Code:
Color (4 1 2 3) Contrast (15 0 15 15) 1 00:00:57:01 00:01:03:09 1.1.bmp |
11th May 2005, 21:54 | #42 | Link |
Programmer
Join Date: Sep 2003
Posts: 382
|
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)?
Last edited by ai4spam; 12th May 2005 at 00:25. |
12th May 2005, 00:53 | #43 | Link |
Registered User
Join Date: Nov 2004
Posts: 93
|
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: Code:
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. [edit] 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 [/edit] Last edited by roux; 12th May 2005 at 00:59. |
12th May 2005, 07:42 | #46 | Link |
Programmer
Join Date: Sep 2003
Posts: 382
|
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:
Code:
DirectShowSource("D:\Rip\Vts_01_1.vob" fps=25.00) 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. Last edited by ai4spam; 12th May 2005 at 09:16. |
13th May 2005, 01:54 | #48 | Link |
Member of a Library
Join Date: Oct 2002
Posts: 463
|
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 |
13th May 2005, 04:38 | #49 | Link | ||||
Programmer
Join Date: Sep 2003
Posts: 382
|
Quote:
Quote:
Quote:
Everybody, please post your successful setting combinations. And I'm still waiting for someone to volunteer to write a tutorial . Quote:
And you're welcome, it's nice to be appreciated . Last edited by ai4spam; 13th May 2005 at 18:37. |
||||
13th May 2005, 09:51 | #50 | Link |
Programmer
Join Date: Sep 2003
Posts: 382
|
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? |
14th May 2005, 00:14 | #51 | Link | |||
Member of a Library
Join Date: Oct 2002
Posts: 463
|
Quote:
Quote:
Quote:
GL |
|||
14th May 2005, 05:29 | #52 | Link | ||
Programmer
Join Date: Sep 2003
Posts: 382
|
Quote:
Quote:
Last edited by ai4spam; 14th May 2005 at 06:38. |
||
14th May 2005, 10:47 | #53 | Link |
Programmer
Join Date: Sep 2003
Posts: 382
|
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) Code:
<index>,<first frame>,<last frame>,<left coord>,<top coord> |
15th May 2005, 04:18 | #54 | Link | |
Member of a Library
Join Date: Oct 2002
Posts: 463
|
Quote:
Ehm... mediaplayer mode or... I just "open hard subbed video files". As I said, through Avisynth script: Code:
LoadPlugin ("C:\Program Files\DGMpgDec\dgdecode.dll") MPEG2Source ("D:\VIDEO\DVD\1.d2v") ConverttoYUY2 () Crop (12,76,-8,-76, align=true) GL |
|
15th May 2005, 10:05 | #55 | Link |
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
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, TTXT, and why not the QuickTime TeXML ? I can provide some samples if you want... |
15th May 2005, 12:11 | #56 | Link | |
mad computer-scientist
Join Date: Mar 2002
Posts: 1,375
|
Quote:
|
|
16th May 2005, 08:49 | #58 | Link |
Registered User
Join Date: Aug 2002
Location: Latvia
Posts: 69
|
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 Last edited by screw; 16th May 2005 at 09:45. |
16th May 2005, 09:31 | #59 | Link | |
Registered User
Join Date: May 2002
Location: Czech Republic
Posts: 171
|
Quote:
It was fixed in upcoming (never released) v1.17.2. I will fix it in 1.20 final. Last edited by zuggy; 16th May 2005 at 09:33. |
|
16th May 2005, 20:34 | #60 | Link | |
Programmer
Join Date: Sep 2003
Posts: 382
|
Quote:
|
|
|
|