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.

 

Go Back   Doom9's Forum > General > Subtitles
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th February 2007, 13:53   #61  |  Link
dr4g0n
Registered User
 
Join Date: Feb 2007
Posts: 3
Few (friendly) advices:
1. Use formatdatetime like FormatDateTime('h:m:s.z', myDate) so the ppl regional settings won't affect.
2. In every loop use application.processmessages insted of item.refresh or similiar to prevent app from "non-responding".
3. Use image object to temprary load image, resize them and write output to file.
4. Do not use "writeln" to write to file, use memory allocating - it's more reliable, add manual #$D#$A at the end of the row.
Is there any api for image reading? It will be easier to insert it into supread and produce results with 1 tool.
Great job, btw...
dr4g0n is offline   Reply With Quote
Old 25th February 2007, 19:00   #62  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by dr4g0n View Post
Few (friendly) advices:
1. Use formatdatetime like FormatDateTime('h:m:s.z', myDate) so the ppl regional settings won't affect.
2. In every loop use application.processmessages insted of item.refresh or similiar to prevent app from "non-responding".
3. Use image object to temprary load image, resize them and write output to file.
4. Do not use "writeln" to write to file, use memory allocating - it's more reliable, add manual #$D#$A at the end of the row.
Is there any api for image reading? It will be easier to insert it into supread and produce results with 1 tool.
Great job, btw...
Thanks.
1. I'm using TFormatSetting, the result is the same, I think.
2. Yes, I usually use Processmessages, but until now I've tried with only little size subtitles, the process takes only a second.
3. I'm using image object.
4. I'm not using writeln.
5. What do you mean? What kinf of API? I think, there is no tool to handle this new subtitle format.
Pelican9 is offline   Reply With Quote
Old 25th February 2007, 19:14   #63  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by Deckard2019 View Post
DVDSupDecode generates :

Supread generates :


As you can see, Palette info is in the .txt file. Also, Supread seems to always set Alpha to FFF0 ...
Yes, it's just a test, not the final. Anyway, this new sup has 256 colour, and the palette size is 768 byte...
Could you send me a txt which works with Subrip?
I cannot create a good one, maybe my Supread doesn't work.

Last edited by Pelican9; 25th February 2007 at 19:25.
Pelican9 is offline   Reply With Quote
Old 25th February 2007, 20:00   #64  |  Link
dr4g0n
Registered User
 
Join Date: Feb 2007
Posts: 3
Quote:
Originally Posted by Pelican9 View Post
Thanks.
1. I'm using TFormatSetting, the result is the same, I think.
2. Yes, I usually use Processmessages, but until now I've tried with only little size subtitles, the process takes only a second.
3. I'm using image object.
4. I'm not using writeln.
5. What do you mean? What kinf of API? I think, there is no tool to handle this new subtitle format.
1. I had same problem as you and solve it with formatdatetime. It forces conversion by user date/time format completly ignoring reg settings.
2. Ok, but extraction of 1150 images can take quite a while.
3. Ok, just a suggestion, is resizing works ?
4. Good.
5. I tought some component or API for image recognizing (OCR, reading bmp file and returning text) instead of exporting bmp and then using subrip or whatever to handle (OCR) those bitmaps. I'm pretty sure there's some of it around (will make user life easier).

Maybe u had some bugs in Delphi. Fileinfo says u're using Delphi 3.0 ?
dr4g0n is offline   Reply With Quote
Old 25th February 2007, 20:57   #65  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by dr4g0n View Post
1. I had same problem as you and solve it with formatdatetime. It forces conversion by user date/time format completly ignoring reg settings.
2. Ok, but extraction of 1150 images can take quite a while.
3. Ok, just a suggestion, is resizing works ?
4. Good.
5. I tought some component or API for image recognizing (OCR, reading bmp file and returning text) instead of exporting bmp and then using subrip or whatever to handle (OCR) those bitmaps. I'm pretty sure there's some of it around (will make user life easier).

Maybe u had some bugs in Delphi. Fileinfo says u're using Delphi 3.0 ?
1. My way solves the problem too. :-)
3. I haven't tried yet. Strech is working on the screen, but I don't know, what happens when save the bitmap.
5. Understand. It could be useful...
It's a newest one (2006).
Pelican9 is offline   Reply With Quote
Old 26th February 2007, 00:44   #66  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
Quote:
Could you send me a txt which works with Subrip?
1/ I can open the attached file in Subrip. But I can't get any subtitles from it
Subrip works great with VOB files but with image sequence ...
2/ If I open subrip.txt (from Supread) in Ultraedit, it says it's in Unix format.
I convert it to DOS format and then I can open it in Subrip.
But Subrip exits suddenly ...
Attached Files
File Type: txt Subpictures_21.txt (38.9 KB, 287 views)
Deckard2019 is offline   Reply With Quote
Old 26th February 2007, 13:55   #67  |  Link
JnZ
Registered User
 
JnZ's Avatar
 
Join Date: Jan 2004
Location: Czech
Posts: 181
I try SUPread on Pitch Black and discovered this:

Exported images can be readed via SubRip only when resized to 720 x XXX. subrip.txt script works fine.

So I create script in PSP-X - increase contrast for 100% (liquidate gray colors), resize to 720 x XXX. Runs this script on all images. Then open in SubRip, set OCR sensitivity around 950-980, and all works fine.
__________________
(Sorry for my bad english, I'm czech, not englishman... :))
JnZ is offline   Reply With Quote
Old 26th February 2007, 14:07   #68  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by JnZ View Post
I try SUPread on Pitch Black and discovered this:

Exported images can be readed via SubRip only when resized to 720 x XXX. subrip.txt script works fine.

So I create script in PSP-X - increase contrast for 100% (liquidate gray colors), resize to 720 x XXX. Runs this script on all images. Then open in SubRip, set OCR sensitivity around 950-980, and all works fine.
Good news!
Which version of Subrip did you use?
Pelican9 is offline   Reply With Quote
Old 26th February 2007, 14:33   #69  |  Link
JnZ
Registered User
 
JnZ's Avatar
 
Join Date: Jan 2004
Location: Czech
Posts: 181
Quote:
Originally Posted by Pelican9 View Post
Good news!
Which version of Subrip did you use?
SubRip 1.50b3.
I think it can handle only images of specific resolution. I try 720x405 and works fine. Images converted like this: Black background with white text, preserved original pallete. I only liquidate gray shade beneath text (subs can be easily OCRed wia subrip). This action can be scripted in most graphics editors...

EDIT: Image can be 256, but also 16M colors.
__________________
(Sorry for my bad english, I'm czech, not englishman... :))

Last edited by JnZ; 26th February 2007 at 14:39.
JnZ is offline   Reply With Quote
Old 26th February 2007, 15:20   #70  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by JnZ View Post
SubRip 1.50b3.
I think it can handle only images of specific resolution. I try 720x405 and works fine. Images converted like this: Black background with white text, preserved original pallete. I only liquidate gray shade beneath text (subs can be easily OCRed wia subrip). This action can be scripted in most graphics editors...

EDIT: Image can be 256, but also 16M colors.
I've tried to feed Subrip with 720x480 size bitmaps, but always give an error message (1.50b4).
Pelican9 is offline   Reply With Quote
Old 26th February 2007, 16:35   #71  |  Link
JnZ
Registered User
 
JnZ's Avatar
 
Join Date: Jan 2004
Location: Czech
Posts: 181
Quote:
Originally Posted by Pelican9 View Post
I've tried to feed Subrip with 720x480 size bitmaps, but always give an error message (1.50b4).
After some experimenting, I must say, that SubRip open this images very strangely. Sometimes not, sometimes opens only first one and next images are only black...etc.
__________________
(Sorry for my bad english, I'm czech, not englishman... :))
JnZ is offline   Reply With Quote
Old 26th February 2007, 21:41   #72  |  Link
dr4g0n
Registered User
 
Join Date: Feb 2007
Posts: 3
I've also got #$0A#$0D in text file.
Must use Ultraedit to change it...
BTW i use same source to extract subs as the Pelican9.
dr4g0n is offline   Reply With Quote
Old 27th February 2007, 00:25   #73  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
I don't understand how you can get 0a0d instead of 0d0a...
Pelican9 is offline   Reply With Quote
Old 1st March 2007, 21:41   #74  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
Still working on EVODemux ?
Now we found a way to decode DD+, the only thing I need is subtitles ...
Deckard2019 is offline   Reply With Quote
Old 2nd March 2007, 01:01   #75  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by Deckard2019 View Post
Still working on EVODemux ?
Now we found a way to decode DD+, the only thing I need is subtitles ...
Me too.
I've got an HD DVD player, so I'm playing with my new toy. :-)
But I would like to write back the compressed movie to HD DVD or BluRay.
Not an easy task for me...
Pelican9 is offline   Reply With Quote
Old 4th March 2007, 16:10   #76  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
SUPread v0.24

Changes for v0.24

- Cancel button
- Remove 'Save BMPs'
- New feature 'Save bitmaps' writes PNGs and subtitles.scn-sst (Scenarist ACA compatible script)

SUPread v0.24
Pelican9 is offline   Reply With Quote
Old 4th March 2007, 20:24   #77  |  Link
tjf
Registered User
 
Join Date: Apr 2005
Posts: 50
SUPread v0.24 crashes towards the end of the SUP file (line 981) during bitmap writing with Out of system resources message.

Is there a way to mux the subtitles into matroska container without OCR?

Last edited by tjf; 4th March 2007 at 21:23.
tjf is offline   Reply With Quote
Old 4th March 2007, 20:32   #78  |  Link
Deckard2019
Registered User
 
Join Date: Jan 2005
Posts: 110
It works for me but I don't know what to do with these files
I would like to have a .srt file, to mux into mkv too.
Deckard2019 is offline   Reply With Quote
Old 5th March 2007, 01:48   #79  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by tjf View Post
SUPread v0.24 crashes towards the end of the SUP file (line 981) during bitmap writing with Out of system resources message.
Fixed (I hope).
Try the new beta.
Pelican9 is offline   Reply With Quote
Old 5th March 2007, 01:50   #80  |  Link
Pelican9
Coder
 
Pelican9's Avatar
 
Join Date: Jan 2007
Location: Around the World
Posts: 697
Quote:
Originally Posted by Deckard2019 View Post
It works for me but I don't know what to do with these files
I would like to have a .srt file, to mux into mkv too.
Sonic Scenarist ACA can read those files.
I haven't got yet a working OCR...

Last edited by Pelican9; 5th March 2007 at 10:36.
Pelican9 is offline   Reply With Quote
Reply

Tags
supread, suprip


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:56.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.