View Full Version : HD subtitle ripping (SUPread)


Pelican9
30th January 2007, 16:25
I need a little(?) help.
I would like to get subtitles from HD DVDs.
I've written a demuxer sw (EVO demux (http://pel.hu/down/EVOdemux.exe)) which can produce the subtitle streams, but no software is able to handle these files.
The files are good because I've checked Softpedia's HD DVD demuxer and my .sup is perfectly matching theirs.
I think this subtitle stream similar to DVD's subtitle stream but it contains higher resolution bitmaps.
I haven't found any information about neither HD DVD nor DVD subtitle streams.
Could anybody help me to understand the normal DVD's .sup files structure?
Is there any documentation about it?
Is the .sup file containing timing information or bitmaps only?
I think only the .ifo contains these infos on DVD, but I'm not sure.

emmel
30th January 2007, 19:38
Could anybody help me to understand the normal DVD's .sup files structure?

http://dvd.sourceforge.net/spu_notes

Pelican9
30th January 2007, 19:47
Thank you!

manusse
30th January 2007, 21:40
Is the .sup file containing timing information or bitmaps only?

For a DVD the .sup holds the bitmap, plus its position, its start time (PTS) and duration, plus also the indexes of the colors on a palette (CLUT) stored in the corresponding IFO file.

Some other references about SUP format:
http://www.mpeg.org/MPEG/DVD/Book_B/Subpic.html
http://dvd.sourceforge.net/dvdinfo/spu.html

Manusse

Pelican9
30th January 2007, 22:52
Thanks.
I think, the HD DVD's subpicture stream more different than I thought before.
I cannot find any similarity...

Diablo666
31st January 2007, 15:42
You could always try to add subtitles as an AdvancedSubtitleSegment within the .XPL file. See Here (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=925761&SiteID=1) for more info on this.

Pelican9
31st January 2007, 16:14
You could always try to add subtitles as an AdvancedSubtitleSegment within the .XPL file. See Here (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=925761&SiteID=1) for more info on this.
Thanks, I've known that method, but this is another task.
I would like to get the original subtitle timing info, because it very useful to synchronize my freshly created sub.
But unfortunately nobody experienced with this new .sup format. :(

Pelican9
1st February 2007, 01:39
For a DVD the .sup holds the bitmap, plus its position, its start time (PTS) and duration, plus also the indexes of the colors on a palette (CLUT) stored in the corresponding IFO file.
I'm confused.
Where is the PTS information?
I've found it only in the SP_PCKs, but the .sup doesn't contains the packet headers only the SPUH, PXD, SPDCQST datas.
It contains only relative timing to PTS.
Am I wrong?

emmel
1st February 2007, 07:22
Where is the PTS information?

In a 'classical' sup-file, there is a 64-bit PTS right after the start code 'SP'. Then comes the packet_size, data_size,... etc. The duration is in the control sequence.

Pelican9
1st February 2007, 15:01
In a 'classical' sup-file, there is a 64-bit PTS right after the start code 'SP'. Then comes the packet_size, data_size,... etc. The duration is in the control sequence.
I'll try what happen if I put into my .sup file start 'SP' chars and PTS.

OK. I'm a little bit further now.
The structure of HD DVD's subpicture stream:

------------------------------------
00000000: SPUH
0000000A: PXD [006F24]
----
00006F2E: SP_DCSQ_STM: 0000
00006F30: SP_NXT_DCSQ_SA: 00007348
00006F34: STA_DSP
00006F35: SET_COLOR2
00007236: SET_CONTR2
00007337: SET_DAREA2 (630, 844) - (1303, 911)
0000733E: SET_DSPXA2 top: 0000000A, bottom: 000037B8
00007347: CMD_END
----
00007348: SP_DCSQ_STM: 0151
0000734A: SP_NXT_DCSQ_SA: 00007348
0000734E: STP_DSP
0000734F: CMD_END
------------------------------------
00007350: SPUH
0000735A: PXD [006762]
----
0000DABC: SP_DCSQ_STM: 0000
0000DABE: SP_NXT_DCSQ_SA: 0000DED6
0000DAC2: STA_DSP
0000DAC3: SET_COLOR2
0000DDC4: SET_CONTR2
0000DEC5: SET_DAREA2 (682, 806) - (1247, 911)
0000DECC: SET_DSPXA2 top: 0000000A, bottom: 0000338A
0000DED5: CMD_END
----
0000DED6: SP_DCSQ_STM: 0102
0000DED8: SP_NXT_DCSQ_SA: 0000DED6
0000DEDC: STP_DSP
0000DEDD: CMD_END
------------------------------------
0000DEDE: SPUH
0000DEE8: PXD [005BAC]
----
00013A94: SP_DCSQ_STM: 0000
00013A96: SP_NXT_DCSQ_SA: 00013EAE
00013A9A: STA_DSP
00013A9B: SET_COLOR2
00013D9C: SET_CONTR2
00013E9D: SET_DAREA2 (654, 846) - (1275, 911)
00013EA4: SET_DSPXA2 top: 0000000A, bottom: 00002DDE
00013EAD: CMD_END
----
00013EAE: SP_DCSQ_STM: 00F3
00013EB0: SP_NXT_DCSQ_SA: 00013EAE
00013EB4: STP_DSP
00013EB5: CMD_END
------------------------------------

SPUH: Subpixel Unit Header
PXD: Pixel data 8 bit RLE

Only the SP_PKT header in the EVO file contains the PTS information which I need (not the stream itself), so I have to write to somewhere this data during demuxing the original EVO...
Because only one PTS at the start is not enough, every SP_DCSQ need one.

Pelican9
2nd February 2007, 16:57
I'v got the timing information. :)
I can make an .srt file looks like this:
1
0:01:14,046 --> 0:01:18,608
line 1

2
0:01:18,684 --> 0:01:21,210
line 2

3
0:01:21,286 --> 0:01:24,586
line 3

4
0:01:24,656 --> 0:01:29,094
line 4

5
0:01:29,161 --> 0:01:31,653
line 5

...


Is it useful for anybody?
Do you suggest a better format to store the timing information?

manusse
2nd February 2007, 17:17
Maybe VobSub (ie sub/idx) format could also be supported. Basically it's very closed to SUP. There is some padding and the header is slightly different but the subtitle information is exactly the same. The idx file stores the timings and the indexes of the subtitles (sadly it doesn't store their durations). The VobSub format is currently supported by many software players whereas the sup format is (to my knowledge) only supported for remuxing a DVD.
Anyway, one day SubtitleCreator will probably allow to convert between both format for HD-DVDs as it already can do it for DVDs.

Cheers
Manusse

nikopaha
3rd February 2007, 14:34
I'v got the timing information. :)
I can make an .srt file looks like this:
1
0:01:14,046 --> 0:01:18,608
line 1

2
0:01:18,684 --> 0:01:21,210
line 2

3
0:01:21,286 --> 0:01:24,586
line 3

4
0:01:24,656 --> 0:01:29,094
line 4

5
0:01:29,161 --> 0:01:31,653
line 5

...


Is it useful for anybody?
Do you suggest a better format to store the timing information?

Yes. Share the code!

mikegun
5th February 2007, 11:12
I'v got the timing information. :)
I can make an .srt file looks like this:
1
0:01:14,046 --> 0:01:18,608
line 1

2
0:01:18,684 --> 0:01:21,210
line 2

3
0:01:21,286 --> 0:01:24,586
line 3

4
0:01:24,656 --> 0:01:29,094
line 4

5
0:01:29,161 --> 0:01:31,653
line 5

...


Is it useful for anybody?
Do you suggest a better format to store the timing information?

would be great, thanks

Isochroma
6th February 2007, 02:19
Yes indeed! I have Fearless and need to be able to extract and OCR the subtitles; the HD-DVD version has extra scenes and different timing from the regular DVD version.

More specifically, what is needed is some output files that are compatible with SubRip, so they can be OCR'd:

http://isochroma.com/Testfiles/Misc/doom9/SubRip-Formats-1.png

http://isochroma.com/Testfiles/Misc/doom9/SubRip-Formats-2.png

Your work on the EVO demuxer is greatly appreciated, Pelican9! I hope that it is possible to get subtitles working as well.

Pelican9
6th February 2007, 09:34
More specifically, what is needed is some output files that are compatible with SubRip, so they can be OCR'd:


Yes, exactly. But I have not found information about these file formats yet. So, I'm trying to make BMPs now.

Isochroma
6th February 2007, 19:53
After much searching, I dug up this link:

Create SRT Subtitles From MythTV Recordings (http://www.mythtv.org/wiki/index.php/Create_SRT_Subtitles_From_MythTV_Recordings)

It outlines a method to convert .SUP files into SRT, using DVDSupDecode and SubRip's Open Image Sequence feature.

DVDSupDecode.exe -bitmap -pal 1002_20061008220300.sup

Apparently this DVDSupDecode is the answer; it is available as part of the DVD Subtitle Tools (http://web.quick.cz/FKasparek/Software/DVD/DVDSupTools.htm).

Now back to some maintenance: there is another thread which pretty much duplicates the subject of this one: Convert .sup to .txt (http://forum.doom9.org/showthread.php?t=121643)

Request is now made of the local admin to merge the threads.

manusse
6th February 2007, 20:42
But I have not found information about these file formats yet

If you need some help to convert SUP files to SUB/IDX, you can look at SubtitleCreator's code (available on SourceForge, SVN repository).

Cheers
Manusse

Pelican9
7th February 2007, 00:50
After much searching, I dug up this link:

Create SRT Subtitles From MythTV Recordings (http://www.mythtv.org/wiki/index.php/Create_SRT_Subtitles_From_MythTV_Recordings)

It outlines a method to convert .SUP files into SRT, using DVDSupDecode and SubRip's Open Image Sequence feature.

DVDSupDecode.exe -bitmap -pal 1002_20061008220300.sup

Apparently this DVDSupDecode is the answer; it is available as part of the DVD Subtitle Tools (http://web.quick.cz/FKasparek/Software/DVD/DVDSupTools.htm).

Now back to some maintenance: there is another thread which pretty much duplicates the subject of this one: Convert .sup to .txt (http://forum.doom9.org/showthread.php?t=121643)

Request is now made of the local admin to merge the threads.

I'm talking about HD DVD subtitles...

Pelican9
7th February 2007, 00:55
If you need some help to convert SUP files to SUB/IDX, you can look at SubtitleCreator's code (available on SourceForge, SVN repository).
Thanks!

Isochroma
7th February 2007, 03:46
So there's two different .SUP formats? Sounds a bit confusing...

Pelican9
7th February 2007, 09:47
So there's two different .SUP formats? Sounds a bit confusing...

I don't know anything about the .sup format, but the subpicture streams are different. HD DVD sub has new commands, 8 bit RLE encoded bitmaps, etc.

Pelican9
8th February 2007, 00:49
I've decoded the HD DVD subpicture stream:
http://pel.hu/down/subpic.jpg

Isochroma
8th February 2007, 01:48
Yay! Good work Pelican9! Your genius is always inspiring, never tiring.

Now all that's left is to get it into a format that SubRip can OCR, then we'll be cooking with gas!

manusse
8th February 2007, 22:50
I would like to know a bit more about the HD-DVD subtitles spec so that we can improve SubtitleCreator and that it can eventually open (for viewing) HD sup files and also for generating new ones from srt files like it does for SD.

Could you please give some links and/or details about the HD-DVD subtitles'specification (new commands, 8 bit RLE encoded bitmaps, etc.)?

Thanks in advance
Manusse

:thanks:

Pelican9
9th February 2007, 00:22
manusse:
I've sent PM.

Pelican9
10th February 2007, 20:57
I've finished my HD SUP reader v0.1.
Download: SUPread (http://pel.hu/down/SUPread.exe)

It can show the subpictures but works only with .sup/.pts files demuxed by EVO demux (http://pel.hu/down/EVOdemux.exe)

Edit:
SUPread v0.11
- Custom background image (you can download this nice seal portrait (http://pel.hu/down/Back1920.bmp))
- Options page
- Autosave all settings

Pelican9
13th February 2007, 01:20
Changes:

- Read 'traditional' format .sup files, .pts file not needed anymore
- Read both SD and HD subtitles

Sagittaire
13th February 2007, 15:19
don't work for me ...

Pelican9
13th February 2007, 16:12
don't work for me ...

What do you mean?
Use the latest EVOdemux to create .sup file.

Sagittaire
13th February 2007, 16:35
What do you mean?
Use the latest EVOdemux to create .sup file.

yes ... PEVOB_1.Subpicture.00.sup (from batman begin HDDVD).

Pelican9
13th February 2007, 16:53
yes ... PEVOB_1.Subpicture.00.sup (from batman begin HDDVD).
Could you give me a more specific error report? :)
What happens?
Any error message?
Smoke?
Fire?
? :)

Sagittaire
13th February 2007, 17:04
Could you give me a more specific error report? :)
What happens?
Any error message?
Smoke?
Fire?
? :)

No work with the really last EVOdemux now ... sorry

Pelican9
13th February 2007, 17:23
Oh, no!
I've checked the program and realized that I've made a big mistake: turn off the subpicture display function... :-(
Sorry!
I'll correct it tonight.

Pelican9
13th February 2007, 20:58
I've turned on the subpicture displaying...
SUPread v0.21 (http://pel.hu/down/SUPread.exe)

Deckard2019
13th February 2007, 22:18
Is there a chance we could use SubRip OCR engine ?

SubRip can take image sequence as Input. Image Sequence comes from DVDSupDecode (http://web.quick.cz/FKasparek/Software/DVD/DVDSupTools.htm).
So maybe you could export each image to BMP and create output text file just as DVDSupDecode does ?

Output text file starts with :
;PEVOB_1.Subpicture.02.sup
FrameRate=23.976
Alpha=FFF0

And then :
Result is text file in format
{frame_from}{frame_to}{VTS_01_0.20_000001.bmp}
If you want me to test anything, just ask ...

Isochroma
13th February 2007, 22:43
I agree with Deckard2019; there's no reason to try re-doing an OCR engine when an already well-developed one exists: SubRip. The most efficient plan would be to output files which can be read by Subrip.

Pelican9
13th February 2007, 23:21
Can SubRip handle bmps of any size?
Is it enough to save only the subpicture part or does SubRip need the full size picture (1920x1080)?

Deckard2019
13th February 2007, 23:34
Take a look at DVDSupEncode cli options.
Frame size seems to be full (720x576, 720x480, 352x240), defined in DVDSupEncode.ini.
Don't know if 1920x1080 bitmap res will then be a valid input for SubRip.

Maybe try to export @1920x1080 and feed SubRip with these bitmaps ?
If SubRip does not accept, try a PAL or NTSC resize ?
But I don't what the bitmap will look like after a resize ...

Isochroma
13th February 2007, 23:52
If not, a basic bilinear resize to 720x480 should do nicely. Avisynth provides the function, can be done separately or internally.

Kiriakos
20th February 2007, 17:19
Firstly, thanks for the very usefull programs that you are feeding us with, Pelican9. Really great!
I am wondering, what is wrong with my system and the .srt file that outputs SUPread, looks like this:
1
12:01:14 AM,145 --> 12:01:18 AM,480
Line 1

2
12:01:18 AM,550 --> 12:01:21 AM,042
Line 2

3
12:01:21 AM,152 --> 12:01:24 AM,350
Line 3

4
12:01:24 AM,456 --> 12:01:29 AM,291
Line 4
.........
..........
...........

The time numbers are in a strange format as you can see!!!!
Any ideas?

Thanks again.

Kiriakos
21st February 2007, 16:09
Firstly, thanks for the very usefull programs that you are feeding us with, Pelican9. Really great!
I am wondering, what is wrong with my system and the .srt file that outputs SUPread, looks like this:
1
12:01:14 AM,145 --> 12:01:18 AM,480
Line 1

2
12:01:18 AM,550 --> 12:01:21 AM,042
Line 2

3
12:01:21 AM,152 --> 12:01:24 AM,350
Line 3

4
12:01:24 AM,456 --> 12:01:29 AM,291
Line 4
.........
..........
...........

The time numbers are in a strange format as you can see!!!!
Any ideas?

Thanks again.

Found it. It was the format of the time (control panel>regional settings> etc) on my system. It seams that SUPread uses this setting to form the .srt file.

Another one: It seams that if the movie has over 1000 lines of subtitles, in SUPread you can see in "Image" tab, only the first 999. From there and above, it sticks and shows the 999nth. :confused:

Pelican9
22nd February 2007, 10:45
Found it. It was the format of the time (control panel>regional settings> etc) on my system. It seams that SUPread uses this setting to form the .srt file.

Another one: It seams that if the movie has over 1000 lines of subtitles, in SUPread you can see in "Image" tab, only the first 999. From there and above, it sticks and shows the 999nth. :confused:

Thank for your report, I'll fix it soon.
The used time format is the system's default setting as you described. (The same problem was in EVOdemux.)

Edit:

I've fixed the time format and the other problem with lines above 1000

Deckard2019
22nd February 2007, 22:06
Any news about exporting bitmaps ?
Thank you.

Pelican9
23rd February 2007, 00:55
Any news about exporting bitmaps ?
Thank you.
I'm working on EVOdemux...

Off:
... Nehogy már! Te vagy a blade, blade runner. :)

Kiriakos
23rd February 2007, 01:23
I've fixed the time format and the other problem with lines above 1000

You are a king!

:thanks:

Pelican9
24th February 2007, 18:56
Changes for v0.23

- New option 'Auto read'
- New option 'Output folder'
- New feature 'Save BMPs'

SUPread v0.23 (http://pel.hu/down/SUPread.exe)

Pelican9
24th February 2007, 21:06
Is there a chance we could use SubRip OCR engine ?

SubRip can take image sequence as Input. Image Sequence comes from DVDSupDecode (http://web.quick.cz/FKasparek/Software/DVD/DVDSupTools.htm).
So maybe you could export each image to BMP and create output text file just as DVDSupDecode does ?

Output text file starts with :

And then :

If you want me to test anything, just ask ...
I've created a subrip.txt but Subrip makes an error...

Deckard2019
24th February 2007, 21:17
Thank a lot for the feature !
Did you try to resize bitmaps to DVD resolution (720x480 or 720x576) before using SubRip ?

Pelican9
24th February 2007, 21:34
Thank a lot for the feature !
Did you try to resize bitmaps to DVD resolution (720x480 or 720x576) before using SubRip ?

I'm trying with an NTSC DVD, so the bitmaps are 720x480...
I cannot create a valid txt, or valid bmp. :-(
Subrip always give access violation error...

Could you send me a valid file?

My txt:
;VTS_01_1.Subpicture.00.sup
FrameRate=23.976
Alpha=FFF0
{107}{218}{VTS_01_0.20_000001.bmp}
{239}{298}{VTS_01_0.20_000002.bmp}
{311}{441}{VTS_01_0.20_000003.bmp}

manusse
24th February 2007, 21:41
Hi pel,

It seems there is no carriage return in the generated subrip.txt file.
Could it be the problem?

Cheers
Manusse

Pelican9
24th February 2007, 21:46
Hi pel,

It seems there is no carriage return in the generated subrip.txt file.
Could it be the problem?

Cheers
Manusse

Your version could be quite old... :)

manusse
24th February 2007, 21:47
Downloaded 5 minutes ago.
;-)

Pelican9
24th February 2007, 21:49
Downloaded 5 minutes ago.
;-)
Well, I don't know...
Look at my post, there are CRLFs...

manusse
24th February 2007, 22:26
I tried again with the last versions of EVOdemux and SUPread and have still the same problem.
I've carefully checked the file with a binary editor and it seems each line is separated by 0x0a followed by 0x0d whereas notepad.exe puts 0x0d followed by 0x0a. This explains why notepad is confused. Could it be the same for subrip?

Hope this helps
Manusse

Deckard2019
24th February 2007, 22:47
Could you send me a valid file?
Just tried with a PAL DVD. Subtitle file can be found here (http://www.sendspace.com/file/2gdwbi).
DVDSupDecode generates :
;Subpictures_21.sup
FrameRate=25
Palette=8328
Alpha=0FA0
{1293}{1355}{Subpictures_21_000001.bmp}
{1361}{1425}{Subpictures_21_000002.bmp}
{1460}{1507}{Subpictures_21_000003.bmp}
...

Supread generates :
;Subpictures_21.sup

FrameRate=23.976

Alpha=FFF0

{1240}{1299}{line0001.bmp}

{1305}{1366}{line0002.bmp}

{1400}{1445}{line0003.bmp}
...


As you can see, Palette info is in the .txt file. Also, Supread seems to always set Alpha to FFF0 ...

Pelican9
24th February 2007, 22:47
I tried again with the last versions of EVOdemux and SUPread and have still teparhe same problem.
I've carefully checked the file with a binary editor and it seems each line is sated by 0x0a followed by 0x0d whereas notepad.exe puts 0x0d followed by 0x0a. This explains why notepad is confused. Could it be the same for subrip?

Hope this helps
Manusse

:confused:
My notepad works normally with it...
I've tried to change 0d0a but then my notepad can't handle it.

each line is sated by 0x0a followed by 0x0d
Are you sure? This is definitly 0D0A...

7B 31 32 30 31 7D 7B 31 32 37 32 7D 7B 56 54 53 {1201}{1272}{VTS
5F 30 31 5F 30 2E 32 30 5F 30 30 30 30 30 35 2E _01_0.20_000005.
62 6D 70 7D 0D 0A 7B 31 33 33 30 7D 7B 31 34 31 bmp}..{1330}{141
36 7D 7B 56 54 53 5F 30 31 5F 30 2E 32 30 5F 30 6}{VTS_01_0.20_0

manusse
24th February 2007, 22:59
I've rechecked and I confirm what I've written.
Really strange...

Manusse

manusse
24th February 2007, 23:01
00000000:3b 2e 53 75 62 70 69 63 74 75 72 65 2e 30 30 2e ;.Subpicture.00.
00000010:73 75 70 0a 0d 46 72 61 6d 65 52 61 74 65 3d 32 sup..FrameRate=2
00000020:33 2e 39 37 36 0a 0d 41 6c 70 68 61 3d 46 46 46 3.976..Alpha=FFF
00000030:30 0a 0d 7b 37 32 39 7d 7b 37 35 39 7d 7b 6c 69 0..{729}{759}{li
00000040:6e 65 30 30 30 31 2e 62 6d 70 7d ne0001.bmp}

Pelican9
25th February 2007, 09:32
00000000:3b 2e 53 75 62 70 69 63 74 75 72 65 2e 30 30 2e ;.Subpicture.00.
00000010:73 75 70 0a 0d 46 72 61 6d 65 52 61 74 65 3d 32 sup..FrameRate=2
00000020:33 2e 39 37 36 0a 0d 41 6c 70 68 61 3d 46 46 46 3.976..Alpha=FFF
00000030:30 0a 0d 7b 37 32 39 7d 7b 37 35 39 7d 7b 6c 69 0..{729}{759}{li
00000040:6e 65 30 30 30 31 2e 62 6d 70 7d ne0001.bmp}



Hmmm, interesting.
1:1 :-)

dr4g0n
25th February 2007, 13:53
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...

Pelican9
25th February 2007, 19:00
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
25th February 2007, 19:14
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.

dr4g0n
25th February 2007, 20:00
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 ?

Pelican9
25th February 2007, 20:57
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).

Deckard2019
26th February 2007, 00:44
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 ...

JnZ
26th February 2007, 13:55
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.

Pelican9
26th February 2007, 14:07
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?

JnZ
26th February 2007, 14:33
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.

Pelican9
26th February 2007, 15:20
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).

JnZ
26th February 2007, 16:35
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. :(

dr4g0n
26th February 2007, 21:41
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.

Pelican9
27th February 2007, 00:25
I don't understand how you can get 0a0d instead of 0d0a... :confused:

Deckard2019
1st March 2007, 21:41
Still working on EVODemux ? ;)
Now we found a way to decode DD+, the only thing I need is subtitles ...

Pelican9
2nd March 2007, 01:01
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
4th March 2007, 16:10
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 (http://pel.hu/down/SUPread.exe)

tjf
4th March 2007, 20:24
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?

Deckard2019
4th March 2007, 20:32
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.

Pelican9
5th March 2007, 01:48
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
5th March 2007, 01:50
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...

ai4spam
5th March 2007, 17:15
SubRip expects the bitmaps in the format DVDSupDecode writes them (supported options are Palette, FrameRate and Alpha).
The images need not be full-screen, they should be cropped like in .idx/.sub. Also, they are 256-color .bmp files (8 bits per pixel).
Finally, SubRip can process characters of at most 80x44 pixels, so if your characters are larger than that, you need to do a resize. Careful with bilinear interpolation, make sure it doesn't create new color values (only 4 colors are supported).

dchard
5th March 2007, 20:53
With a.25b and demuxed Batman begins (with latest evodemux) and 32bit sp2 XP I got access violation errors, when trying to open demuxed .sup-s in supreader.

Dchard

Pelican9
6th March 2007, 15:16
With a.25b and demuxed Batman begins (with latest evodemux) and 32bit sp2 XP I got access violation errors, when trying to open demuxed .sup-s in supreader.

Dchard

Download the newest EVOdemux and demux the subtitle again.

tjf
7th March 2007, 08:43
I am trying to convert the demuxed sup subtitles to idx and then mux it to Matroska. I do not care much for OCR as the file size savings do not make sense compared to those huge video and audio files. So I tried to open the sup file in SubtitleCreator but at the end of import I get .NET Framework unhandled exception.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at SubtitleCreator.SUPPreviewForm.UpdateMenu()
at SubtitleCreator.SUPPreviewForm.ListBoxSUPSelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.set_SelectedIndex(Int32 value)
at SubtitleCreator.SUPPreviewForm.ShowSUPPreview(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SubtitleCreator
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files/SubtitleCreator/SubtitleCreator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DShowNET
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files/SubtitleCreator/DShowNET.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ListViewEx
Assembly Version: 1.0.2297.19690
Win32 Version: 1.0.2297.19690
CodeBase: file:///C:/Program%20Files/SubtitleCreator/ListViewEx.DLL
----------------------------------------
SubtitleCreator.resources
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files/SubtitleCreator/en/SubtitleCreator.resources.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Deckard2019
7th March 2007, 10:15
I am trying to convert the demuxed sup subtitles to idx and then mux it to Matroska.
You're right. This is the best thing we can do now, as SubRip works strangely with image sequence.
Maybe SUPread can directly export idx/sub files ?
Maybe this code can be included in EVODemux ?
For this, we need to find idx/sub file specs ...

EDIT:
A good start point : http://www.matroska.org/technical/specs/subtitles/images.html

Pelican9
7th March 2007, 14:14
I think the idx/sub structure can contain only the DVD's subtitles, but cannot the HD DVD's subtitles because the subtitle streams are different.

Deckard2019
7th March 2007, 17:31
I think the idx/sub structure can contain only the DVD's subtitles, but cannot the HD DVD's subtitles because the subtitle streams are different.
As we can mux the files in MKV container, I don't think it's only relative to DVD.

Pelican9
7th March 2007, 18:12
As we can mux the files in MKV container, I don't think it's only relative to DVD.

I'm sure. :-)

I don't understand why the programmers don't develop their softwares to handle this new .sup format of HD DVD...
(Manusse! Do you hear me?)

manusse
7th March 2007, 20:41
Hi Pel,

It's on my plans to have a look but at present I (and Paddington) are a bit busy and don't have much time for programming.
Also we want to add many features to SubtitleCreator like karaoke sup generation, sup or vobsub resize, HD compatibility, fix the annoying remaining bugs ...
I was wondering if at first a simple import function in SubtitleCreator would do the job. Like resizing the sup to SD and reducing the number of colors to 3. This may be an easier task for a beginning. :)

What do you (the users) think?

Manusse

dchard
7th March 2007, 23:12
Download the newest EVOdemux and demux the subtitle again.

With those the problem solved.

About HD-DVD subtitles:
now we had the complete subtitle in BMP/PNGs, so first the .sup --> .srt conversion have to be solved.

But a most annoying problem is, that we cannot convert any .srt to .sup and then remux the stream with it. Now if a rip done, than its very easy to find/resync existing subtitles and use them, but if I have a proper one for a HD-DVD movie I cannot use it. So I think the most important is the capability to convert .srt to .sup, and then remux the video with it. Teh second is .sup to .srt .

Dchard

Pelican9
7th March 2007, 23:40
With those the problem solved.

About HD-DVD subtitles:
now we had the complete subtitle in BMP/PNGs, so first the .sup --> .srt conversion have to be solved.

But a most annoying problem is, that we cannot convert any .srt to .sup and then remux the stream with it. Now if a rip done, than its very easy to find/resync existing subtitles and use them, but if I have a proper one for a HD-DVD movie I cannot use it. So I think the most important is the capability to convert .srt to .sup, and then remux the video with it. Teh second is .sup to .srt .

Dchard
No.
First thing first.
The hard part is the .sup to .srt conversion (OCR).
If it's working go to the next part.
I'll make the subtitle multiplex in EVOdemux.

Pelican9
7th March 2007, 23:47
Hi Pel,

It's on my plans to have a look but at present I (and Paddington) are a bit busy and don't have much time for programming.
Also we want to add many features to SubtitleCreator like karaoke sup generation, sup or vobsub resize, HD compatibility, fix the annoying remaining bugs ...
I was wondering if at first a simple import function in SubtitleCreator would do the job. Like resizing the sup to SD and reducing the number of colors to 3. This may be an easier task for a beginning. :)

What do you (the users) think?

Manusse

I (and many others) would like to use the features of Subtitle Creator for HD subtitles right now. :)

manusse
8th March 2007, 21:45
I (and many others) would like to use the features of Subtitle Creator for HD subtitles right now.
I've understood that. But let me ask again my question:

Would a first (fast to design) solution that would resize the HD-sub to SD and lower its colour number to 3 plus background be OK.

Of course, a fully working HD solution would be better but as I mentioned before it will take time and we don't have much at present.

So would my first proposal be OK?

Cheers
Manusse

Deckard2019
8th March 2007, 21:49
Would a first (fast to design) solution that would resize the HD-sub to SD and lower its colour number to 3 plus background be OK.

Of course !

Pelican9
9th March 2007, 00:56
I've understood that. But let me ask again my question:

Would a first (fast to design) solution that would resize the HD-sub to SD and lower its colour number to 3 plus background be OK.

Of course, a fully working HD solution would be better but as I mentioned before it will take time and we don't have much at present.

So would my first proposal be OK?

Cheers
Manusse

Sorry but it isn't clear for me.
Do you want to read the HD subtitles to the existing format that your sw can handle right now?
Anyway, my answer is yes. :-)

manusse
9th March 2007, 19:01
Sorry but it isn't clear for me.

Let me try to rephrase it simply:
Add an import function to SubtitleCreator. When importing a HD-DVD sup file (extracted using EvoDemux), SubtitleCreator would first internally convert it to SD sup (which means resize it to PAL or NTSC sup size, change its number of colors to 3 plus background) and then display it. It will then be possible to process it as a standart SD subtitle, i.e. save it to sup (SD) or VobSub (sub/idx) thus allowing to OCR it with DVDSubEdit or SubRip.

Hope it's clear now.
Cheers
Manusse starting to work on it. (Hoping it's not too time consuming)

Pelican9
9th March 2007, 19:22
Let me try to rephrase it simply:
Add an import function to SubtitleCreator. When importing a HD-DVD sup file (extracted using EvoDemux), SubtitleCreator would first internally convert it to SD sup (which means resize it to PAL or NTSC sup size, change its number of colors to 3 plus background) and then display it. It will then be possible to process it as a standart SD subtitle, i.e. save it to sup (SD) or VobSub (sub/idx) thus allowing to OCR it with DVDSubEdit or SubRip.

Hope it's clear now.
Cheers
Manusse starting to work on it. (Hoping it's not too time consuming)

Thanks, understood.

Deckard2019
9th March 2007, 21:06
It will then be possible to process it as a standart SD subtitle, i.e. save it to sup (SD) or VobSub (sub/idx) thus allowing to OCR it with DVDSubEdit or SubRip.
Great !

MichalHabart
13th March 2007, 21:03
Let me try to rephrase it simply:
Add an import function to SubtitleCreator. When importing a HD-DVD sup file (extracted using EvoDemux), SubtitleCreator would first internally convert it to SD sup (which means resize it to PAL or NTSC sup size, change its number of colors to 3 plus background) and then display it. It will then be possible to process it as a standart SD subtitle, i.e. save it to sup (SD) or VobSub (sub/idx) thus allowing to OCR it with DVDSubEdit or SubRip.

Hope it's clear now.
Cheers
Manusse starting to work on it. (Hoping it's not too time consuming)

Sounds more then promising :)

Deckard2019
13th March 2007, 21:47
There you are here MichalHabart ;)

manusse
14th March 2007, 00:01
I've started to work on it. However you'll have to wait a bit because I don't have much free time for it. Be patient...

Cheers
Manusse

MichalHabart
14th March 2007, 09:13
There you are here MichalHabart ;)

I was watching into this thread long time but so far there was no working procedure for converting sup into srt :)

Pelican9
14th March 2007, 09:58
I was watching into this thread long time but so far there was no working procedure for converting sup into srt :)

Fortunately, it's not true! :)
I'm working on an OCR routine.

Sagittaire
14th March 2007, 10:42
Fortunately, it's not true! :)
I'm working on an OCR routine.

Well it's perhaps useless. Subripp can make that. Make compatible files with subripp and use subripp for OCR is perhaps a better/simple way ... ???

You make fantastic work with EVODemux and SUPread ... :thanks:

Deckard2019
14th March 2007, 11:29
Well it's perhaps useless. Subripp can make that. Make compatible files with subripp and use subripp for OCR is perhaps a better/simple way ... ???
Read previous pages. We already tried but Subrip works weirdly with image sequence.
Even with a sequence coming from a DVD :eek:

MichalHabart
14th March 2007, 11:56
Fortunately, it's not true! :)
I'm working on an OCR routine.

Cool, keep going :)

derebo
14th March 2007, 14:14
WOW! all this great news about SC and HD-DVD... thanks for your effort manusse and pelican!

greetings,

Pelican9
15th March 2007, 16:53
I'm almost there... :)

Kiriakos
15th March 2007, 18:46
I'm almost there... :)

May the force be with you, master. :thanks:


PS: Cant wait.

Pelican9
15th March 2007, 19:07
May the force be with you, master. :thanks:


PS: Cant wait.

Why don't you download the newest version... :-)))

Kiriakos
15th March 2007, 21:46
Why don't you download the newest version... :-)))

WOW!

:eek: Thanks m8.

Rectal Prolapse
15th March 2007, 22:23
Wow thanks Pelican9!

Is there a way to get the OCR to "learn" characters it can't identify? It would be nice if you can correct its mistakes and if it could remember what you typed in for characters it had problems with.

But - I guess that would be a lot of work. This is a great addition!

Hmmmm, any tips on using Scenarist ACA for creating the subs? Does Scenarist create a subpicture stream usable by today's currently available subtitle display filters, like vsfilter?

Rectal Prolapse
15th March 2007, 22:29
Slight bug report:

It seems the italic form of "rt" is not recognized. When the r and the t characters run together. This might be a problem for other character pairs that are very close apart ("tt", etc.).

Also, sometimes the letter "f", at the beginning of the word, is misidentified as italic when it isn't - and the whole word gets flagged as being italic. Manually running the OCR on it again with "Normal" checked fixes it. :)

The letter "I" (eye) gets confused for lower case "L" all the time when it is the beginning of the word, and is followed by an apostrophe, such as "I'd like to..." being converted to "l'd like to...", with an L.

Pelican9
16th March 2007, 00:52
Changes for v0.3

- Convert bitmaps to text (OCR)
- New options for OCR (skew, cut level)
- 'OCR all' function
- Jump to the next and the previous error
- Enable tags (<i></i>)

Download: SUPread v0.3 (http://pel.hu/down/SUPread.exe)

This is still a beta version, but it can read the characters of the English alphabet and some special chars ([]()$.,'"-)
The 'rt', 'tt', 'ff' problem at the italic font is feasible sometimes with adjusting the level value.
The 'I' and 'l' have the same pixel representation on the bitmap, they recognizable only use of the text context but it differs in the different languages. I'm thinking about it.
The leading f,t,O problem not yet solved. You can use the manual override of the font style.

Rectal Prolapse
16th March 2007, 02:49
I seem to have issues with the small letter n being confused with o, the capital letter E being confused with B, and z being confused with x. Hmmmm.

Is there a server I can upload sample .sup files to you for testing? I guess it may not be necessary if you know about those other bugs. :)

Still, it works well otherwise - it took me about 30 minutes to do the Harry Potter HD-DVD movie!

Rectal Prolapse
16th March 2007, 07:06
I wonder if it would be possible to convert the Scenarist SST file generated by SupRead into .sub/.idx files? Then it would be easy (or easier) to drop it into an MKV for use by DirectVobSub for playback, without the need for OCR.

It would be nice to convert the bitmaps into a usable subtitle picture format - it would save a lot of time. :)

Pelican9
16th March 2007, 08:54
I seem to have issues with the small letter n being confused with o, the capital letter E being confused with B, and z being confused with x. Hmmmm.

Do you use the latest version?
Please share your subtitle file.

JnZ
16th March 2007, 09:29
Hi Pelican, You make very big progress on SUPread from my last checking. OCR seems very promising.

I have one suggestion - when font is italic, put <i> </i> tag into STR file. EDIT: Ups I find this option in settings... :)

:thanks: for your good stuff.

EDIT: Well there is a problem with italic "g","rt","7", which cannot be recognized. Italic "i" reads as "ˇ", italic "2" reads as "g", italic "0" as "8"...but this is minor bugs.

Deckard2019
16th March 2007, 10:08
Sometimes, Font mode switches to "Auto" but OCR result is better in "Normal" :
"tin" becomes "?o" in Auto but is correct in Normal (@Pelican9 : see line 53).
Italic characters are falsely detected as they are normal in the bitmap.
Also, accented characters are not detected. But number 6 is ok now ;)

BTW, an "OCR all" gives a great result. Not so far from 100%.
Do you think it would be a wrong idea to add spelling correction feature ?

DeepBeepMeep
16th March 2007, 10:09
Thanks! Very nice! Now these sup files start to have some use.

Bugs:
- The OCR All options inserts carriage returns in the middle of lines whereas step by step OCR works properly and inserts only CR when there are several lines in a bitmap
- The OCR can't detect the letter "g"
- The OCR confuses quite often Digits (3 and 8 for instance)
- A "i" that was detected is sometime transferred incorrectly as a reversed "!"
- step by step OCR stops a line where there isn't any error

Suggestion
- The "auto" mode of the OCR makes quite often errors assuming a style has changed in the middle of a sentence. In most cases no errors would have been reported if it had assumed the sentence was either ONLY italic or ONLY normal style.

Indeed, it is very rare that a same line contains mixed styles. An option to assume that a style can't change in the middle of words or a line would improved greatly the efficiency of the OCR

Pelican9
16th March 2007, 12:13
I thank everybody for testing.
Some info to understand how the program works.
First step: isolating the characters: the algorythm is very simple, it's trying to isolate the characters with two methods (normal and italic) and the winner is the one which returns the thinner (less width) result. This algorythm fails when non-italic text contains a word starting with f (or some other conditions)
In the image window you can find a Radio group
Normal means all the characters of this subtitle are normal style.
Auto means that the text may contain both styles, the sw recognizes automatically
Italic means all the characters of this subtitle are italic
If the sw finds that all chars of the text are the same style, then it sets the right value, if it finds both styles then it sets the Auto
The wrongly recognized style creates wrongly recognized characters.

DeepBeepMeep
16th March 2007, 12:50
That's interesting... So it seems, it should be then easy to implement quite quickly the suggestion I made in a earlier post:

- for each line of a bitmap, look at the number of chars return of Normal and Italic chars returned by the auto mode and see which types of chars are more numerous, then reprocess automatically the line assuming it is only made of italic or normal chars. You could go even further by applying this processing on each word individually instead of lines
- even simpler, apply each of your three modes (normal, italic, and auto) and keeps the one that has fewer undetected chars than the others

A combination of the these two ideas can give even better results

Pelican9
16th March 2007, 15:52
That is not so simple.
Many words like 'for' gives the same number of chars with the two styles...
Anyway, for me it doesn't ever fail if the style is set properly.
Please share the subtitle with me if there is a mistaken char.

Deckard2019
16th March 2007, 15:58
Please share the subtitle with me if there is a mistaken char.
Did you try mine yesterday ?

Pelican9
16th March 2007, 16:53
Did you try mine yesterday ?
Yes, of course. It works, except the é, á and the other special french chars.
I would like to solve this style problem first.

Rectal Prolapse
16th March 2007, 16:57
Pelican, I just used the one you posted that is slightly different than the other one. It appears that the very first version (before you posted the link) worked a little better - but maybe that was because I turned on the italic tab and it MISSED more obvious errors. I don't know.

Anyways, all the bugs reported by others is true for me.

There doesn't appear to be a way for me to up files easily. I will give Rapidshare a try, even if it sucks. :)

Pelican9
16th March 2007, 17:29
I've tried the OCR with the following movies:
The Chronicles of Riddick
The Last Samurai
Deer Hunter
Serenity
(the English track)
The Riddick works well without any failure except the 'music note' char
The others have some unrecognized char, mostly 'rt', 'tt' where not enough space between the two chars.

RP: Try sendspace.

idamien
16th March 2007, 18:31
Many, many, many thanks for the great tool, Pelican9!

Question: Are you using any kind of dictionary to correct mispellings? e.g. "L" OCR-ed to "I", "aIIey" instead of "alley", etc. If you are not, do you think it is a good idea? Maybe then you could have different dictionary files (.txt files) for different languages which the users themselves could add to. What do you think?

Feedback: I tried doing the OCR on some english subtitles but some things happened which I think could/should be changed:

1. I copied the text from the SRT tab and pasted in a text file with .srt extention. The file would not open under Urusoft´s Subtitle Workshop. The program popped an error saying it wasn´t a valid format.

2. Some subtitle images, when OCR-ed, came out as three, four and I´m guessing even five lines at times. Limiting and distributing text to a maximum of two lines would be a good thing, I guess.

3. The italics tags <i></i> are used once for each line even though all lines are in italics. Isn´t an opening tag at the beginning of the first line coupled with an ending tag at the end of the last line enough for these cases?

Anyway, thank you so much for this app and for EVODemux, Pelican9. Your effort and time, and the great results they are yielding, are greatly appreciated. Many, many thanks again.

Pelican9
16th March 2007, 19:01
I've just made some bugfix and change the method of choosing style.
The .srt export is working now.
The newest version 0.3b3

Rectal Prolapse
16th March 2007, 21:29
I missed the Sendspace suggestion!

I will give you the rapidshare link in PM.

Rectal Prolapse
16th March 2007, 21:39
Mosu in the EVOB demux thread said that a comma should be used instead of periods when specifying the fractional seconds in the SRT file. Maybe that is why Subtitle Workshop doesn't like it?

Also, MKVMerge didn't like that either, but Mosu just linked to a new build of MKVToolNix that accepts periods in the timestamps.

Pelican9
16th March 2007, 22:00
Mosu in the EVOB demux thread said that a comma should be used instead of periods when specifying the fractional seconds in the SRT file. Maybe that is why Subtitle Workshop doesn't like it?

Also, MKVMerge didn't like that either, but Mosu just linked to a new build of MKVToolNix that accepts periods in the timestamps.
I think you missed my post at 19:01...
Not only the comma versus period but the missing leading zero was the problem.

Edit:
Some bug fix in v0.3b5
(and English dictionary)

Some bug fix in v0.3b6
The dictionary solved the 'I' <> 'l' problem

Rectal Prolapse
17th March 2007, 22:11
Thanks Pelican! When I get back to my machine tomorrow I will retest. :)

Pelican9
21st March 2007, 02:36
It's not perfect, but it works for me very well.

Changes for v0.3

- Convert bitmaps to text (OCR)
- New options for OCR (skew, cut level)
- Enable tags (<i></i>)
- Language selection
- 'OCR all' function
- Jump to the next and the previous error

yonta
21st March 2007, 05:35
Hi, Pelican.

I tested SUPread v0.3 on Mummy.
The result is awesome!
only except for the following misreadings.

halfway >> hal??y
of job >> ofjob
of junk >> ofjunk
£100 >> ? 00
netjer >> ne??r

and, I don't think I have to include the old problem of reading 'I' as 'l'.

Pelican9
21st March 2007, 09:37
Thanks.
Please share the sup file!
Did you choose the language?
(It solves the I<>l problem.)

yonta
21st March 2007, 12:52
I did it with the language set to English.

SUPread read all 'Imhotep' instances as 'lmhotep', but this is easily fixable with a find & replace in notepad.
Except that, just a few misreadings on 'I', like;
l, l, I woke him up and I intend to stop him (first two)

Pelican9
21st March 2007, 23:24
Changes for v0.31

- Fixed bug with spaces between cj|fj|tj|yj|fA
- Fixed bug with rt,rw,fw,fy
- New options: Space width values

I need a little help.
What character shall I use for the music (eighth) note?

MichalHabart
22nd March 2007, 08:14
Changes for v0.31

- Fixed bug with spaces between cj|fj|tj|yj|fA
- Fixed bug with rt,rw,fw,fy
- New options: Space width values

I need a little help.
What character shall I use for the music (eighth) note?

Just tried newest version but result is really bad:

1
00:04:16,120 --> 00:04:16,211
D··d·

2
00:04:21,020 --> 00:04:21,122
H····· ··· ··· ·l·idh··

3
00:04:25,058 --> 00:04:25,160
Y····· d····i·d.

4
00:04:29,329 --> 00:04:29,431
··· i· ·b··· M····

5
00:04:36,805 --> 00:04:36,907
l· ·h·· b······

6
00:04:41,677 --> 00:04:41,779
M· d··· b·b· ...

7
00:04:44,582 --> 00:04:44,684
l··· d···i·d ·· b· ·· ·b····i··.

8
00:04:53,757 --> 00:04:53,860
··· ·h· ·h····

9
00:04:56,961 --> 00:04:57,052
·h··

10
00:05:02,100 --> 00:05:02,191
Th· ··· ··· ··ld ·· ·b····
·h· b·······.


What did i do wrong in settings of supread? Movie is Total Recall. If you want, i can upload somewhere sup file for you.

Pelican9
22nd March 2007, 10:33
What options (OCR values) do you use?
If you use the same values, please share your sup file.
http://pel.hu/down/SUPoptions.jpg

MichalHabart
22nd March 2007, 10:53
What options (OCR values) do you use?
If you use the same values, please share your sup file.
http://pel.hu/down/SUPoptions.jpg

I used exactly the same options.
Sup file is here: http://rapidshare.com/files/22214553/L0_mainMovie_L1_mainMovie.8bitRLC.stream.01..sup.html

Pelican9
22nd March 2007, 12:56
Thanks.
The character size is the problem.
I'll fix it tomorrow.

Mtz
22nd March 2007, 13:07
What character shall I use for the music (eighth) note?
Can you use the one from the screenshot. Is at the same position for all Code Pages.
http://img262.imageshack.us/img262/7011/notecharactervw0.jpg (http://imageshack.us)
I'm using it in my settings for subrip.

enjoy,
Mtz

Pelican9
22nd March 2007, 13:48
Thank you.

ai4spam
23rd March 2007, 21:37
Read previous pages. We already tried but Subrip works weirdly with image sequence.
Even with a sequence coming from a DVD :eek:

Well, as per my previous post, SubRip supports image sequences as generated by DVDSupDecode (4 colors, 8 bits per pixel), and the only issue is the size of the characters (might be too large).
Alternatively, use OCRdll like DVDSubEdit.
To see what kind of bitmaps you need to generate, grab a valid SD .sup file, run it through DVDSupDecode, and look at the output.
Hope this helps.

Rectal Prolapse
24th March 2007, 06:01
Would it be possible to resize the bitmaps generated by supread, such that they are compatible with Subrip?

If that will work then maybe we can use a graphics tool with batch processing to rescale the subs to DVD resolution, then use subrip...

ai4spam
25th March 2007, 05:39
It should work. Just use nearest neighbor resizing instead of bilinear or anything fancy, to keep the color count to 4.

Rectal Prolapse
25th March 2007, 07:57
Ok thanks!

dchard
25th March 2007, 17:55
Is there any way to convert an srt file to proper sup, that we can instert(mux) to an HD-DVD?

Thanks!

Dchard

manusse
25th March 2007, 18:10
Maybe with some professional software. But it's on our plans for SubtitleCreator. However we didn't start working on it so it could take a few months before it exists.

I have made good progress in the HD-SUP import. I mean importing a HD-SUP into SubtitleCreator to be able to export it to SD-Sup or VobSub or SRT for further processing. I still have some bugs. However I hope we will be able to release a beta within one month.

Cheers
Manusse

Bluedeep
19th April 2007, 23:35
Can you add extended ascii ocr?

tnx

zgx
1st May 2007, 20:22
Downloaded the latest version of SUPread and tried it out on the first HD DVD I could find. Did not work that well as you can see below:

00:02:23,942 --> 00:02:24,034
E·c·se·-·oi. C·es· bie· l0
···habi·e Del·a· Be··· ·

3
00:02:26,173 --> 00:02:26,275
ll es· ?as l0

4
00:02:29,306 --> 00:02:29,408
Re···e· ch··ie

5
00:02:36,615 --> 00:02:36,718
C·es· ·· a·i

6
00:02:40,292 --> 00:02:40,383
D·aille··s·
c·es· l·i ··i a ·c·i· l·ad·esse

7
00:02:46,789 --> 00:02:46,892
Vo·s ·eco··aisse· so· ·c·i···e

8
00:02:49,297 --> 00:02:49,399
J·ai e· d· ·al 0 ··o··e·


Used all the default settings. You can download the SUP file here: http://www.rogepost.com/n/4783213726

Keep up the good work!

Pelican9
1st May 2007, 21:38
Unfortunatelly, this font type and even the french letters are not supported yet.
You can improve the result if you decrease the level (e.g. 20).

tjf
6th May 2007, 09:36
I have already twice encountered problem where SUPread sometimes omits the end time of a subtitle.

This is example from The Good Shepherd:

4
00:00:55,188 --> 00:00:57,054
WOMAN: You are safe here
with me.

5
00:01:43,770 -->
NEWSCASTER ON RADIO:
Has a decision been reached
on how far this country

6
00:01:46,340 -->
would be willing to go

7
00:01:47,507 --> 00:01:51,535
in helping an anti-Castro
uprising or invasion in Cuba?

8
00:01:51,945 -->
PRESIDENT KENNEDY: Well,
first, l want to say that
there will not be,



I have uploaded the evodemuxed sup file here (http://rapidshare.com/files/29755120/FEATURE_1_FEATURE_2.8bitRLC.s00.English_SDH.sup.html).

Is this a bug in SUPread?

Tomas

Pelican9
6th May 2007, 10:29
I have already twice encountered problem where SUPread sometimes omits the end time of a subtitle.

...

I have uploaded the evodemuxed sup file here (http://rapidshare.com/files/29755120/FEATURE_1_FEATURE_2.8bitRLC.s00.English_SDH.sup.html).

Is this a bug in SUPread?

Tomas

It was a bug, but I've fixed it. Which version do you use?

tjf
6th May 2007, 11:13
It was a bug, but I've fixed it. Which version do you use?

I thought I have the latest (v0.31), but I see although it has the same version number it has different file size then the one in your signature. That one works without any problem.

Thanks.

Pelican9
6th May 2007, 13:52
OK.
Sorry for the inconvenient version numbering.

manusse
6th May 2007, 18:46
Hi,

You can try the new version of SubtitleCreator (2.2.2) that can import HD-SUP subtitles.

https://sourceforge.net/project/showfiles.php?group_id=120228&package_id=151984&release_id=505208

To test it, go to Tools->Manipulate SUP... and open your SUP file demuxed using EVODemux. The HD-SUP will be resized to SD and the color number lowered to 3 plus transparency. You can then process the subtitle like any SD subtitle, i.e. save it to .sup or VobSub (sub/idx), OCR it to SRT with SubRip, DVDSubEdit, SubtitleCreator,..., add it to an existing DVD with muxman, play it with VSFilter, resynch it with VobSub tools or SubtitleCreator, ...

Could you please test as many HD-SUP as possible and post the bugs you find in this thread or SubtitleCreator's sticky thread.

Cheers
Manusse

Rectal Prolapse
6th May 2007, 19:02
Great work! I can't wait to try it! Thanks!

cwm9
7th May 2007, 10:54
When you save the .png format files, can you please save them with the transparency preserved? Right now transparency is being thrown away :eek:

Transparency in .png can be easilly set with the tRNS chunk. Thanks!

Pelican9
7th May 2007, 12:18
Are you talking to Manusse or to me?

cwm9
8th May 2007, 02:52
To you, Pelican. =)

BTW, thanks so much for your work. It's gratefully appreciated.

I'm interested in recovering the original files and not so interested in OCRing them.

When I open the .sup, the background is grey showing where the image should be transparent, but when the images are saved to .png files the transparency is replaced with black.

Since black is used as a drawing color, it becomes impossible to tell the difference between black and transparent.

Could you please save the transparency information with the .png files? You simply choose an index color and set its alpha to 0 using the tRNS chunk type. (Or, if you are using a library, I imagine it has the ability to do this, too.) I imagine they are now using index 255 as transparent? If that's the case, simply set index 255 to transparent and don't convert it to black. You could also save the images as 24bit/16bit+alpha. I don't know how the alpha information is stored in the .sup, but I don't imagine this should be too hard?

Also, I noticed something strange with the dumped scn-sst files last night. I'm not 100% sure of this, but it looks like the time codes you are printing are drop-frame time codes. I say this because the non-drop video's audio track doesn't line up with the subtitles unless I interpret the subtitle times as drop-timecodes. However, if they are in fact drop-frame timecodes, they don't appear to follow the correct drop-frame rules. That is, the 0th and 1st frame should be skipped at the top of every minute, except on even 10 minute intervals. Perhaps, and this is just a far-fetched guess, the SUP encodes time as a timecode + a number of frames and maybe you don't add the frame number correctly if it's on a minute boundry? Just a guess. If this is what's going on, perhaps it would probably be a lot easier just to print out non-drop time codes?[/B]

I was able to make this part work just by interpreting the timestamps as drop-frame timecode and editing any time that fell on a forbidden frame forward by one frame if it was originally a .00 time or by two frames if it was originally a .01.

Thanks!

Pelican9
8th May 2007, 22:12
When I open the .sup, the background is grey showing where the image should be transparent, but when the images are saved to .png files the transparency is replaced with black.

Since black is used as a drawing color, it becomes impossible to tell the difference between black and transparent.

Could you please save the transparency information with the .png files? You simply choose an index color and set its alpha to 0 using the tRNS chunk type. (Or, if you are using a library, I imagine it has the ability to do this, too.) I imagine they are now using index 255 as transparent? If that's the case, simply set index 255 to transparent and don't convert it to black. You could also save the images as 24bit/16bit+alpha. I don't know how the alpha information is stored in the .sup, but I don't imagine this should be too hard?
What have I do with this chunk? I've never used PNG before... I've set the transparent color, the transparency mode but still nothing.

Also, I noticed something strange with the dumped scn-sst files last night. I'm not 100% sure of this, but it looks like the time codes you are printing are drop-frame time codes. I say this because the non-drop video's audio track doesn't line up with the subtitles unless I interpret the subtitle times as drop-timecodes. However, if they are in fact drop-frame timecodes, they don't appear to follow the correct drop-frame rules. That is, the 0th and 1st frame should be skipped at the top of every minute, except on even 10 minute intervals. Perhaps, and this is just a far-fetched guess, the SUP encodes time as a timecode + a number of frames and maybe you don't add the frame number correctly if it's on a minute boundry? Just a guess. If this is what's going on, perhaps it would probably be a lot easier just to print out non-drop time codes?[/B]

I was able to make this part work just by interpreting the timestamps as drop-frame timecode and editing any time that fell on a forbidden frame forward by one frame if it was originally a .00 time or by two frames if it was originally a .01.

Thanks!
The time information on the HD DVD and on the BD is a four-byte value (in 1/90000 seconds). So I know the correct time, but not know the right frame. If you describe the algorythm of the conversion from time (in hh:mm:ss.msec) to timestamp (hh:mm:ss:frame) I'll build in to SUPread. Now, I simply convert the milliseconds to frame based on 24 fps (divide by 1000 and multiple 24) so I think it isn't a drop-frame timecode. I don't know what the right format for the Scenarist, but you could help me.

cwm9
10th May 2007, 01:54
What have I do with this chunk? I've never used PNG before... I've set the transparent color, the transparency mode but still nothing.

If you're "raw writing" the .png, the chunk is used to apply a different alpha to each index (in index mode transparency.) If you are using a library, then it should do everything for you. If you already set the transparent color and transparency mode in the library, you can open it with Photoshop to see if the image is properly transparent. Can you let me know if you are using a library, and if so, which one? If you're not using a library, let me know that to...

The time information on the HD DVD and on the BD is a four-byte value (in 1/90000 seconds). So I know the correct time, but not know the right frame. If you describe the algorythm of the conversion from time (in hh:mm:ss.msec) to timestamp (hh:mm:ss:frame) I'll build in to SUPread. Now, I simply convert the milliseconds to frame based on 24 fps (divide by 1000 and multiple 24) so I think it isn't a drop-frame timecode. I don't know what the right format for the Scenarist, but you could help me.

It took me a bit of thinking to figure out the frame code thing, but I think I've got it. HDDVD plays back in 60i mode, but 60i is nominative and is actually 59.94i, or more familiarly, 29.97fps. The film is encoded at 23.976 and uses pulldown flags to convert from 23.976->59.94i/29.97fps.

The correct way to convert frames to timecode at 23.976 would be to convert the whole seconds to H:M:S and then multiply the fractional party by 23.976 to get the frame number, etc, etc, but this is a pain in the a$$ because the fractional time of each frame is different from every other, so instead NTSC uses the nominative value of 30fps. Historically, this made editing much easier. Thus in scenarist, if you select non-drop, you don't get 29.97fps non-drop timecodes, you get _30fps_ non-drop timecodes, even though at playback you will really get 29.97fps. That is, the timecodes are running too slowly. (the higher the fps, the more frames it takes to count off a minute -- so for the same nubmer of frames, the timecode is smaller so the timecode is thus running more slowly. Higher fps = slower timecode.)

In the world of NTSC, to convert 60i nominative timestamps to real-world timestamps you have to use the "drop frame" timecodes. The subtitles are written in absolute real-world time, not in the nominative timecode stamps, and that's why the time stamps "appear to be drop-coded" when written out as timecodes. In reality, they're absolute times which are neither drop nor non-drop.

In order to convert from absolute time to NTSC timestamps you must convert either to a) nominative 60i timestamps or b) nominative 60i drop-frame timestamps. But then, only NTSC behaves this way; pal does not.

This is a mess created by the NTSC drop-frame scheme, and I really don't see an easy way out. You should probably give the option to write out in several formats depending on the needs of the user.

let time=the time encoded in the subtitle in seconds.

a) absolute time (not importable, but useful to some people probably). Simply print 'time'. Useful for those who will want to convert to a completely different format at potentially a different framerate.

b) at a user selectable non-drop framerate. Convert floor(time) to H:M:S. The frame number is then floor(fps*frac(time)+.5). (The +.5 is to make sure rounding errors don't cause the wrong frame number to be calculated.) Useful for those who want to convert to DIVX and for PAL material.

c) at NTSC nominative 60i/30 non-drop. Multiply each time by (29.97/30) to get to the nominative time. Convert floor(time*29.97/30) to to H:M:S. The frame number is then floor(30*frac(time*29.97/30)+.5). Useful for those who need non-drop 60i format for use with zoom player, etc. or for re-authoring.

d) at NTSC nominative 60i/30 drop. Convert floor(time) to to H:M:S. The frame number is then floor(30*frac(time)+.5). Add 2 frames to the frame number IF the sec in H:M:S = 0 UNLESS M MOD 10 is 0 (M is a multiple of 10.) In other words, add 2 frames if you are at an even minute, except for every 10 minutes. (You don't drop the first two frames, as 0 minutes is considered a multiple of 10.) Double check that no frame number is over 29, and if it is, set it equal to frame 29 and print a warning "some frame numbers ended up being higher than 29. They were reset to frame 29. The original was probably not encoded as drop-time, but this will result in an error of no more than 2 frames, once per minute." (This will only open if the original absolute times we not derived from drop-frame codes). Probably only useful for re-authoring.

If you are only going to offer two methods, I'd offer method B and C as this should cover 99% of everyones needs.

In order of importance, i'd say C/B, A, then D. B is critical for PAL, C is critical for NTSC.

Thanks so much for looking into this stuff!

Pelican9
10th May 2007, 21:42
I'm using the PNG Image library (by Gustavo Daud).

Which method (a,b,c,d) accepted by Scenarist?


You can edit your post (delete the dupe).

homerpez
15th May 2007, 21:59
I hope that SubtitleCreator program can allow me to do some hard-coded subs in VirtualDub... I was watching "Fearless" noticed that the English subs over the Mandarin Dialog were real subs, and I wondered if anyone had figured out how to do this yet...

manusse
15th May 2007, 22:16
hope that SubtitleCreator program can allow me to do some hard-coded subs in VirtualDub

SubtitleCreator can convert HD-SUP or srt files to sup or VobSub which can be displayed in VirtualDub using one of the appropriate AviSynth plug-in.

AviSynth sup plugin by emmel: http://forum.doom9.org/showthread.php?p=916838#post916838

AviSynth VobSub plugin: VSFilter http://www.videohelp.com/tools/VSFilter_DirectVobSub

Cheers
Manusse

cwm9
16th May 2007, 00:08
Sorry for the slow reply, I've been away for a few days.


You can edit your post (delete the dupe).

Huh, not sure how the dupe got in there.


I'm using the PNG Image library (by Gustavo Daud).




If you're using the library at http://pngdelphi.sourceforge.net/ then I would think the bit transparency mode would be the correct mode... (please forgive me, I'm not familiar with Delphi syntax).

To change to bit transparency mode, simply set a transparent color using the TransparentColor property:

property TransparentColor: TColor;
property TransparentColor: ColorRef;


This example would make the color clBlack be the transparent color (which is probably NOT what you want to do!):

png.TransparentColor := clBlack;


To verify you are in the correct transparency mode, check the read-only property TransparencyMode:

type TPNGTransparencyMode = (ptmNone, ptmBit, ptmTranslucid);
property TransparencyMode: TPNGTransparencyMode;

It should change to ptmBit after you have set the TransparentCOlor.


Which method (a,b,c,d) accepted by Scenarist?


method c is accept as the non-drop format for NTSC in scenarist
method b would be accepted as the PAL format in scenarist
(method d is accept as the drop format for NTSC in scenarist)

There is no one format that will work for both NTSC and PAL because NTSC uses a nominal FPS whereas PAL uses a real FPS. Methods c and b are probably the most portable.

In NTSC, the film is played back at 29.97 FPS but all the timestamps are written AS IF they were going to be played back at 30fps. That's because originally a "second" in "ntsc time" was 30 frames, even though 30 frames * 1/29.97 frames/second does not equal one second exactly. To make NTSC times look like real time, they "dropped" two time codes every minute. (They only drop the time codes, not the actual frames, so it's poorly named!) Scenarist wants NTSC time for NTSC video, but real time for PAL video, so there is no way of getting around needing two formats, which is why there is always so much confusion about timecodes.

The_Keymaker
24th May 2007, 05:47
I used EVOdemux to create a .sup file and here is a fragment of the resulting file:

1
05:22:50,773 --> 05:22:54,266
How did those soldiers ever manage
to dig out these tunnels?

2
05:22:55,144 --> 05:22:56,544
Let's get a rotation in here.

3
05:22:56,712 --> 05:22:58,612
Hey, I found something!

4
05:23:13,629 --> 05:23:14,721
Hanako...

Any idea why the times are all wrong? I read earlier in this thread about system time, but my clock is set correctly to my time zone in 12hour format.

Pelican9
24th May 2007, 10:24
I used EVOdemux to create a .sup file and here is a fragment of the resulting file:

1
05:22:50,773 --> 05:22:54,266
How did those soldiers ever manage
to dig out these tunnels?

2
05:22:55,144 --> 05:22:56,544
Let's get a rotation in here.

3
05:22:56,712 --> 05:22:58,612
Hey, I found something!

4
05:23:13,629 --> 05:23:14,721
Hanako...

Any idea why the times are all wrong? I read earlier in this thread about system time, but my clock is set correctly to my time zone in 12hour format.

If you share the .sup I will check it.
Or sharing the first 300MB of the EVO would be better.

The_Keymaker
24th May 2007, 13:27
Hello Pelican9.

The .sup file is about 13 megabytes (too large for an attachement). Is there a way I can post it?

By the way, thanks for all your work with EVOdemux and SUPread!

The_Keymaker

Pelican9
24th May 2007, 14:17
The .sup file is about 13 megabytes (too large for an attachement). Is there a way I can post it?

Use sendspace.com

The_Keymaker
25th May 2007, 02:08
Pelican9, here is the link to the SUP file:

http://www.sendspace.com/file/dnsuft

Pelican9
25th May 2007, 07:58
Pelican9, here is the link to the SUP file:

http://www.sendspace.com/file/dnsuft

This .sup contains very big PTS numbers, SUPread converts them to times correctly.
(First PTS in .sup: 67E9B567 -> 05:22:50,773)
The questions is why those big PTS values?
Copy the status screen of EVOdemux after reading (check detailed info in options).

The_Keymaker
25th May 2007, 22:01
Pelican9,

I fixed the .srt file by adjusting the time stamps using SubTitleCreator (Unfortunately, it crashed on me aftrrwards and it will not re-install!).

Anyway, I'll demux the EVOs and send you the status details later this weekend.

The_Keymaker

PurpleMan
29th May 2007, 16:46
@Pelican9:

Don't know if it's just me, but I couldn't import SUPread's .SST into Scenarist ACA. It complained about it not matching the project settings. Only when I changed TV_Type HD60 to TV_Type NTSC it accepted and imported.

Also, confirming the problem with the transparcy that was raised. Indeed the transparacy information in the PNG is needed or after authoring each subpictures covers the ENTIRE video image.

and P.S. - Thanks for your hard and excellent work!

hm10
22nd July 2007, 00:10
what with the new version that we will can change srt to hd-sup and than add the subs to the blu-ray?

Pelican9
11th August 2007, 15:16
The new beta can produce transparent PNGs.
The Scenarist export improved also.

Rectal Prolapse
12th August 2007, 08:32
Thanks!

hm10
13th August 2007, 08:51
The new beta can produce transparent PNGs.
The Scenarist export improved also.

you gonna release the beta at least?

Pelican9
13th August 2007, 18:05
You can download the latest one as usually.

vvetma
14th August 2007, 08:54
Hello...

Is it possible with SUPread to convert SRT subtitle into HD-DVD SUP file???

When I open my SRT file and choose EXPORT mode and then click Export SUP nothing happens...

In Status Window there is a line

Exporting subtitle stream: subtitle.HDDVD.23.976.sup
Done.

but that is it... no file no nothing...

hm10
14th August 2007, 09:32
Hello...

Is it possible with SUPread to convert SRT subtitle into HD-DVD SUP file???

When I open my SRT file and choose EXPORT mode and then click Export SUP nothing happens...

In Status Window there is a line

Exporting subtitle stream: subtitle.HDDVD.23.976.sup
Done.

but that is it... no file no nothing...


same problem =\
in version 0.45b only when chose blu-ray in export this worked and the hd-dvd didn't work, but the sup didn't work in the tsremux

Pelican9
14th August 2007, 09:34
Yes, this is a beta, but I'm working on it (actually the BD sup stream export). I've share this beta because it contains important bugfixes.

Unfortunately, I'm running out of time, I'll go to travelling for at least 7 months (start at next week) and I don't know when, where and how can I continue the work with these tools.
But I try my best in this short available time.

hm10
14th August 2007, 12:58
Yes, this is a beta, but I'm working on it (actually the BD sup stream export). I've share this beta because it contains important bugfixes.

Unfortunately, I'm running out of time, I'll go to travelling for at least 7 months (start at next week) and I don't know when, where and how can I continue the work with these tools.
But I try my best in this short available time.

Oh S-h-i-T =\
i'm hope you'll finish it in this week, and if not plz release the source code and info about the hd-sup code, maby my brother will continue it and maby another someone will continue it...

d0ORk
14th August 2007, 14:39
Would be cool if it could support german "Umlaute"? like ä ö ü ß `?
:)

Rectal Prolapse
15th August 2007, 04:04
I wouldn't mind helping with the source code too. :)

Anyways, thanks for Supread and have a good vacation!

zeropc
16th August 2007, 23:26
question: i wanna convert a .sub to a .srt file but it seams i have to go through all 1700 + substitles by hand and fix things. is there any way to speed things up, because this would truly a pain.

Pelican9
16th August 2007, 23:43
zeropc:
Do you think I can help you if you don't give me any details of your problem?
SUPread supports only one or two font types. If your movie use another type, you cannot convert the .sup (not .sub) file to .srt automatically, but it's still easier than watch the movie and type the subtitle lines and guess the start and end times. :)

zeropc
17th August 2007, 00:15
Pelican9, my problem is this that i mostly get either on dots or words that make sense.

example...

is:
Oh, hi.Yeah, l l··ow.
They··lled me dow· here.


should:
Oh, hi. Yeah, i KNow.
They called me down here.

is:
-·······
-······u··· ·O·
······ ····

should:
- [ Applause ]
- [ Man ] I guess that wraps it up.
Good work, everybody.

you see now what i mean? and this goes over 1700 pages.

if you can give any advice to speed things up, i really apprichiate it :)

Pelican9
17th August 2007, 00:34
Share the .sup file.

zeropc
17th August 2007, 00:42
there you go pelican :)

http://rapidshare.com/files/49443575/suptitles.rar.html

Pelican9
17th August 2007, 00:56
This font type is not supported. :(
It has strange characters like 't' which is smaller than 'i', 'g' is look like a typewriter letter, 'J' is huge, etc.

musky5789
23rd August 2007, 15:58
Hi all,
i demuxed a sup file from a evo file, and i have run supread to get the scr-sst file that you can import into scenarist 4.2.
7524

when i build the project i get this error:
internal software error:.\core\AUs\Advmux_timeGrip.ccp. line 94 -2
Advmuxmux::TimeGrid::addgrippointfill -- time not on field boundary.
7523

when i take out the subtitles and build the project it will work fine, can someone tell me what im doing wrong???

woah!
23rd August 2007, 22:45
is your project set to NTSC/HD60 in scenrist

musky5789
24th August 2007, 06:40
yeah its set to ntsc/hd60

killa_kid
31st August 2007, 19:18
i want to say thanks for a fantastic program!

i do have 1 suggestion though. Is it possible to make the OCR similar to SubRip? Meaning it asks us what each letter is (with your initial test as a suggestion) allowing us to fix things, such as movies with I & l (lower case L) being very similar.

The program overall does a great job, but there are corrections needed throughout since the letters are just too similar.

Thanks!

Taktaal
2nd September 2007, 00:54
I made my own program to OCR text since I dislike having bitmap subtitles, SUPread doesn't do it very well, and SubRip has been getting quite old.

It works pretty well, and allows you to correct letters the same way SubRip does, but is compatible with HD titles.
Also currently it needs you to convert the SUP file to SCN-SST with SUPread first, until I figure out the SUP format itself which seems to be completely different from the one SD-DVDs used...

http://x0r.ch/suprip/

manusse
2nd September 2007, 11:01
@Taktaal,

until I figure out the SUP format itself which seems to be completely different from the one SD-DVDs used

You can have a look at SubtitleCreator's source code because it includes HD-DVD decoding features.

Cheers
Manusse

killa_kid
3rd September 2007, 08:13
Taktaal

The program sounds fantastic, the only problem is that the program crashes everytime i open in. It says something about system.io.directorynotfound in the error. Do you have any idea why this would be happening?

Taktaal
3rd September 2007, 13:41
I'm stupid :o

The program expects a folder "SupRip" to exist in %appdata%, if it doesn't already, then the program will crash. I fixed the bug in the new version 0.61

l3pyr
7th September 2007, 21:53
I'm stupid :o

The program expects a folder "SupRip" to exist in %appdata%, if it doesn't already, then the program will crash. I fixed the bug in the new version 0.61

Great work with Suprip, but there are a few bugs I've come across.

The first thing I noticed is that it didn't like line 4 in the following scn-sst file

St_Format 4
Display_Area (0 2 1919 1079)
TV_Type NTSC
SubTitle GitS - English.sup
##########################
SP_NUMBER START END FILE_NAME

It said it should only be two words, so I changed it to

St_Format 4
Display_Area (0 2 1919 1079)
TV_Type NTSC
SubTitle GitS-English.sup
##########################
SP_NUMBER START END FILE_NAME

and everything worked fine. You should probably fix it to support spaces in filenames.

Next, there is one subtitle that causes it to crash for me. Its my 501th line, but even if I put that one subtitle in its own scn-sst file it still causes a crash. My work around right now is simply removing that line and then adding that subtitle into the finished SRT file after all is said and done. Strange problem, no?

Update: the 644th line also screwed it up.. here's both lines. Need me to post the PNGs?

501 01:00:01:04 01:00:02:09 line0501.png
644 01:10:26:11 01:10:29:20 line0644.png

Again, great work on this program and I (along with everyone else I'm sure) look forward to its development.

Taktaal
8th September 2007, 14:22
Probably there's a problem with the PNGs, can you post them? I'll fix the line 4 problem.

Also I posted version 0.70 that can directly open SUP files
http://x0r.ch/suprip/

hristoff2
10th September 2007, 15:29
Probably there's a problem with the PNGs, can you post them? I'll fix the line 4 problem.

Also I posted version 0.70 that can directly open SUP files
http://x0r.ch/suprip/


Thanks! I'll check it out on Underworld's german subs (HDDVD).

killa_kid
11th September 2007, 15:28
The OCR is working great now. I was wondering if it would be possible to add an option (checkbox, dropdown, whatever works best) for bold, italic & underlined. I like my subtitles to look the same as the images...but a lot smaller in size :P

Rectal Prolapse
11th September 2007, 18:31
Taktaal, does subrip support Blu-ray .sup files (as created by the new xport)? The format is very different from HD-DVD.

aqualung99
11th September 2007, 19:58
I definitely have better luck with Taktaal's SupRip. By the time I'm 25-50% of the way through the movie it's "learned" pretty much all the characters and doesn't require any more user interaction (even with italics mixed-in.)
Unfortunately, I do still have the capital-I vs. lowercase-l problem -- a dictionary would most certainly help that (and frankly, it still does better in this department than SUPread did for me :( ) Also, it can't handle single-word italics (treats the whole line as italic or not based on the first word.) But that's pretty minor.
All in all, a (say) 3-hour task is still reduced to about 1 and a half. And that's a god-send!

:thanks:

Edit: Oops, I found another bug. In "Letters of Iwo Jima" EVODemux doesn't compensate for a really high, uhh, PTS I think it's called? Anyway the timecodes stored in the subtitle are all really big (like the very first one is after more than 5 hours.) SupRip chokes about 2/3 of the way into the subtitles and starts to negate all the time values! Observe:


615
06:37:23,507 --> 06:37:25,714
fight for your fallen brethren...

616
06:37:27,545 --> 06:37:29,251
until the end.

617
-06:-37:-30,-089 --> -06:-37:-28,-610
Get up!

618
-06:-37:-24,-350 --> -06:-37:-22,-280
Major General Hayashi
is leading an attack.

Taktaal
12th September 2007, 10:29
6 hours 37 minutes is 2.15 billion ticks so yeah that's my error, I'll fix it and add a PTS correction option. Can you post the EVODemux text that appears after decoding the main evobs? I'm especially interested in the PTS values there.

As for underlined and bold, I haven't yet seen any HD-DVD subtitles that use those styles.

And no, I don't support BluRay subtitles. I'll have to look if I find some format documentation about it somewhere. Maybe we'll luck out and Sony will give up its newest format experiment though soon.

aqualung99
12th September 2007, 11:47
6 hours 37 minutes is 2.15 billion ticks so yeah that's my error, I'll fix it and add a PTS correction option. Can you post the EVODemux text that appears after decoding the main evobs? I'm especially interested in the PTS values there.


Cool! :)

Here's the EVODemux dump:


Opening file feature_IWOJIMADOMNVC1_HD.EVO
Reading...
File size: 11268 Mbytes.
VOB number 0 contains 1 video , 2 audio and 4 subpicture streams.
PTM of first video frame = 6736B4B1
PTM of last video frame = 80002801
Duration = 1:17:00.616
VC-1 video stream 0 found!
First PTS = 2736B4B1 (+35791394ms)
Substream id = 55
Profile = Advanced
Level = 3
Chroma Format = 4:2:0
Size = 1920x1080
Display size = 1920x1080
Aspect ratio = 1:1 (square samples)
Frame Rate = 23.976 (24000/1001)
Dolby TrueHD audio stream 1 found!
First PTS = 2736B4B1 (+35791394ms)
Substream id = B1
TrueHD stream (up to 8 channels)
Sampling frequency = 48 kHz
2 ch. decoder
channel modifier = Lt/Rt
6 ch. decoder
channel modifier = Lt/Rt
channel arrangement = Main (Left,Right), Centre, LFE, Surrounds (Ls/Rs)
8 ch. decoder
channel modifier = Lt/Rt
channel arrangement = Main (Left,Right), Centre, LFE, Surrounds (Ls/Rs)
Dynamic range control = -10.6371 dB .. 8.4282 dB
Dolby Digital Plus audio stream 0 found!
First PTS = 6736B4B1
Substream id = C0
Stream 0 is Dolby Digital Plus
frame size = 1280 bytes, number of blocks per frame = 3
Sampling frequency = 48 kHz
Transmission bitrate = 640 kbit/s
Channel arrangement = L + R + C + Ls + Rs, bsid = 16
LFE channel = present
Subpicture stream 3 found!
First PTS = 676F7ABE (+41341ms)
Substream id = 23
Format = 8bitRLE
Subpicture stream 2 found!
First PTS = 676F7ABE (+41341ms)
Substream id = 22
Format = 8bitRLE
Subpicture stream 1 found!
First PTS = 67E033B2 (+123423ms)
Substream id = 21
Format = 8bitRLE
Subpicture stream 0 found!
First PTS = 67E9D318 (+130430ms)
Substream id = 20
Format = 8bitRLE
.
Opening file feature_IWOJIMADOMNVC1_HD_Divide.EVO
Reading...
File size: 8588 Mbytes.
VOB number 0 contains 1 video , 2 audio and 4 subpicture streams.
PTM of first video frame = 80002801
PTM of last video frame = 9479CC0E
Duration = 1:03:36.846
VC-1 video stream 0 found!
First PTS = 00002801 (+28481545ms)
Substream id = 55
Profile = Advanced
Level = 3
Chroma Format = 4:2:0
Size = 1920x1080
Display size = 1920x1080
Aspect ratio = 1:1 (square samples)
Frame Rate = 23.976 (24000/1001)
Dolby Digital Plus audio stream 0 found!
First PTS = 80000EB1 (+4620544ms)
Substream id = C0
Stream 0 is Dolby Digital Plus
frame size = 1280 bytes, number of blocks per frame = 3
Sampling frequency = 48 kHz
Transmission bitrate = 640 kbit/s
Channel arrangement = L + R + C + Ls + Rs, bsid = 16
LFE channel = present
Dolby TrueHD audio stream 1 found!
First PTS = 00001DB1 (+28481516ms)
Substream id = B1
TrueHD stream (up to 8 channels)
Sampling frequency = 48 kHz
2 ch. decoder
channel modifier = Lt/Rt
6 ch. decoder
channel modifier = Lt/Rt
channel arrangement = Main (Left,Right), Centre, LFE, Surrounds (Ls/Rs)
8 ch. decoder
channel modifier = Lt/Rt
channel arrangement = Main (Left,Right), Centre, LFE, Surrounds (Ls/Rs)
Dynamic range control = -10.6371 dB .. 8.4282 dB
Subpicture stream 3 found!
First PTS = 800F00AD (+4631426ms)
Substream id = 23
Format = 8bitRLE
Subpicture stream 1 found!
First PTS = 800F00AD (+4631426ms)
Substream id = 21
Format = 8bitRLE
Subpicture stream 0 found!
First PTS = 800F00AD (+4631426ms)
Substream id = 20
Format = 8bitRLE
Subpicture stream 2 found!
First PTS = 800F3B54 (+4631593ms)
Substream id = 22
Format = 8bitRLE
Done.

Taktaal
24th September 2007, 00:22
Ok I tried for a good week to try to get a reliable single word italic detection going, but couldn't do it without getting an unacceptable number of false positives :(

Anyway, I uploaded a new version which fixed a few other bugs, but single italic words not getting detected is probably going to stay unless i get an idea I haven't thought of yet.

Also, I started adding Bluray support, but that's going slow since I don't have a Bluray drive or movies to test my code on.

http://x0r.ch/suprip/

hristoff2
25th September 2007, 17:07
Ok I tried for a good week to try to get a reliable single word italic detection going, but couldn't do it without getting an unacceptable number of false positives :(

Anyway, I uploaded a new version which fixed a few other bugs, but single italic words not getting detected is probably going to stay unless i get an idea I haven't thought of yet.

Also, I started adding Bluray support, but that's going slow since I don't have a Bluray drive or movies to test my code on.

http://x0r.ch/suprip/

Some feedback:

- There seems to be an OCR error when a small 'L' follows a small 'L' ('don't tell..) -> you get like "don't tel 'I or l' (capital 'i' I suppose) - see .sup below, it's in one of the first 10 lines
- Crashes @ line #27 for me without any further information, winxp pro sp2

Here's the sup file if you wanna check it: http://rapidshare.com/files/58185467/Subpicture.sup.html

thanks for your work :)

A_C_ONE
26th September 2007, 04:04
I need a great deal of help from an expert. I am a developer and created a small programm to convert SUB to SRT subtitles and perform a lot of operation with SUB (text) subtitles. Now my goal is to "teach" my applet to recognize BMPs in a VOB SUB file. The one whis goes in pair with IDX.
IDX a pretty straightforward textual file, to read it - there is no problem.
The format of SUB file - which contains bitmaps of subtitles - is a problem, I tried to find out any information on the internet - to no avail. There are no description or specifications of a SUB format. SUB format remains a black box for me. I 'm talking not about general description of a SUB format, or what is it for etc.etc.etc, but a description of SUB format - exactly.
I am not talking about OCR program, I didn't go that far. For the start I would want to "chop" the SUB, according to data i IDX file -positions.
And then display those chops in a BMP control, like image control or so. Or t save them (decode probably and save) as BMP files.

I deeply appreciate any help in this matter.

with regards
a developer

Rectal Prolapse
26th September 2007, 04:52
A_C_ONE, this thread is about subtitles from HD-DVD and Blu-ray movies. I think you are referring to VOBSUB files from DVDs? If so, you may be better off starting a new thread, or find a more relevant thread to post your question in.

Good luck!

Zelos
29th September 2007, 11:12
Taktaal good job , ocr works fine !

I have a problem when i ocr all.
The soft crashes , even if i try to do it manually , after some pictures , it crashes.

Deckard2019
29th September 2007, 15:37
Same problem for me. French language, XP SP2. Always on the same picture :

http://deckstuff.free.fr/temp/SupRipCrash.png

Taktaal
29th September 2007, 20:32
Looks like I accidentially introduced a bug while searching for an algorithm that reliably detects italic words. I fixed it in the new version 0.81.

Deckard2019
29th September 2007, 23:06
Works better now ! Thank you !

But where are timings ??? Just after opening subtitles.scn-sst, SRT tab looks like this :

http://deckstuff.free.fr/temp/srt.png

Same results when OCR ends.

Taktaal
30th September 2007, 01:27
Strange. Is it a Bluray or HDDVD subtitle? Does the problem happen too when you open the .sup directly? Can you upload the .sup somewhere?

Deckard2019
30th September 2007, 07:52
Is it a Bluray or HDDVD subtitle?BluRay.

Does the problem happen too when you open the .sup directly?No.

Can you upload the .sup somewhere?http://deckstuff.free.fr/temp/hb.sup

madshi
30th September 2007, 14:12
Hmmmm... Just beginning to look into subtitles stuff. @Taktaal, thanks for investing work here! I've one crazy idea. Maybe you'll like it, or maybe not. But I thought I'd just post it, just in case:

Couldn't you create one monstrous bitmap (e.g. 800x100000 pixels) and draw all subtitles to that one large bitmap? Additionally you could manually add the timestamps (as written text) to that bitmap, too. We could then feed such a monster bitmap to a good OCR software and the result should be a full SRT subtitle text file. Maybe we'd need a little helper tool which cleans up the final text file to make it fully SRT compatible, but that should be no big problem. What do you think?

Taktaal
30th September 2007, 14:46
BluRay.
http://deckstuff.free.fr/temp/hb.sup

Thanks. I was able to fix two more bugs that led to your problems. The new 0.82 doesn't have that anymore.
http://x0r.ch/suprip/

Hmmmm... Just beginning to look into subtitles stuff. @Taktaal, thanks for investing work here! I've one crazy idea. Maybe you'll like it, or maybe not. But I thought I'd just post it, just in case:

Couldn't you create one monstrous bitmap (e.g. 800x100000 pixels) and draw all subtitles to that one large bitmap? Additionally you could manually add the timestamps (as written text) to that bitmap, too. We could then feed such a monster bitmap to a good OCR software and the result should be a full SRT subtitle text file. Maybe we'd need a little helper tool which cleans up the final text file to make it fully SRT compatible, but that should be no big problem. What do you think?

Did you have any OCR software in mind that can produce an output that's easily postprocessed? Anyway, making such a bitmap isn't very hard, I'll add an option to the next version, maybe it'll lead somewhere.

Deckard2019
30th September 2007, 20:37
Thanks. I was able to fix two more bugs that led to your problems. The new 0.82 doesn't have that anymore.

It's ok now. Thank you !

Rectal Prolapse
30th September 2007, 20:47
madshi - I wrote a tool that can take supread .srt output and mix it in with ABBYY's FineReader HTML output and create a perfectly usable SRT file.

The technique is this: Load the .sup file in SupRead. Save the SRT file WITHOUT using OCR. Then save the subtitles as PNG files.

Close supread. Open photoshop and batch process the subs to maximize the contrast for each PNG file and lower the brightness (to force subtitle outlines to be same color as the black background for easier OCR).

After photoshop is done, open ABBYY FineReader and load in all the PNGs.

OCR them. Save as HTML (some options are needed - like include horizontal lines to signify the end of each subtitle group) - you will get an HTML file.

I wrote a little tool to merge the subtitles from the SRT and the HTML into one SRT file.

That's it. :)

To give you an idea of how reliable this is: There are occasional problems with the letter I being confused for the number one (when the line begins with a dash). OCR accuracy appears to be 99% using FineReader.

The most important step is the contrast and brightness adjustment - the black outline around the white letters on a transparent background is VERY BAD for OCR.

Zelos
30th September 2007, 21:02
thanks Taktaal , your soft works great now !
apart the way that there is confusion between "I" and "1" the accurancy goes for 99%

madshi
30th September 2007, 22:01
Did you have any OCR software in mind that can produce an output that's easily postprocessed?
Haven't checked yet. I think I'd try FineReader first.

Anyway, making such a bitmap isn't very hard, I'll add an option to the next version, maybe it'll lead somewhere.
Great, thank you... :)

madshi
30th September 2007, 22:07
madshi - I wrote a tool that can take supread .srt output and mix it in with ABBYY's FineReader HTML output and create a perfectly usable SRT file.

The technique is this: Load the .sup file in SupRead. Save the SRT file WITHOUT using OCR. Then save the subtitles as PNG files.

Close supread. Open photoshop and batch process the subs to maximize the contrast for each PNG file and lower the brightness (to force subtitle outlines to be same color as the black background for easier OCR).

After photoshop is done, open ABBYY FineReader and load in all the PNGs.

OCR them. Save as HTML (some options are needed - like include horizontal lines to signify the end of each subtitle group) - you will get an HTML file.

I wrote a little tool to merge the subtitles from the SRT and the HTML into one SRT file.

That's it. :)

To give you an idea of how reliable this is: There are occasional problems with the letter I being confused for the number one (when the line begins with a dash). OCR accuracy appears to be 99% using FineReader.

The most important step is the contrast and brightness adjustment - the black outline around the white letters on a transparent background is VERY BAD for OCR.
Sounds good. But I think there's still a lot of workflow optimization possible. I think e.g. having a tool which saves all subtitles in one big bitmap (as I suggested) would help a lot to reduce the time needed to do all the steps you described. Maybe it would also be possible for Taktaal's tool to remove the letter outlines without having to use photoshop. Basically I'm looking for as much automation as possible. If Taktaal can implement some of the needed stuff into his tool, and if you throw your FineReader HTML parsing tool into the mix, maybe we can achieve something nice? :)

Rectal Prolapse
30th September 2007, 22:36
Madshi - yeah - a good optimization would be using a bitmap tool that can do the contrast/brightness adjustment without the bloat of Photoshop!

I'm not so sure about a massive bitmap though - that could break a lot of programs because I can imagine a bitmap too large crashing a lot of them! And processing time could increase exponentially as well. (although to be fair, finereader is really horribly slow processing each file...) :)

Including is a Visual Studio 2005 project for my little tool, written in C++. It is called SRTMaker. It's very rough though - it doesn't properly check command-line arguments, for example, but hopefully will help you if you decide to make a better tool. No restrictions, do whatever you like with it. :)

Rectal Prolapse
30th September 2007, 22:37
Here are the notes I wrote on my Blu-ray subtitle conversion workflow:

Tools needed:

• Xport
• Supread
• Adobe Photoshop
• ABBYY Finereader

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

Taktaal
1st October 2007, 00:05
Ok I made a sample PNG how such a combined subtitle image would look.

http://x0r.ch/suprip/serenity-50.png

That Finereader looks decent, but it's 130€, and to be honest, I'd rather have less, not more commercial software that people have to "acquire" one way or another to rip HD movies.

Rectal Prolapse
1st October 2007, 03:12
I'm sure there are a lot of opensource/free OCR apps that work well with PNGs too! At least I hope so!

My method is just one way of getting reliable OCR - for those who cannot wait for the proper tools to come out. :)

One problem with the steps I outlined above - you may not want to use unicode output - I had issues on some titles because of it (usually accented characters). They will be recognized easily by FineReader, but they don't work well with the SRT format.

madshi
1st October 2007, 07:47
Ok I made a sample PNG how such a combined subtitle image would look.

http://x0r.ch/suprip/serenity-50.png
That looks nice! However, the timecodes are missing. I'd suggest to use TextOut to add the timecodes (in SRT format) to that png file. Thank you... :)

That Finereader looks decent, but it's 130€, and to be honest, I'd rather have less, not more commercial software that people have to "acquire" one way or another to rip HD movies.
Sure, I agree. But once we have a good PNG we can use for OCRing, maybe we can dig out a good freeware OCR tool or programming component to do the rest of the work. Or those of us who already own a professional OCR software can of course use that.

@Rectal Prolapse, thanks for the code!

bagge1
5th October 2007, 21:11
@Pelican9

I have a similar problem as Musky5790 described here
http://forum.doom9.org/showthread.php?p=1036754#post1036754

I´m trying to add subtitles from a .srt file into Scenarist ACA (HDDVD)
I converted a´the .srt file to .sup with SubtitleCreator. Then I imported the .sup into SUPread and exported it to .PNG: s and scn-sst.

I get the same error from Scenarist as Musky5790:

internal software error:.\core\AUs\Advmux_timeGrip.ccp. line 94 -2
Advmuxmux::TimeGrid::addgrippointfill -- time not on field boundary.

Is this because the .sup file I get from SubtitleCreator is not a hd-sup but just a SDDVD sup? Is there any other way around it?

Thanks for the great effort you put in developing this!

manusse
5th October 2007, 21:19
time not on field boundary

I don't know if Scenarist ACA (HDDVD) can accept SD Sup. However the message seems to mean that the times of your subtitles are not a multiple of the frame duration. Depending if your DVD is 50Hz or 60Hz, you should try to align the timings of your subtitles with an integer number of the field duration:

1/50 or 1/60 seconds.

Cheers
Manusse

bagge1
5th October 2007, 23:53
I don't know if Scenarist ACA (HDDVD) can accept SD Sup. However the message seems to mean that the times of your subtitles are not a multiple of the frame duration. Depending if your DVD is 50Hz or 60Hz, you should try to align the timings of your subtitles with an integer number of the field duration:

1/50 or 1/60 seconds.

Cheers
Manusse

The video is NTSC 1280x720@29.97, so I guess that should be 60Hz. The .srt file was only 23.98. This time, I converted the .srt to 29.97 before converting it to .sup. I get the exact same error in Scenarist though.

I´m not sure if Scenarist accepts SD Sup. Wouldn´t the position of the subtitles be messed up if the resolution is wrong?

Another solution might be to add a text-based subtitle (eg. .srt) as an "advanced subtitle track" directly into Scenarist. But I have to convert it to XML first somehow.

woah!
6th October 2007, 01:27
i believe its a supread/evodemux issue as to how it makes/outputs the hd sups. as i get the same error from all hd-dvd extracted sups when ripped from the source evo files with evodemux. but i have had success with blu-ray subs extracted using xport, and authored to a hd-dvd using ACA, it is a bitch tho huh..

manusse
6th October 2007, 10:10
and exported it to .PNG: s and scn-sst.
but i have had success with blu-ray subs extracted using xport
I believe the timings are in the .scn-sst file. You could have a look at this text file to see what is the difference between BD and HD Sups. I suspect the time frame is different.

Cheers
Manusse

Taktaal
9th October 2007, 17:56
The problem I see here is that .scn-sst files are supposed to use frame numbers and not timecodes. Misaligned frames can't happen with those..,

tribble222
12th October 2007, 09:57
In regard to open source OCR software, the current best appears to be tesseract (http://code.google.com/p/tesseract-ocr). It seems to accept tiff's.

The best open source command line image editing program that I've found is ImageMagick (http://www.imagemagick.org)

One request I have for SUPRead is to have an "auto save images" option to make it save all the subtitles as images on load. Or better yet let it operate from the command line.

I'm working in Linux on making a completely automated "rip HD DVD to mkv" script and it'd be nice not to have to spawn the window in the right spot and simulate a mouse click :-P

Taktaal
14th October 2007, 18:31
I posted a new version that pretty much does BluRay perfectly now, as well as has a command line option to output the subtitles to a PNG image.

http://x0r.ch/suprip/

Now it's just the dictionary feature that's still missing for a 1.0 release :)

madshi
15th October 2007, 09:01
I posted a new version that pretty much does BluRay perfectly now, as well as has a command line option to output the subtitles to a PNG image.

http://x0r.ch/suprip/

Now it's just the dictionary feature that's still missing for a 1.0 release :)
Sounds good, will test later! Thanks!!

If you've fun and time, maybe you can check out this one?

http://de.wikipedia.org/wiki/OCRopus

It's an open source command line OCR tool (found through tribble222's link). Maybe it would work on that PNG image you're outputting?

Taktaal
15th October 2007, 13:39
It seems like OCRopus is just a wrap-around for Tesseract. I tried that and it worked pretty good, but it had a few issues:
- It didn't detect text styles
- It completely ignored foreign letters, or misdetected them as the closest ASCII one
- Fantasy words usually come out garbled.

In the end, I had more misdetected text with Tesseract than with my own OCR code. It seems to me that real OCR software was designed for a different purpose than what movie subtitle scanning needs. We don't need fuzzy logic that can detect warped letters and stuff like that. Subtitle letters always look exactly the same. That leaves room to do fancy stuff that would be impractical in real OCR software.

madshi
15th October 2007, 13:47
In the end, I had more misdetected text with Tesseract than with my own OCR code. It seems to me that real OCR software was designed for a different purpose than what movie subtitle scanning needs. We don't need fuzzy logic that can detect warped letters and stuff like that. Subtitle letters always look exactly the same. That leaves room to do fancy stuff that would be impractical in real OCR software.
That's quite true. The big problem with the subtitle specific OCR is that often there are characters which look 100% the same, but are not (e.g. capital "i" and small "L"). So often it's necessary to run the results through a word processor with syntax check to see if there are any detection errors. I think a good external OCR program with a good word database could solve this problem.

Another problem I sometimes have with DVD subtitles is that they're not really using a specific font, but the texts are really rendered. That means almost every character looks ever so slightly different. There are e.g. 20 variations of how "e" looks etc. But this is rather rare.

Rectal Prolapse
15th October 2007, 21:32
Taktaal: Nice! Is there an option to only extract *forced* subtitles from blu-ray sup files? Thanks!

tribble222
16th October 2007, 22:54
I posted a new version that pretty much does BluRay perfectly now, as well as has a command line option to output the subtitles to a PNG image.

http://x0r.ch/suprip/

Now it's just the dictionary feature that's still missing for a 1.0 release :)

Great! I'll try this out.

I tried the tesseract software and while it seems to work for the included test file, it outputs gibberish when I try it on subtitles. Same with another project called gocr.

Edit: I got gocr to work at least. Increasing the ppi to 400 worked. In the sample png posted here earlier it recognized all italics "l" as "/" (easy to replace). But, it also changed all "..." into ", , ," and there were weird spaces in a good number of words. So not the greatest.

Rectal Prolapse
16th October 2007, 23:09
tribble, it is possible that the PNGs output by subrip need to be process again to make it easier to OCR - most subs have a black outline around every letter, while the background is transparent and may be set to a different color by subrip or tesseract is not interpreting the (transparent) background as black.

berndy2001
17th October 2007, 13:24
Including is a Visual Studio 2005 project for my little tool, written in C++. It is called SRTMaker. It's very rough though - it doesn't properly check command-line arguments, for example, but hopefully will help you if you decide to make a better tool. No restrictions, do whatever you like with it. :)

hello,

is their a way to get a compiled exe? i have no compiler ;)

extracing the images, edit them in photshop and read them in finereader is a lot of work, but it works...

i also tried SupRip before, the handling was not bad, but it crashed after 50% (after half an hour entering letters...)

Taktaal
17th October 2007, 19:34
i also tried SupRip before, the handling was not bad, but it crashed after 50% (after half an hour entering letters...)

Sorry about that but it's still a beta :P

If it happened in a recent version (0.81 or later) could you upload the .sup file somewhere as it may help me debug the program.

berndy2001
17th October 2007, 20:10
where can i see the version? ;) (i downloaded it today, so its lastest version)

--> pm

may somebody can compile srtmaker on page 12? i already have the subs in a html file.

Rectal Prolapse
18th October 2007, 02:29
Berndy, I hope this exe works - I added the msvcrt71.dll file and I *hope* this is sufficient to make it work for you!

It may take a while to get approved by the mods.

berndy2001
18th October 2007, 08:48
sorry, it doesn't work.

Computer 1:
In Shell it says: The Programm can't be started.

Doubleclick:
http://img155.imageshack.us/img155/5066/errorqi2.th.png (http://img155.imageshack.us/my.php?image=errorqi2.png)
this means: the application cant start, because the configuration isn't correct.Please reinstall the application.

Computer 2:
In Shell it says: "Could not open" and crashes. With and without a fileparamter

btw: you can also upload your files on a filehosting service like xirror.com and post the link here.

Rectal Prolapse
18th October 2007, 16:10
It's probably missing a DLL. I will need to find a dependancy walker for it.

Rectal Prolapse
18th October 2007, 16:20
BTW, that version doesn't do any command-line checking - it is very basic. You must supply TWO filenames. Check my original post I mentioned that:

9. Use SRTMaker, giving it the SRT and HTML file on the command-line to generate a new SRT that is piped to standard output.

I suspect it will work on your system as the errors are not complaining about missing DLLs.

berndy2001
18th October 2007, 16:32
amazing ... ;) it works on my encoding machine. thx a lot. (but not on my office pc, dont know why)

for the others: syntax is srtmaker input.html input.srt > output.srt

Rectal Prolapse
18th October 2007, 16:38
No problem! Here is a new version that is statically linked: I hope this removes dependencies on MFC 8.0 and CRT 8.0 DLLs.

I also added command-line checking - it now needs two filenames. :)

Also included is the setup program, which will install the executabe in [System Drive]\Program Files\SRTMaker, along with the updated source code (Visual Studio 2005 solution).

bagge1
25th October 2007, 17:50
I have a SRT-subtitle which I want to add to a 720p HDDVD project. My problems with a Scenarist ACA errormessage described earlier in this thread has been solved when I switched encoder from Mainconcept to x264.

I use Subtitle Workshop to get my .srt into sync with the video. Then I load the .srt into Subtitle Creator and then save it as .sup.
After that, I use Supread to convert the .sup into a .scn-sst file and .png's.

Everything works fine, except for the position of the text on the screen, as seen in this link (I colored the background so it would be easier to see) :

http://img91.imageshack.us/my.php?image=30088645vi1.png

Do I get this problem because Subtitle Creator is unable to create HDSUP?

Any help would be greatly appreciated!

Rectal Prolapse
25th October 2007, 20:57
bagge1, sounds like those subtitles are positioned only for SD (720x480) resolutions! Does SCN-SST format allow you to specify x-y positions?

andybno1
25th October 2007, 21:33
I have just stumbled across this handy program and well I'm not overly impressed (may be on my part perhaps?)

demuxed sup file from oceans 13 hd dvd, first evo file sup file for forced subs loaded in supread but when I open in supread it says the first subtitle will kick in at:

03:19:28,569 --> 03:19:32,778

now the first evo is only 1hr 8mins, could someone shed some light?

bagge1
25th October 2007, 22:47
bagge1, sounds like those subtitles are positioned only for SD (720x480) resolutions! Does SCN-SST format allow you to specify x-y positions?

The scn-sst file begins with:

St_Format 4
Display_Area (0 2 1919 1079)
TV_Type NTSC
SubTitle sub1.sup
##########################
SP_NUMBER START END FILE_NAME
1 00:00:23:06 00:00:27:07 line0001.png
2 00:03:17:13 00:03:22:04 line0002.png
3 00:03:22:08 00:03:28:10 line0003.png
4 00:03:28:16 00:03:30:20 line0004.png
5 00:03:31:19 00:03:33:22 line0005.png
...............and so on


It certainly looks as if the second row has something to do with the position, but I'm unsure since the position of the text is already burnt into the png's as shown in the link from my last post.

Rectal Prolapse
25th October 2007, 22:52
Ah I see - in that case Subtitle Creator needs to recognize higher resolutions. And it would be nice if it could scale up. Oh well.

Maybe you can use a tool like Photoshop to batch convert all of those PNGs to 1920x1080 (or 1280x720) resolution? I'm assuming subtitle creator only outputs 720x480 PNGs.

For your PNGs right now the Photoshop action would need to scale the 720x480 portion of the PNG, but make sure the PNG remains at 720p.

Good luck!

bagge1
25th October 2007, 23:43
Ah I see - in that case Subtitle Creator needs to recognize higher resolutions. And it would be nice if it could scale up. Oh well.

Maybe you can use a tool like Photoshop to batch convert all of those PNGs to 1920x1080 (or 1280x720) resolution? I'm assuming subtitle creator only outputs 720x480 PNGs.

For your PNGs right now the Photoshop action would need to scale the 720x480 portion of the PNG, but make sure the PNG remains at 720p.

Good luck!

Thanks, I'll try it. Just need to read up on photoshop a bit first.

Subtitle Creator didn't output the PNG's though, SUPRead did. The size of the PNG's are 1920x1080.

What I'll try to do now is to crop out 720x480 portion and then resize it to 1280x720. Then I need adjust it in the scn-sst file.

I'll post my results here.

andybno1
26th October 2007, 19:00
I have just stumbled across this handy program and well I'm not overly impressed (may be on my part perhaps?)

demuxed sup file from oceans 13 hd dvd, first evo file sup file for forced subs loaded in supread but when I open in supread it says the first subtitle will kick in at:

03:19:28,569 --> 03:19:32,778

now the first evo is only 1hr 8mins, could someone shed some light?

anyone able to help?

manusse
26th October 2007, 19:36
Subtitle Creator didn't output the PNG's though,

Actually you can do that very easily with SubtitleCreator. Go to Tools->Manipulate sup .... and open your sup file. Then click on the 'Save Bmp' button and chose the PNG format.

Cheers
Manusse

Taktaal
27th October 2007, 14:21
I just uploaded version 0.91 of suprip that fixes some issues reported by berndy2001 and infernix, and doesn't automatically throw away all the progress you've made on entering letters when it crashes.

anyone able to help?

Can you post the .sup file so we can have a look at it?

bagge1
28th October 2007, 23:03
Thanks, I'll try it. Just need to read up on photoshop a bit first.

Subtitle Creator didn't output the PNG's though, SUPRead did. The size of the PNG's are 1920x1080.

What I'll try to do now is to crop out 720x480 portion and then resize it to 1280x720. Then I need adjust it in the scn-sst file.

I'll post my results here.

I solved the problem by using Photoshop as Rectal prolapse suggested. I created a simple batch-script which changed the resolution from 1920x1080 to 1280x720 and moved the text to the lower part of the screen. No changes in the scn-sst file was required.

Thanks Rectal prolapse for your help!

xannn
29th October 2007, 10:52
I just uploaded version 0.91 of suprip that fixes some issues reported by berndy2001 and infernix, and doesn't automatically throw away all the progress you've made on entering letters when it crashes.

Very Good PROGRAMM, BUT HAVE ERROR WITH A TIMES.
example ( Roving Mars )
1
00:00:15,613 --> 00:00:20,076
(man) Mars has always had a special
place in the human imagination.

2
00:00:20,159 --> 00:00:22,411
bla bla bla

after suprip 0.91

1
00:00:15,612 --> 00:00:15,543
(man) Mars has always had a special
place in the human imagination.

2
00:00:20,159 --> 00:00:20,092
bla bla bla
8-(

And more. Dont load all lines of Sup subtitles.
example: 00109.sup ( roving |Mars - http://rapidshare.com/files/65977217/00109.sup.html)
Load only 21 line from 365.
8-(

andybno1
29th October 2007, 20:32
Can you post the .sup file so we can have a look at it?

there you go http://rapidshare.com/files/66464357/English_Forced.sup the files small as theres only 25 subtitles due to these being forced subtitles, I also have a second evo file which is still in que to download as I get capped after 3gig of downloading

andybno1
31st October 2007, 12:14
I have just updated the sup file to include both evo files which I joined together but still get the first start time as 03:19:28,569 --> 03:19:32,778

could this be down to evodemux? I have version 0.627 b7 film is ocean's 13

vwpassion
5th November 2007, 14:05
Is there a way to only extract *forced* subs from a Blu-Ray?

Rectal Prolapse
5th November 2007, 18:30
vwpassion: Not yet.

Taktaal
5th November 2007, 23:35
How do forced subtitles work on Bluray? Are they separate subpicture tracks, or is it stored in a per-subtitle flag?
vwpassion, do you have a BluRay sup with mixed forced/nonforced subtitles? Can you upload it somewhere?

there you go http://rapidshare.com/files/66464357/English_Forced.sup the files small as theres only 25 subtitles due to these being forced subtitles, I also have a second evo file which is still in que to download as I get capped after 3gig of downloading

According to the .sup file the subtitles are really supposed to start at 3:20. Supread thinks the same. Maybe the EVO itself has a pretty weird PTS? Can you paste the output of Evodemux?

Rectal Prolapse
8th November 2007, 03:38
Taktaal, they are stored in a per-subtitle flag. I forgot exactly where in each subtitle, but it is there.

azad
27th November 2007, 11:45
I have a similar problem with the subtitles of the HD DVD of "The Reaping" like andybno1. This HD DVD is also a Warner Bros. release.
Following are the timestamps HDsup reads from the .sup file:

1
05:50:16,314 --> 05:50:21,446
line 1

2
05:52:16,434 --> 05:52:18,096
line 2

3
05:52:18,904 --> 05:52:22,738
line 3

4
05:52:53,939 --> 05:52:56,430
line 4

5
05:52:56,641 --> 05:53:01,170
line 5

6
05:53:03,148 --> 05:53:04,308
line 6

7
05:53:04,482 --> 05:53:06,144
line 7

8
05:56:54,846 --> 05:56:58,475
line 8

Like Taktaal already mentioned the PTS seems to be pretty weird. Here is what EvoDemux tells me for the first Evo:

Opening file feature.EVO
Reading...
File size: 7124 Mbytes.
VOB number 0 contains 1 video , 7 audio and 19 subpicture streams.
PTM of first video frame = 6FF65122
PTM of last video frame = 800035C9
Duration = 0:49:49.820
VC-1 video stream 0 found!
First PTS = 2FF65122 (+35791394ms)
Substream id = 55
Profile = Advanced
Level = 3
Chroma Format = 4:2:0
Size = 1920x1080
Display size = 1920x1080
Aspect ratio = 1:1 (square samples)
Frame Rate = 23,976 (24000/1001)

Is it at least possible to manually calculate the right timestamps?

Taktaal
27th November 2007, 20:19
I'm carefully guessing that it could be a bug in Evodemux. Pelican9 should probably have a look at it, he's the EVO specialist.

As for manually adjusting:
Start the movie, then note down at what time the first line is spoken. Subtract that time from the timestamp of line 1, then use that as a time correction value in SupRip.

koutou
5th December 2007, 11:03
Can someone tell me if it is possible to produce blu-ray subtitles with this tool from an srt file?
What I do is convert srt to sup with subtitle creator, then import into SUPread and export to Blu-ray subtitles. But the sup produced is not recognized by tsremux! Has anyone managed to produce tsremux compatible subtitles with this tool?

Thanks!

Rectal Prolapse
6th December 2007, 06:22
Last I heard, TSRemux subtitle support doesn't work. I could be wrong.

idbirch2
25th December 2007, 17:08
Just come across this tool as I'm trying to figure out how to get the subs at the start in The Hunt For Red October HD-DVD, during the first 5 mins, people talk russian but then it switches to English, the only English .sup file I get from the HD-DVD contains subs for the entire film. How do I figure out which bits I need for the forced subs?

Taktaal
25th December 2007, 22:52
I haven't programmed forced subtitle filtering in yet for HD-DVDs. Can you upload or send me the .sup file somewhere so I can see how they're done for HD-DVDs?

idbirch2
26th December 2007, 01:47
Sure, I've uploaded the .sup file here (http://www.mediafire.com/?e9ctgcn9mu9).

mashiwen
27th December 2007, 23:31
supread works fine for the sups for the movie,but get errors for all the 3 director subs(can only recognize 8XX of 9XX subs)
File is here http://rapidshare.com/files/79495554/sup.rar.html


:helpful:

mashiwen
27th December 2007, 23:34
supread works fine for all the subs for movie,but get error for the subs of director commentary,can anyone help?
Here's the sup file,thanks
http://rapidshare.com/files/79495554/sup.rar.html

Pelican9
30th December 2007, 23:22
Just come across this tool as I'm trying to figure out how to get the subs at the start in The Hunt For Red October HD-DVD, during the first 5 mins, people talk russian but then it switches to English, the only English .sup file I get from the HD-DVD contains subs for the entire film. How do I figure out which bits I need for the forced subs?

I've checked your sub file and it doesn't contain any forced subs.

idbirch2
30th December 2007, 23:48
Thank you for looking into this Pelican9, I guess it must be a Euro import and the forced subs are maybe in a different language.

Taktaal
1st January 2008, 01:07
The sup file alone didn't help much, I couldn't see anything that seems to likely be a "forced" bit - unless it's one of the 6 bytes after the time code that I don't know what they are there for. But those are all 0x00 for your sup file. But I think a friend has the Red October disc so I'll get it and try to figure out how forced subtitles are done in HD-DVDs.

idbirch2
1st January 2008, 04:35
Hi Taktaal, don't waste your time on this disc, apparantly Paramount fecked it right up! The extras were "accidentally forgotten" and the sub streams are messed up, it wouldn't surprise me if the forced subs were messed up too. Hopefully the movie will be re-released in due course.

tjf
11th January 2008, 14:38
Is there a way to rip the subtitles from HD DVD or Blu-Ray and mux it to mkv without OCR in VobSub format?

manusse
11th January 2008, 18:34
Hi,

You can use SubtitleCreator to import HD-DVD subtitles (no BD support at present) and save them to the VobSub format. There is no OCR in the process. However, VobSub is a SD (not HD) format. So the definition and the colors of the HD subtitles will be degraded. They will be equivalent to current DVD subtitles.

Hope this helps.
Manusse

tjf
12th January 2008, 11:30
Hi,

You can use SubtitleCreator to import HD-DVD subtitles (no BD support at present) and save them to the VobSub format.

I tried that, but it did not work.

I have SubtitleCreator 2.2. I demuxed the HD DVD subtitles with EvoDemux. It is cca 36MB sup file. Then in SubtitleCreator I go to Tools, Manipulate SUP or VobSub, Open sub. and load the subtitles, but nothing happens.

Can you help?

Thanks

saint-francis
13th January 2008, 22:22
I am also having this problem for the first time. I have riped and re riped the disk and the .SUP files just do nothing when loaded into subtitle creator. I have had great success with the process otherwise. This may be an EVOdemux problem though since when I choose read .xpl the number of .SUP files changes. I wold be more than happy to upload one of the .SUP's.

Maybe a new thread should be started about this?

manusse
14th January 2008, 20:30
Please post the incriminated sup file (use a file sharing site). I'll have a look.

Cheers

Manusse

tjf
14th January 2008, 21:46
Please post the incriminated sup file (use a file sharing site). I'll have a look.

Here is mine:

http://rapidshare.com/files/83823035/Feature_1_MERGED.8bitRLC.s00.English_SDH.sup.html

manusse
14th January 2008, 22:54
Ok, I've found and fixed the bug. It will work with next version (2.3) which should be out within 1 month.
If you want a beta to test it, PM me your email.

Cheers
Manusse

saint-francis
15th January 2008, 00:42
Please post the incriminated sup file (use a file sharing site). I'll have a look

And mine too:

http://rapidshare.com/files/83861383/EVOB001.Subpicture.01.sup.html

Rectal Prolapse
15th January 2008, 19:49
Taktaal, I have a question on suprip.

According to this decription:

This command outputs the content of the sup file to a series of PNG images that can then be passed to another OCR software.
titles_per_image is an optional value that sets how many lines should be added to a PNG before the next one starts (default 20)
spacing is how many empty pixels are added between subtitles (default 100)

Does this mean you can't have each subtitle in its own PNG image file, in proper HD resolution? Or will suprip try to cram as many subtitles into a PNG image as possible?

I hope not - as I would like to use the PNG files directly into Scenarist for creating my own Blu-ray movies with custom subtitles (ie. taken from HD-DVD sources).

Thanks for your response!

manusse
15th January 2008, 21:54
And mine too:

And a new bug fixed! :)

Cheers
Manusse

PS: Please post a message in SubtitleCreator's thread when you find a bug.

saint-francis
16th January 2008, 01:28
A bug in the new SubtitleCreator Beta:

The preview on the right which usually shows a list of the subtitles on the SUP is messed up. It's always blank aside from some random noise at the bottom of the box. When scrolling the noise always remains on the bottom.

http://i182.photobucket.com/albums/x270/saint-francis-photos/Untitled-1-1.jpg

manusse
16th January 2008, 21:04
A bug in the new SubtitleCreator Beta:

The preview on the right which usually shows a list of the subtitles on the SUP is messed up. It's always blank aside from some random noise at the bottom of the box. When scrolling the noise always remains on the bottom.


I think it's not a bug. Actually the SUP file format (HD and SD) holds bitmaps plus their positions and sizes on the video window. What happens in your subs is that their sizes is the size of the whole video i.e. the bitmap plus an empty background that fills the whole video window. So what you see on the right are 720x574 pixel (if you've set your window to PAL) subtitles that SubtitleCreator tries to display in a very small preview window so it looks like a big empty box with some kind of noise at the bottom (if your subs are at the bottom of the window) but it isn't. If you select this sub you will see it fine in the big preview window.

You can save your subs to png to see this clearly.

But some other SUP holds only a small window around the subtitles and it this case the small preview shows them much better.

My conclusion: The problems are in the subs. Otherwise, if the problem concerns SubtitleCreator, please post in the corresponding thread (also in the stickies) and not here. Thanks.

Cheers
Manusse

Pelican9
17th February 2008, 15:33
Hi everybody!
I'm still in Africa but I've worked on SUPread a little, but I don't know if is there anybody who need this program. I've just finished the BD strean export, so you can convert the HD DVD subtitle stream to BD subtitle stream. I'm working on the .srt import, with this function you can make a BD stream from an .srt. I didn't follow these topics here, so please tell me if somebody else has already made a tool for these functions. I'll upload the new beta soon (I hope).
Pel

hm10
17th February 2008, 15:53
Hi everybody!
I'm still in Africa but I've worked on SUPread a little, but I don't know if is there anybody who need this program. I've just finished the BD strean export, so you can convert the HD DVD subtitle stream to BD subtitle stream. I'm working on the .srt import, with this function you can make a BD stream from an .srt. I didn't follow these topics here, so please tell me if somebody else has already made a tool for these functions. I'll upload the new beta soon (I hope).
Pel

nobody created tool that can import subtitle stream to M2TS or EVO

and yes we need it :)

laserfan
17th February 2008, 17:22
I used it just the other day, and it worked SENSATIONALLY well!

Dunno about the new BD functions, but what you've built in SUPread is very much appreciated, thanks! :D

jamos
17th February 2008, 21:16
nobody created tool that can import subtitle stream to M2TS or EVO

and yes we need it :)

I second that!

XolocoTuxmaster
17th February 2008, 22:06
Hi everybody!
I'm still in Africa but I've worked on SUPread a little, but I don't know if is there anybody who need this program. I've just finished the BD strean export, so you can convert the HD DVD subtitle stream to BD subtitle stream. I'm working on the .srt import, with this function you can make a BD stream from an .srt. I didn't follow these topics here, so please tell me if somebody else has already made a tool for these functions. I'll upload the new beta soon (I hope).
Pel


Nobody has released a tool for hd dvd subs to BD subs yes
SubtitleWorkshop4 lets you import an .srt to export an .bdn...but it's still beta

Pelican9
18th February 2008, 08:17
Here it is.

Changes for v0.47

- Export Blu-ray subtitle stream
- Import .SRT files ('abc.png' needed for this function)
- correctly handle HD DVD contrast (transparency) information
- Palette and alpha information displays if 'Palette on bitmap' checked
- About window
- Little bugfixes
- abc.png contains all the english alphabet, the numbers,
the following chars !"#$%&'()*+,-./:;<>?@[]°,
music note and all the hungarian extra chars (áéíóöőúüű)
(Special thanks to 'Simon Templar' at avx.hu)

Download the latest version: http://pel.hu/down/SUPread.exe
Change log: http://pel.hu/down/SUPread.txt

Download 'abc.png': http://pel.hu/down/abc.png

This program is FREEWARE, but feel free to DONATE me here: http://pel.hu

nautilus7
18th February 2008, 09:35
So, if i got it right... I can import an English or Hungarian srt subtitle and convert it to HD DVD or Blu-ray sup subtitle. Is it possible to import other languages?

Pelican9
18th February 2008, 10:06
So, if i got it right... I can import an English or Hungarian srt subtitle and convert it to HD DVD or Blu-ray sup subtitle. Is it possible to import other languages?

1. You can do the following:
Import HD DVD subtitle stream -> export .srt subtitle
Import HD DVD subtitle stream -> export BD subtitle stream
Import HD DVD subtitle stream -> export bitmaps (BMP, PNG)
Import BD subtitle stream -> export .srt subtitle
Import BD subtitle stream -> export bitmaps (BMP, PNG)
Import .srt subtitle -> export BD subtitle stream
Import .srt subtitle -> export bitmaps (BMP, PNG)

2. Yes, it is possible, but I need help to make it (edit the abc.png and the data file). And if somebody wants italic letters, then he/she has to make the data file for it.

XolocoTuxmaster
18th February 2008, 10:37
Thank you very much!

It would be great if you include .bdn as output too, to use it at Scenarist BDA

nautilus7
18th February 2008, 11:25
OK, i see. Is srt --> HD DVD sup support expected soon?

What exactly do you need to add support for other (Greek) languages? An abc.png file with all Greek characters like the English one?

XolocoTuxmaster
18th February 2008, 12:31
If you want to know it, spanish special characters are:

áéíóúüñ
ÁÉÍÓÚÜÑ
€¿¡ºª«»

More info about special characters (for other languages too) can be found here

http://webdesign.about.com/library/bl_htmlcodes.htm

Thanks again, you are doing a great work

Pelican9
18th February 2008, 12:35
OK, i see. Is srt --> HD DVD sup support expected soon?

What exactly do you need to add support for other (Greek) languages? An abc.png file with all Greek characters like the English one?

Yes, and the positions and widths of the chars in that png.
I can send you the file if you want to work with it.

Pelican9
18th February 2008, 12:38
Thank you very much!

It would be great if you include .bdn as output too, to use it at Scenarist BDA

What is the format of this .bdn?

Pelican9
18th February 2008, 12:43
If you want to know it, spanish special characters are:

áéíóúüñ
ÁÉÍÓÚÜÑ
€¿¡ºª«»

More info about special characters (for other languages too) can be found here

http://webdesign.about.com/library/bl_htmlcodes.htm

Thanks again, you are doing a great work

I have to figure out, how can I handle all the languages...
Edit:
I've just uploaded the 0.47b2 version which works well...

XolocoTuxmaster
18th February 2008, 17:42
What is the format of this .bdn?

Well, actually I better said .png+.bdn, it's a kind of timecodes file. Subtitle WorkShop 4 ("http://www.urusoft.net/download.php?id=sw4&mirror=1) can export it from an .srt, it's still very beta and have some mistakes but maybe you can use it for some tests
1. Load *.srt file by SubtitleWorkshop4 (version 4 support bdn file export)
2. Clicks file->export customize image subtitle
3. Select 8bit PNG, and select movie resolution and fps.
4. Export
I have to figure out, how can I handle all the languages...


Are you talking about programming...or finding the special characters for them all? If it's the second one, here there are some links to general special characters articles.

I've checked it includes Spanish, French, German and of course English ones...don't know anyone else since I just speak that ones XD but I think they are included too

http://graveyard.maniacalrage.net/etc/special/
http://www.yourhtmlsource.com/text/specialcharacters.html
http://www.degraeve.com/reference/specialcharacters.php

Hope it helps

nautilus7
18th February 2008, 20:01
Yes, and the positions and widths of the chars in that png.
I can send you the file if you want to work with it.Yes, please!

Rectal Prolapse
18th February 2008, 20:30
I made a new tool that converts hd-dvd .sup files (made by evodemux) into scenarist-compatible BDN files with PNGs:

D:\Projects\hdsup2bdn\release>hdsup2bdn.exe --help
Allowed options:
--help produce help message
--version print version number
--original output PNG images in the original size (suitable for
OCR)
--fullpng output 1920x1080 PNG images [DEFAULT]
--nobdnfixtimes do not divide BDN times by 1.001 (BDN output only)
--bdnfixtimes divide BDN times by 1.001 (BDN output only) [DEFAULT]
--srtfixtimes divide SRT times by 1.001 (SRT output only)
--nosrtfixtimes divide SRT times by 1.001 (SRT output only) [DEFAULT]
--framerate arg frame rate [DEFAULT: 29.97]
--input-file arg input file
--srt output SRT file
--xml output Scenarist HDMV BDN file
--forcedsubs make all subtitles forced (BDN output only)
--dropframes flag all subtitle times as drop frames (BDN output
only)
--nopng don't generate any PNGs


Be sure to use the --xml option to output BDN files. SRT output is added but doesn't do OCR - it is really only for those who with wish to look at the timings only.

Also note that the timestamps are sped up by 1.001 when converting from .sup to BDN - otherwise sync will be wrong. But you can override this setting with the --nobdnfixtimes option.

I will release full source code (C++ using Boost libraries) if this version works wells. :)

sendspace link to the file: http://www.sendspace.com/file/ud8b2b

Rectal Prolapse
18th February 2008, 20:44
BTW, hdsup2bdn preserves the original transparency colors from the hd-dvd subtitles. This will probably make it harder to OCR - for such cases, suprip may be a better choice, as the black outline around subtitles will blend in with the black background it uses.

The --original option preserves the original subtitle bitmap size from the .sup file as well - and will output the x,y coordinates in the BDN. This could save a little bit of space in the subtitle stream, and could potentially make it easier to OCR.

A later version will let you select the opaque transparency color for easier OCRing.

Rectal Prolapse
19th February 2008, 00:54
Thanks for the new supread by the way. :)

Pelican9
19th February 2008, 14:49
I've upload a new beta with minor changes to handle more than one language.
The abc.png (http://pel.hu/down/abc.png) has changed also.
It contains now the upside down ?! and the n with tilde.
The program search the .png files in the same directory where the program started.

If you want to make an own character set then make your own .png file and download the data.pas (http://pel.hu/down/data.pas), edit it and send them to me.

I've put comments into it where you can place your data.

First you have to insert your file name (.png) (letfiles).

I need three data for every line:
1. y position of the line's top (letls)
2. y position of the line's base (this is the bottom of the letters) (letlb)
3. y position of the line's bottom (letle)

The normal and the italic style is two seperate array (letdat, letdati).

I need five data for every single char:
1. the line number
2. the character's starting x position
3. the character!s width
4. pixels decreasing the spacing before the start of the char
5. pixels decreasing the spacing after the end of the char

Pelican9
19th February 2008, 15:05
Well, actually I better said .png+.bdn, it's a kind of timecodes file. Subtitle WorkShop 4 ("http://www.urusoft.net/download.php?id=sw4&mirror=1) can export it from an .srt, it's still very beta and have some mistakes but maybe you can use it for some tests

I see, it's an xml. I can do it, if somebody wants this. The PNG export works well.

Are you talking about programming...or finding the special characters for them all?
I mean the programming part.

I made a new tool that converts hd-dvd .sup files (made by evodemux) into scenarist-compatible BDN files with PNGs:

Will this function be useful in SUPread?

hm10
19th February 2008, 15:38
i can't export sup
i have the abc with the english letters that you did, load srt file in english try to export and it write error

"Access violation at address 0049A75F in module 'SUPread.exe'. Read of address 4A4948AF."

thx pelcian

Pelican9
19th February 2008, 15:42
i can't export sup
i have the abc with the english letters that you did, load srt file in english try to export and it write error

"Access violation at address 0049A75F in module 'SUPread.exe'. Read of address 4A4948AF."

thx pelcian

Is this the newest version?

hm10
19th February 2008, 15:44
yes 0.47b3

maby i changed in mistake something in the options
so i will download the tool again and'll talk you in more 3-4 h' i'm going now...

hm10
19th February 2008, 18:18
ok, try to download again but still don"t work

Rectal Prolapse
19th February 2008, 18:39
Will this function be useful in SUPread?

Maybe. Although hdsup2bdn is very fast - it can process approximately 20 subtitles a second on a Core 2 Duo PC (the conversion to PNG takes a long time - I'm using the official PNG library).

It also corrects the timestamps for use in Scenarist BDMV, as the PTS times are in non-drop frame mode (24 fps) instead of the expected 23.976 fps.

It only works on HD-DVD .sup files though, so I can see a demand for making BDN files for Blu-ray subtitles. I would like to add Blu-ray .sup support one day, but it may be a while.

Give hdsup2bdn a try - figuring out the BDN file format should be straightforward!

Pelican9
20th February 2008, 09:59
ok, try to download again but still don"t work
Send me that .srt file, I'll check it.

nautilus7
20th February 2008, 11:04
Pelican9, i don't understand what to modify in the .pas file. Can you make it more clear?

hm10
20th February 2008, 11:39
Send me that .srt file, I'll check it.

check your pm

Pelican9
20th February 2008, 21:07
Pelican9, i don't understand what to modify in the .pas file. Can you make it more clear?
OK, I'm trying to explain (sorry for my English).
1. Create a png file with your letters. It has to be a transparent background and the letters have to be in lines. (See the abc.png, it has 5 rows.) You have to leave enough space between the italic characters because I will cut the chars from this image with rectangular shape. (It will be easier for me if your lines will be about 70-80 pixels high and the base around 57 pixels.)
http://pel.hu/down/lett.jpg

2. You have to fill the line data.
The blue lines are the top y coordinates of the 1st and the 3rd lines. You have to write this into the letls array.

letls: array[0..0] of Tline = ( // line start y
( 0, 73,146,218,291, 0, 0, 0, 0, 0) // for default
// ,
// ( 1st, 2nd, 3rd, 0, 0, 0, 0, 0, 0, 0)
);

The red lines are the base y coordinates of the 1st and the 3rd lines.
You have to write this into the letlb array.

letlb: array[0..0] of Tline = ( // line base y
( 57,130,203,276,349, 0, 0, 0, 0, 0)
// ,
// ,( 1st, 2nd, 3rd, 0, 0, 0, 0, 0, 0, 0)
);

The green lines are the y coordinates of the 1st and the 3rd lines. You have to write this into the letle array. The same way as above.

3. You have to fill the characters data (normal style)

The purple lines indicate the x position of the D and th E letters.
You have to give five numbers for each character.
For example the 'D' looks like this: (3, 187, 41, 1, 0),
because it is in the 3rd line, it starts at 187 (x position) and its width is 41 pixels.
The last two numbers is needed for adjusting the space between two letters. The first one tells how many pixels bypassed before the char the second number shows the same but after the char.
You have to put the characters data to the letdat and letdati (italic style)
This array has 256 line. The first line is for the character code 0 (not exists), the second is for code 1, the 33rd is for code 32 (space) the 34th is for code 33 (!), ... and the 256th is for code 255.

letdat: array[0..0] of Tletdat
//char code, line, x pos, width, dec before, dec after
=(// normal letters in 'abc.png'
((0, 0, 0, 0, 0), //00
(0, 0, 0, 0, 0), //01
...
(0, 0, 0, 0, 0))
// ,( // put the new data here (normal)
// (0, 0, 0, 0, 0),
// ...
// (0, 0, 0, 0, 0))

After the 256th line you can find a comment where have to put your data.

I hope it will help you.
Thanks for your work!

nautilus7
20th February 2008, 21:47
Ok, thanks. I will try when i find some time.

Pelican9
21st February 2008, 22:53
I've worked on SUPread a little.
Here is the new beta.
Download the abc.png (http://pel.hu/down/abc.png) too.
There is some new option to SRT -> bitmap conversion.

hm10:
Try this version, maybe help.

hm10
22nd February 2008, 06:02
hm10:
Try this version, maybe help.

thx now working

but still i can't import this in tsremux
or maby this happen because i need change to stream export to HD-DVD?
how i change? i remember was "import button" that give to chnage this

Pelican9
22nd February 2008, 09:46
thx now working

but still i can't import this in tsremux
or maby this happen because i need change to stream export to HD-DVD?
how i change? i remember was "import button" that give to chnage this

The HD DVD stream export does'nt work, because I don't know any tool which can handle it, so it's useless now. Anyway, I think it's not a big work, so maybe I'll finish this, just in case. :)

I hope TsRemux or TsMuxer can mux this BD stream soon...

hm10
22nd February 2008, 13:29
The HD DVD stream export does'nt work, because I don't know any tool which can handle it, so it's useless now. Anyway, I think it's not a big work, so maybe I'll finish this, just in case. :)

I hope TsRemux or TsMuxer can mux this BD stream soon...

ok thx

Rectal Prolapse
22nd February 2008, 17:23
Any feedback for the hdsup2bdn tool?

If everything is fine I may release the source next week or two.

With luck, portions of it can be used in a new VSFilter or something like that...

Pelican9
22nd February 2008, 21:56
I've just finished the HD DVD stream export.
Enjoy it! :)

You can do the following now:
Import HD DVD subtitle stream -> export .srt subtitle
Import HD DVD subtitle stream -> export BD subtitle stream
Import HD DVD subtitle stream -> export bitmaps (BMP, PNG)
Import BD subtitle stream -> export .srt subtitle
Import BD subtitle stream -> export bitmaps (BMP, PNG)
Import BD subtitle stream -> export HD DVD subtitle stream
Import .srt subtitle -> export BD subtitle stream
Import .srt subtitle -> export bitmaps (BMP, PNG)
Import .srt subtitle -> export HD DVD subtitle stream

You can do also BD to BD or HD DVD to HD DVD but it doesn't make sense.

Rectal Prolapse:
I haven't started the bdn export yet...

hm10
22nd February 2008, 22:43
chnage the link in your http link to the new ver'

Pelican9
23rd February 2008, 07:22
chnage the link in your http link to the new ver'

Only the newest version is there.
I've just check it, this is the new one.

hm10
23rd February 2008, 14:32
yesterday it was the the older, now ok...
and the hd-dvd sup doesn't work with tsremux...

Pelican9
23rd February 2008, 15:12
Change for v0.49

- BDN xml export for Scenarist during bitmap saving

jamos
24th February 2008, 02:14
Change for v0.49

- BDN xml export for Scenarist during bitmap saving

Nice job Pelican Ill check it out.

Pelican9
24th February 2008, 08:39
Nice job Pelican Ill check it out.

Thank you for testing. I need feedback...

hm10
24th February 2008, 14:54
now just need support in tsremux =\

Kurtnoise
24th February 2008, 18:08
@Pelican9: great stuff...:) btw, why not embedding the abc.png file within your .exe ?

hm10
24th February 2008, 18:16
http://pel.hu/down/lett.jpg



you can give me the psd of this picture

Pelican9
24th February 2008, 19:51
@Pelican9: great stuff...:) btw, why not embedding the abc.png file within your .exe ?

Yes, it should be more elegant, but there will be more png file(cyrillic, greek, maybe others), and I don't want put into the exe all of them. I'm still thinking about it.

Pelican9
24th February 2008, 19:52
you can give me the psd of this picture

No, I can't. It's png.

hm10
24th February 2008, 19:58
No, I can't. It's png.

you didn't make it in photoshop?
so maby you know how i do letter same in u'r picture with transpent background

jamos
24th February 2008, 20:01
Thank you for testing. I need feedback...

Getting a error when trying to import into scenarist well it just locks up at 0% after it loads the xml. xml looks good, its when its actually trying to import the pngs that it hangs. Wonder if it doesnt like the pallete or something I know scenarist only supports 256 colors so you need to use 8bit png.

Also can you support 720p? Add a feature to the format box where you can set the resolution to 1080p or 720p?

thanks

Pelican9
24th February 2008, 20:53
you didn't make it in photoshop?
so maby you know how i do letter same in u'r picture with transpent background
Start a new file choose transparent background.
Write the text and check 'stroke' in layer style.

Pelican9
24th February 2008, 21:00
Getting a error when trying to import into scenarist well it just locks up at 0% after it loads the xml. xml looks good, its when its actually trying to import the pngs that it hangs. Wonder if it doesnt like the pallete or something I know scenarist only supports 256 colors so you need to use 8bit png.

Also can you support 720p? Add a feature to the format box where you can set the resolution to 1080p or 720p?

thanks
Hmmm, it sounds interesting. Somebody reports succesfully import in Scenarist but it was about six month ago...
Are you sure Scenarist cannot load PNG24?
I don't want to degrade the picture quality if not neccessary.

marco_ooo
24th February 2008, 21:42
i changed the picures(png) for the one that subtitle workshop create png 8bit en then the xml works

hope this experiment helps

Pelican9
24th February 2008, 21:47
i changed the picures(png) for the one that subtitle workshop create png 8bit en then the xml works

hope this experiment helps

Thank you!
It means Scenarist really needs PNG8. :-(

marco_ooo
24th February 2008, 21:49
yep :(

and is it possible to create 720p png's ?

jamos
24th February 2008, 23:00
Hmmm, it sounds interesting. Somebody reports succesfully import in Scenarist but it was about six month ago...
Are you sure Scenarist cannot load PNG24?
I don't want to degrade the picture quality if not neccessary.

Yes I am absolutly sure the manual states 8bit 256 color png.

Pelican9
25th February 2008, 00:00
Yes I am absolutly sure the manual states 8bit 256 color png.

I have to rewrite the whole png part... :(


yep :(

and is it possible to create 720p png's ?

Not easy. I'm afraid it could be too slow... I'll check it out.

jamos
25th February 2008, 00:12
I have to rewrite the whole png part... :(




Not easy. I'm afraid it could be too slow... I'll check it out.

thanks for any work on this. I do request the 720 also.

Pelican9
25th February 2008, 09:51
i changed the picures(png) for the one that subtitle workshop create png 8bit en then the xml works

hope this experiment helps

Could you send me a png which works in Scenarist?

jamos
25th February 2008, 10:15
Could you send me a png which works in Scenarist?

check your pm

vlada
25th February 2008, 11:22
I have one question. Would it be too much work to modify your program to also work with SD (DVD-Video) subtitles? I'm currently working on a GUI which would allow simple conversion between a lot of formats.

I need to do following things:
1) Convert text subtitles to SD SUP (for DVD-Video)
2) Convert DVD subtitles to text (SRT)
3) In future also add support for HD formats

Could you program be useful for me? Or do you know any other programs which can do this for me? I need it to be as simple as possible, my program is targeted mainly at beginners.

I know SubRip, which is unfortunately quite complicated. And SubtitleCreator relies on .NET. I would like my program to be as portable as possible, so I don't want to use any frameworks. So I'm looking for a replacement of these programs. I need to be able to run them from command line. Is (or will be) SUPread suitable for my needs? Or do you have any other suggestions?

Sorry for being slightly off-topic.

Thunderbolt8
25th February 2008, 12:23
any advice how I can improve the OCR results? when I use SUPread to orc a title e.g. the english subs from 'dawn of the dead' blu-ray then there are still many mistakes in each line for most of the time and considering that there are ~1200 lines overall its not too much fun having to go through each line seperately. im not really familiar with the topic of ocring subs, so what else can I do here?

Pelican9
25th February 2008, 13:32
Little bugfix in HD DVD export.

hm10
25th February 2008, 13:33
pelcian i have xml file and pngs that worked me before some month (i tried to found answer how to add subtitle to m2ts) in scenarist but when i tried to mux, just the audio and the video muxed and the pngs didn't

try it...
(i from israel so the write in the pngs in hebrew so leave it...)

Pelican9
25th February 2008, 13:38
any advice how I can improve the OCR results? when I use SUPread to orc a title e.g. the english subs from 'dawn of the dead' blu-ray then there are still many mistakes in each line for most of the time and considering that there are ~1200 lines overall its not too much fun having to go through each line seperately. im not really familiar with the topic of ocring subs, so what else can I do here?
Unfortunately when I wrote the OCR part, every HD DVD used the same font for the subtitles and I wrote an algorythm which works only that font. I'm planning to rewrite the OCR from zero, but until then I can make an image export for external OCR (I read this thread yesterday night and saw the conversation about using external OCR).

Pelican9
25th February 2008, 13:40
pelcian i have xml file and pngs that worked me before some month (i tried to found answer how to add subtitle to m2ts) in scenarist but when i tried to mux, just the audio and the video muxed and the pngs didn't

try it...
(i from israel so the write in the pngs in hebrew so leave it...)

Thank you. I'll check it.
Do you want to make a hebrew abc.png?

P.S.: Why you always write my name pelcian instead of pelican?

hm10
25th February 2008, 13:41
P.S.: Why you always write my name pelcian instead of pelican?

didn't see untill now =\

Thunderbolt8
25th February 2008, 15:44
I tried to follow this instruction here
http://forum.doom9.org/showthread.php?p=1050446#post1050446

but im stuck at step 4 of finereader configuration. I cant find a text block template or such, how can I create one? and how can I be sure it has the resolution of 1920x1080? :S

Rectal Prolapse
25th February 2008, 16:56
Could you send me a png which works in Scenarist?

You can also make your own pngs using the hdsup2bdn tool - just supply it with an HD-DVD .sup file along with the --xml option. The tool has been tested with several HD-DVDs and so far scenarist has accepted them all.

Rectal Prolapse
25th February 2008, 16:57
Thunderbolt: I hope my PM helped you. I think you can save a block template once you set the DPI and the text region.

jamos
25th February 2008, 17:13
You can also make your own pngs using the hdsup2bdn tool - just supply it with an HD-DVD .sup file along with the --xml option. The tool has been tested with several HD-DVDs and so far scenarist has accepted them all.

subtitleworkshop4 beta 2 will export pngs correctly for scenarist also.

Rectal Prolapse
25th February 2008, 17:25
Yeah - although hdsup2bdn is pixel-accurate for converting HD-DVD subtitles to PNGs (to save an OCR step and also avoid finding third party SRTs). It's nice to have many solutions. :)

Also, as far as I can tell, the PNGs made by hdsup2bdn are Rec.709 compliant - that is, the colors converted from YCbCr space to RGB space are done according to the rec.709 spec.

jamos
25th February 2008, 18:37
Yeah - although hdsup2bdn is pixel-accurate for converting HD-DVD subtitles to PNGs (to save an OCR step and also avoid finding third party SRTs). It's nice to have many solutions. :)

Also, as far as I can tell, the PNGs made by hdsup2bdn are Rec.709 compliant - that is, the colors converted from YCbCr space to RGB space are done according to the rec.709 spec.


That may be why subtitleworkshops subtitles are distorted when you import them into scenarist without chaging the colors first.

Pelican9
25th February 2008, 20:57
Also, as far as I can tell, the PNGs made by hdsup2bdn are Rec.709 compliant - that is, the colors converted from YCbCr space to RGB space are done according to the rec.709 spec.

Could you share this fancy converting formula? :)

Rectal Prolapse
25th February 2008, 21:26
Could you share this fancy converting formula? :)

You bet!

void SupPalette::YCrCbToRGB_Rec709()
{
double Kr = 0.2125, Kb = 0.0721;
double Kg = 1.0 - Kr - Kb;

double rp = Y + 2*(Cr-128)*(1.0-Kr);
double gp = Y - 2*(Cb-128)*(1.0-Kb)*Kb/Kg - 2*(Cr-128)*(1.0-Kr)*Kr/Kg;
double bp = Y + 2*(Cb-128)*(1.0-Kb);

R = fabs(rp); G = fabs(gp); B = fabs(bp);
}


Final result is in R, G, and B.

Pelican9
25th February 2008, 23:06
You bet!


These are the colors from Riddick (produced by hdsup2bdn):

0: (238, 14, 13) = (0xee,0x0e,0x0d)
1: ( 16, 16, 16) = (0x10,0x10,0x10)
2: ( 87, 87, 87) = (0x57,0x57,0x57)
3: (138,138,138) = (0x8a,0x8a,0x8a)
4: (159,159,157) = (0x9f,0x9f,0x9d)
5: (171,171,171) = (0xab,0xab,0xab)
6: (192,192,192) = (0xc0,0xc0,0xc0)
7: (186,186,184) = (0xba,0xba,0xb8)
8: (131,131,131) = (0x83,0x83,0x83)
9: ( 33, 33, 33) = (0x21,0x21,0x21)
10: (176,176,176) = (0xb0,0xb0,0xb0)
11: (101,101,101) = (0x65,0x65,0x65)
12: (181,181,179) = (0xb5,0xb5,0xb3)
13: (122,122,122) = (0x7a,0x7a,0x7a)
14: (153,153,153) = (0x99,0x99,0x99)
15: (165,165,165) = (0xa5,0xa5,0xa5)
16: (146,146,146) = (0x92,0x92,0x92)
17: (113,113,113) = (0x71,0x71,0x71)
18: ( 16, 16, 16) = (0x10,0x10,0x10)
...
255: ( 16, 16, 16) = (0x10,0x10,0x10)


Are you sure is this formula good?
I think it isn't. I'm not sure, but:
The Y values on the HD DVD (and on the BD) palette are always between 16 and 235.
Using your formula you never produce black (0,0,0) as seems in the above example.
My guess is you have to decrease the value of Y by 16.
Is fabs() mean absolute value?
If yes, why it needed?

My magic formula is:

rr:=(1164*(Y-16)+1596*(Cr-128)) div 1000;
gg:=((1164*(Y-16)-813*(Cr-128)-391*(Cb-128)) div 1000);
bb:=((1164*(Y-16)+2018*(Cb-128)) div 1000);
if rr>255 then rr:=255; if rr<0 then rr:=0;
if gg>255 then gg:=255; if gg<0 then gg:=0;
if bb>255 then bb:=255; if bb<0 then bb:=0;
Result:=rr+gg shl 8+bb shl 16;

jamos
26th February 2008, 01:15
These are the colors from Riddick (produced by hdsup2bdn):

0: (238, 14, 13) = (0xee,0x0e,0x0d)
1: ( 16, 16, 16) = (0x10,0x10,0x10)
2: ( 87, 87, 87) = (0x57,0x57,0x57)
3: (138,138,138) = (0x8a,0x8a,0x8a)
4: (159,159,157) = (0x9f,0x9f,0x9d)
5: (171,171,171) = (0xab,0xab,0xab)
6: (192,192,192) = (0xc0,0xc0,0xc0)
7: (186,186,184) = (0xba,0xba,0xb8)
8: (131,131,131) = (0x83,0x83,0x83)
9: ( 33, 33, 33) = (0x21,0x21,0x21)
10: (176,176,176) = (0xb0,0xb0,0xb0)
11: (101,101,101) = (0x65,0x65,0x65)
12: (181,181,179) = (0xb5,0xb5,0xb3)
13: (122,122,122) = (0x7a,0x7a,0x7a)
14: (153,153,153) = (0x99,0x99,0x99)
15: (165,165,165) = (0xa5,0xa5,0xa5)
16: (146,146,146) = (0x92,0x92,0x92)
17: (113,113,113) = (0x71,0x71,0x71)
18: ( 16, 16, 16) = (0x10,0x10,0x10)
...
255: ( 16, 16, 16) = (0x10,0x10,0x10)


Are you sure is this formula good?
I think it isn't. I'm not sure, but:
The Y values on the HD DVD (and on the BD) palette are always between 16 and 235.
Using your formula you never produce black (0,0,0) as seems in the above example.
My guess is you have to decrease the value of Y by 16.
Is fabs() mean absolute value?
If yes, why it needed?

My magic formula is:

rr:=(1164*(Y-16)+1596*(Cr-128)) div 1000;
gg:=((1164*(Y-16)-813*(Cr-128)-391*(Cb-128)) div 1000);
bb:=((1164*(Y-16)+2018*(Cb-128)) div 1000);
if rr>255 then rr:=255; if rr<0 then rr:=0;
if gg>255 then gg:=255; if gg<0 then gg:=0;
if bb>255 then bb:=255; if bb<0 then bb:=0;
Result:=rr+gg shl 8+bb shl 16;


try yours out i can test it..hehe

Pelican9
26th February 2008, 12:01
try yours out i can test it..hehe

:confused::confused::confused:

jamos
26th February 2008, 15:52
:confused::confused::confused:

I mean if you can get the subtitles bdn working then I can test it with scenarist. main thing is it needs to be 8bit.

Rectal Prolapse
26th February 2008, 17:23
Pelican9, I guarantee you that the colors are good. Why? Because 16-235 is how all Blu-rays and HD-DVDs are mastered. Sometimes the numbers go beyond these, but that is rare (it is more common on DVDs).

Trust me, they are correct. And will be necessary when you play on properly calibrated video equipment like standalone players on TVs that comply with the SMPTE video standard.

Most people on doom9 watch with PC levels, where video is expanded from 16-235 range to 0-255 (clipping all levels from 0-15 and 236-255). Why do they watch with PC levels? Because they use PC monitors and do not or can not calibrate them to the proper SMPTE video levels. Also, PC applications expect black to be at 0 and not 16 like all Blu-rays and HD-DVDs are mastered at. NOTE: ATI cards in the later catalyst drivers always outputs the incorrect PC levels expansion mode for HD video - whereas NVIDIA cards always output without the incorrect PC levels expansion unless the user overrides it (through VMR procamp controls or the registry tweak).

I guarantee you that the levels are correct in those subtitles...they are NECESSARY for proper playback on standalone players. If PC levels expansion is needed, it is the job of the player to do the 16-235 -> 0-255 expansion for RGB conversion.

I am making the assumption that Scenarist expects all PNGs to follow the video levels standard (16-235). As an experiment, you can import the PNGs made by hdsup2bdn, mux it into the needed m2ts file, then demux the subtitle track using xport then running hdsup2bdn on the resultant .sup file - if the PNGs come out the same, then we know scenarist expects video level ranges.

I can tell you that at least the generation of PNGs is correct from a strict video standard viewpoint - standalone players that are set to output RGB will use 16-235 internally.

Rectal Prolapse
26th February 2008, 17:32
Is fabs() mean absolute value?
If yes, why it needed?

Oh, that's just needed to tell the compiler to correctly round the floating point numbers to the nearest integer.

Pelican9
26th February 2008, 17:33
I mean if you can get the subtitles bdn working then I can test it with scenarist. main thing is it needs to be 8bit.

Please test this png: line0001_8bit.png (http://pel.hu/down/line0001_8bit.png)

Rectal Prolapse
26th February 2008, 17:47
Pelican9, the PNG looks good except for one thing - it is missing the transparency data (maybe the background option is needed?). Otherwise, it is 8 bit and should be accepted by Scenarist - although it may complain (and give up) because of missing transparency indexes. :)

The hdsup2bdn PNGs include transparency data - but there is no option yet to remove that for OCR purposes. :(

Rectal Prolapse
26th February 2008, 17:51
BTW, HDDemuxer from here, http://www.dvd-logic.com/hddemuxer.htm, doesn't seem to output 0 level blacks either - however, I think its output is wrong too - it's probably using the Rec.601 conversion same as DVD.

Pelican9
26th February 2008, 18:35
Pelican9, the PNG looks good except for one thing - it is missing the transparency data (maybe the background option is needed?). Otherwise, it is 8 bit and should be accepted by Scenarist - although it may complain (and give up) because of missing transparency indexes. :)

The trasparency information isn't missing. It has a tRNS chunk with 256 entries.

The hdsup2bdn PNGs include transparency data - but there is no option yet to remove that for OCR purposes. :(

I do the following:
Check the color of every pixel and if the color value is greater than the Level value then I draw a white pixel, if not then I draw a black pixel.
You can see the result when click OCR button in image page.

jamos
26th February 2008, 18:36
Please test this png: line0001_8bit.png (http://pel.hu/down/line0001_8bit.png)

worked perfectly no errors or warnings. I am at work though and cannot test how it looks as i cannot view output remotely. I did not get any transparency warnings like i do when i use subtitleworkshops export either. I have a 720p file so am not sure where the subtitle will show up in it though since its a 1080p. I hope you add a 720p output feature for pngs.

thanks

Pelican9
26th February 2008, 18:40
Pelican9, I guarantee you that the colors are good. Why? Because 16-235 is how all Blu-rays and HD-DVDs are mastered. Sometimes the numbers go beyond these, but that is rare (it is more common on DVDs).

Trust me, they are correct. And will be necessary when you play on properly calibrated video equipment like standalone players on TVs that comply with the SMPTE video standard.

Most people on doom9 watch with PC levels, where video is expanded from 16-235 range to 0-255 (clipping all levels from 0-15 and 236-255). Why do they watch with PC levels? Because they use PC monitors and do not or can not calibrate them to the proper SMPTE video levels. Also, PC applications expect black to be at 0 and not 16 like all Blu-rays and HD-DVDs are mastered at. NOTE: ATI cards in the later catalyst drivers always outputs the incorrect PC levels expansion mode for HD video - whereas NVIDIA cards always output without the incorrect PC levels expansion unless the user overrides it (through VMR procamp controls or the registry tweak).

I guarantee you that the levels are correct in those subtitles...they are NECESSARY for proper playback on standalone players. If PC levels expansion is needed, it is the job of the player to do the 16-235 -> 0-255 expansion for RGB conversion.

I am making the assumption that Scenarist expects all PNGs to follow the video levels standard (16-235). As an experiment, you can import the PNGs made by hdsup2bdn, mux it into the needed m2ts file, then demux the subtitle track using xport then running hdsup2bdn on the resultant .sup file - if the PNGs come out the same, then we know scenarist expects video level ranges.

I can tell you that at least the generation of PNGs is correct from a strict video standard viewpoint - standalone players that are set to output RGB will use 16-235 internally.

I think you mix things.
The Y values shall be in range 16-235, the Cr and Cb valus shall be in range 16-240. No exception.
When you convert it to RGB space the R,G,B values are in range 0-255.
I don't think if Scenarist expects any other range than 0-255 in rgb values.

Pelican9
26th February 2008, 18:42
worked perfectly no errors or warnings. I am at work though and cannot test how it looks as i cannot view output remotely. I did not get any transparency warnings like i do when i use subtitleworkshops export either. I have a 720p file so am not sure where the subtitle will show up in it though since its a 1080p. I hope you add a 720p output feature for pngs.

thanks

Thank you for the test.
The 720p export is ready, but I would like to fix this PNG8 first.

jamos
26th February 2008, 18:50
Thank you for the test.
The 720p export is ready, but I would like to fix this PNG8 first.
I cannot test further with the 1080p source because scenarist blows up when i try to mux due to that its size is bigger than my video size. Can you give me a 720p png8 to test with?

Rectal Prolapse
26th February 2008, 19:12
The Y values shall be in range 16-235, the Cr and Cb valus shall be in range 16-240. No exception.

Yeah, if the YCrCb color is gray, and Y is 16-235, then the RGB will also be 16-235. The output of hdsup2bdn is correct - please check the gray ramp from Digital Video Essentials DVD against a mpeg2 reference decoder (such as the DGMPGIndex program). DGMPGIndex also outputs correct studio (aka video) RGB levels.

However, there is no guarantee that scenarist assumes PNGs are in the 16-235 studio RGB range. One day I will test. :)

BTW, I opened your PNG in photoshop and the background wasn't transparent like it is for the HDDemuxer or hdsup2bdn output - but maybe photoshop only shows transparency for a certain index value? If so, then as long as scenarist accepts it then supread is fine. :)

Pelican9, maybe you can make which color conversion to use as an option? That will allow us to do whatever we want with the colors!

Pelican9
26th February 2008, 19:25
I cannot test further with the 1080p source because scenarist blows up when i try to mux due to that its size is bigger than my video size. Can you give me a 720p png8 to test with?

This is very ugly, but good enough for testing: http://pel.hu/down/line0001_720p.png

Pelican9
26th February 2008, 19:28
Yeah, if the YCrCb color is gray, and Y is 16-235, then the RGB will also be 16-235. The output of hdsup2bdn is correct - please check the gray ramp from Digital Video Essentials DVD against a mpeg2 reference decoder (such as the DGMPGIndex program). DGMPGIndex also outputs correct studio (aka video) RGB levels.

However, there is no guarantee that scenarist assumes PNGs are in the 16-235 studio RGB range. One day I will test. :)

I hope, somebody do this test with both type of the pngs and report the result.

BTW, I opened your PNG in photoshop and the background wasn't transparent like it is for the HDDemuxer or hdsup2bdn output - but maybe photoshop only shows transparency for a certain index value? If so, then as long as scenarist accepts it then supread is fine. :)

I think PS cannot handle the PNG8 with more than one transparent color. Fireworks works well. Even the pure Windows picture and fax viewer displays it correctly

Pelican9, maybe you can make which color conversion to use as an option? That will allow us to do whatever we want with the colors!

You are right, this will be the best solution.

jamos
26th February 2008, 20:14
This is very ugly, but good enough for testing: http://pel.hu/down/line0001_720p.png

no warnings or errors on import and muxed successfully.

Pelican9
26th February 2008, 20:20
no warnings or errors on import and muxed successfully.

Thank you. I'm thinking to rewrite the whole PNG stuff in SUPread from 24 bit to 8 bit so you have to wait a little for the next version.

Rectal Prolapse
26th February 2008, 20:58
Yeah I think you're right about photoshop not handling all the transparent colors. Damn!

Anyways, thanks again for your supread updates! Color conversion options would also be great for OCRing too - like an option to push certain range of colors to pure white and everything else to black (to get rid of the outlines around text, for example).

manusse
26th February 2008, 21:22
I'm thinking to rewrite the whole PNG stuff in SUPread from 24 bit to 8 bit so you have to wait a little for the next version.

Maybe you could use this one: http://wiki.lazarus.freepascal.org/PascalMagick

Manusse

Pelican9
26th February 2008, 22:25
Yeah I think you're right about photoshop not handling all the transparent colors. Damn!

Anyways, thanks again for your supread updates! Color conversion options would also be great for OCRing too - like an option to push certain range of colors to pure white and everything else to black (to get rid of the outlines around text, for example).

What format will be useful?
PNG8?
What size?
Full HD or subtitle only?

jamos
26th February 2008, 22:28
ok it worked on playback but the subtitle was basically transparent except for the border. would like to see pure white with no border as in the original.

Pelican9
26th February 2008, 22:34
ok it worked on playback but the subtitle was basically transparent except for the border. would like to see pure white with no border as in the original.

I know, I know, that was the reason why I said it's ugly...

Rectal Prolapse
26th February 2008, 22:44
Pelican9, I'm not sure - people that wish to only use OCR don't really need full HD. Their OCR software may not support PNGs. I guess those can all be options - but that makes things complicated. :(

Rectal Prolapse
26th February 2008, 22:46
New hdsup2bdn:

http://www.sendspace.com/file/1oij4n

Allowed options:
--help produce help message
--version print version number
--original output PNG images in the original size (suitable for
OCR)
--fullpng output 1920x1080 PNG images [DEFAULT]
--nobdnfixtimes do not divide BDN times by 1.001 (BDN output only)
--bdnfixtimes divide BDN times by 1.001 (BDN output only) [DEFAULT]
--srtfixtimes divide SRT times by 1.001 (SRT output only)
--nosrtfixtimes divide SRT times by 1.001 (SRT output only) [DEFAULT]
--framerate arg frame rate [DEFAULT: 29.97]
--input-file arg input file
--srt output SRT file
--xml output Scenarist HDMV BDN file
--forcedsubs make all subtitles forced (BDN output only)
--dropframes flag all subtitle times as drop frames (BDN output
only)
--nopng don't generate any PNGs
--blackbackground always make the transparent background black (index 0)
[RGB 0,0,0]
--blackemphasis make the HD-DVD emphasis pixels (index 2 and 3) black
--enhancecontrast make all pixels with Y < 127 black, and pixels with Y
>= 128 white (easier to OCR). Also forces background to
black.


Example usage:

C:\My Downloads\Subtitles\Mr. Bean's Holiday>C:\Projects\Blu-ray\hdsup2bdn\release\hdsup2bdn.exe --xml --enhancecontrast FEATURE_1_MERGED.Subpicture.14.sup
XML (BDN) output selected
Force all pixels to black except the main pattern
framerate defaults to 29.97
Input files are: FEATURE_1_MERGED.Subpicture.14.sup
hdsup2bdn version 1.04


--enhancecontrast forces all colors with Y < 127 to be black, and all other colors to be white. This is a cheap hack but hopefully works for most people!

Rectal Prolapse
26th February 2008, 22:53
Also, the --original option for hdsup2bdn can be really handy for OCRing as well - it doesn't output a full 1920x1080 picture, instead only what the subtitle uses.

Pelican9
26th February 2008, 22:58
New hdsup2bdn:

--enhancecontrast forces all colors with Y < 127 to be black, and all other colors to be white. This is a cheap hack but hopefully works for most people!

In SUPread the cut level value give me the best result around 140 but some subtitle needs around 200... that's why I've put it into the Options

Anyway, why don't you make an own OCR?

What happened with Taktaal's program? Is he still develop his program?

Why don't we make a really cool tool together? :)

Rectal Prolapse
26th February 2008, 23:11
ahh 140 or 200? Damn - maybe I'll have to add *another* option to make the program even more confusing. :)

I think Taktaal's suprip is at version 0.93. It's probably no more than a month old!

I know nothing about OCRing though - it's too complicated for me!

jamos
27th February 2008, 00:26
New hdsup2bdn:

http://www.sendspace.com/file/1oij4n

Allowed options:
--help produce help message
--version print version number
--original output PNG images in the original size (suitable for
OCR)
--fullpng output 1920x1080 PNG images [DEFAULT]
--nobdnfixtimes do not divide BDN times by 1.001 (BDN output only)
--bdnfixtimes divide BDN times by 1.001 (BDN output only) [DEFAULT]
--srtfixtimes divide SRT times by 1.001 (SRT output only)
--nosrtfixtimes divide SRT times by 1.001 (SRT output only) [DEFAULT]
--framerate arg frame rate [DEFAULT: 29.97]
--input-file arg input file
--srt output SRT file
--xml output Scenarist HDMV BDN file
--forcedsubs make all subtitles forced (BDN output only)
--dropframes flag all subtitle times as drop frames (BDN output
only)
--nopng don't generate any PNGs
--blackbackground always make the transparent background black (index 0)
[RGB 0,0,0]
--blackemphasis make the HD-DVD emphasis pixels (index 2 and 3) black
--enhancecontrast make all pixels with Y < 127 black, and pixels with Y
>= 128 white (easier to OCR). Also forces background to
black.


Example usage:

C:\My Downloads\Subtitles\Mr. Bean's Holiday>C:\Projects\Blu-ray\hdsup2bdn\release\hdsup2bdn.exe --xml --enhancecontrast FEATURE_1_MERGED.Subpicture.14.sup
XML (BDN) output selected
Force all pixels to black except the main pattern
framerate defaults to 29.97
Input files are: FEATURE_1_MERGED.Subpicture.14.sup
hdsup2bdn version 1.04


--enhancecontrast forces all colors with Y < 127 to be black, and all other colors to be white. This is a cheap hack but hopefully works for most people!

looks good how would i get 1280x720 subpictures from a 1080p source?

jamos
27th February 2008, 00:37
i am getting a error using your program rectal-> No SP found in header. with the same file supread can read it fine.

Rectal Prolapse
27th February 2008, 18:24
jamos, hdsup2bdn only works on hd-dvd .sup files. It won't work on blu-ray .sups (yet - no ETA for that). The intent of hdsup2bdn is to create subtitles from HD-DVDs for authoring on Blu-ray disc.

I haven't tested on 1280x720p .sup files - it probably won't work!

Pelican9
27th February 2008, 19:41
Changes for v0.51

- New option: OCR export black and white only
- export 8 bit PNG (Scenarist compatible)

Change for v0.50

- New option: export png at 720p

You have to download the abc.png (http://pel.hu/down/abc.png), because it's changed from PNG24 to PNG8 too.

I'm too tired to testing it accurately so any feedback is helpful.

laserfan
27th February 2008, 22:05
Been using SUPread successfully on a few HD DVDs (thanks Pelican9) but have run into a problem. Has anyone here tried SUPread on Pan's Labyrinth (English track)? Between ST572 and 573 the time position goes from 1:09 to 00:01 as though a glitch exists in the joined evo (tried both evodemux and eac3to to join and both fail). Guess I can repair the timings but was hoping for an easier way out. :o

Also, SUPread doesn't OCR the odd bitmaps Pan's seems to use as well as on other discs. Is the Skew option explained somewhere so that I can try to tinker w/the setting and maybe OCR a bit better? :confused:

marco_ooo
27th February 2008, 23:30
Changes for v0.51

- New option: OCR export black and white only
- export 8 bit PNG (Scenarist compatible)

Change for v0.50

- New option: export png at 720p

You have to download the abc.png (http://pel.hu/down/abc.png), because it's changed from PNG24 to PNG8 too.

I'm too tired to testing it accurately so any feedback is helpful.


tested the latest version on the hd dvd from red dragon

the png are 1280x720

but the xml tell that they are 1920x1080 so scenarist give a error at the muxing point

a small part of the xml looks like this

<?xml version="1.0" encoding="UTF-8" ?>
- <BDN Version="0.93" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BD-03-006-0093b BDN File Format.xsd">
- <Description>
<Name Title="FEATURE_1_MERGED.Subpicture.10" Content="" />
<Language Code="eng" />
<Format VideoFormat="1080p" FrameRate="23.976" DropFrame="False" />
<Events Type="Graphic" FirstEventInTC="00:00:54:04" LastEventOutTC="02:00:07:03" NumberofEvents="1334" />
</Description>
- <Events>
- <Event InTC="00:00:54:04" OutTC="00:00:56:20" forced="False">
<Graphic Width="1920" Height="1080" X="0" Y="0">line0001.png</Graphic>
</Event>

Pelican9
28th February 2008, 00:31
tested the latest version on the hd dvd from red dragon

the png are 1280x720

but the xml tell that they are 1920x1080 so scenarist give a error at the muxing point


Thank you.
Fixed. The new version is available (v0.51b2)

marco_ooo
28th February 2008, 01:01
Thank you.
Fixed. The new version is available (v0.51b2)

wow thats fast :thanks:

chrkou
28th February 2008, 04:28
Pelican9: Great work!
You said something about, other languages png files, have you done anything with Greek?

Thanks.

Pelican9
28th February 2008, 10:27
Pelican9: Great work!
You said something about, other languages png files, have you done anything with Greek?

Thanks.

"I can only show you the door. You're the one that has to walk through it. ..."
:)

marco_ooo
28th February 2008, 11:12
uhmmm scenarist is doing ok now but
if i play the movie the screen goes black with the subtitle in it
as soon the sub title goes the picture comes back

the png from subtitle workshop have a white background
mayby that has to do with it

Pelican9
28th February 2008, 12:03
uhmmm scenarist is doing ok now but
if i play the movie the screen goes black with the subtitle in it
as soon the sub title goes the picture comes back

the png from subtitle workshop have a white background
mayby that has to do with it

It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?

Is the OCR unchecked anyway?

marco_ooo
28th February 2008, 12:14
i have attached a working png maybey you know what to do with it

FalconIA
28th February 2008, 12:42
I dump a sup from a bd by tsMemux 0.0.2.0 and try to save images by SUPread 0.51b3.
But the SUPread crashed at the 61th image.
Is anyone know the reason of that?
Thanks a lot.

SUP HERE (http://falconia.ca/download/TEMP/DISC1_SUB_JPN.7z)

jamos
28th February 2008, 12:59
It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?

Is the OCR unchecked anyway?

I get the same thing no transparent color just a white background. Do I need the palette check box clicked? OCR is unchecked because this is coming from a sup file.

the file you posted before above pelican works correctly with transparency although its font color was transparent when it should be white, though as you said its ugly, but you could use it to see how it is different than your current output.

http://forum.doom9.org/showpost.php?p=1105525&postcount=387

Also the .png I sent you in that email works correctly.

DELPHIINES
28th February 2008, 13:52
I have tried to create a .png file for greek,with no luck.So i have managed to find another way to bypass the whole .png file issue.I am using subtitle creator to create a sup file from srt and then i use supread to create a hd sup.The hdsup is usually 5 times larger than sdsup.aproximately 5 mg.Is this as large as a hd sup file should be?I can test it i am still waiting for to tsremux or tsmuxer to add support for the stream of supread.Anyway thanks pelican for this great tool:thanks:

jamos
28th February 2008, 22:32
Pelican do you need me to test anything for you? current version is still not working with scenarist.

thanks

Rectal Prolapse
29th February 2008, 03:36
It means that the subpicture image is not transparent.
Could anybody tell me what Scenarist needs exactly?
Transparent or white background?
Or transparent and white?


It only requires transparent background. The output from hdsup2bdn didn't help you? hdsup2bdn outputs the PNG format scenarist wants.

hdsup2bdn also preserves the index table (including the color + alpha channel) that the original HD-DVD subtitle has - so maybe Scenarist requires index 0 to be fully transparent?

Pelican9
29th February 2008, 09:07
It only requires transparent background. The output from hdsup2bdn didn't help you? hdsup2bdn outputs the PNG format scenarist wants.

hdsup2bdn also preserves the index table (including the color + alpha channel) that the original HD-DVD subtitle has - so maybe Scenarist requires index 0 to be fully transparent?
SUPread makes the same, preserves the original palette and transparency info, simply put to a png file. I'll check it again.

DELPHIINES:
Your subtitle stream has a subtitle with two windows (and some error). I've never seen this structure before that's why SUPread cannot handle it correctly.
I'm working on the solution.

jamos:
Thanks, but I've no idea what's wrong, because SUPread produce the same type of PNG which has worked before...

Pelican9
29th February 2008, 11:44
New beta.
PNG transparency fixed(?), please try with Scenarist.

DELPHIINES:
Does the 61st subtitle contain two text simultaneously?
Window positions:
id: 0 [1560,58] - [1625,309] it's a vertical at top right
id: 1 [623,915] - [1295,1018] it's a horizontal at the bottom
You can check during playback of the movie (at 00:17:00).

I'm looking for subtitle stream with multiple text at the same time.
I would like to know if DELPHIINES's subtitle is correct or not.

jamos
29th February 2008, 14:22
New beta.
PNG transparency fixed(?), please try with Scenarist.



Same issues as before in scenarist. I know that true white in scenarist is transparent, hence why we have to change the font color to slight off white in subtitleworkshop4. So for text you may want to use a bit off white and for background use true white 255,255,255?? also the font does not look good reduced to 720.

This may also be a issue with converting the bitmap to 720p have not tried a 1080p one as of yet.

Maybe we should just concentrate on the bluray ocr capabilities of this product and produce good SRT files.

jamos
29th February 2008, 16:50
ok i think the issue is that because the font breaks up (gaps in the border) when you are converting it to 720 from 1080 that the color bleeds into the background. the conversion from 1080 to 720 is just really ugly.

maybe the best bet is to focus on improving bluray sup to srt ocr conversion (I believe you said you could do this pretty easy as you said the blurays fonts are just different?) as that way we can make srts for mkvs, or export png to scenarist from the ocr converted text.

btw the scenarist tranparent color is displayed here
http://img407.imageshack.us/img407/60/palettekr1.th.png (http://img407.imageshack.us/my.php?image=palettekr1.png)

DELPHIINES
29th February 2008, 18:09
No pelican the text is always at the horrizontal bottom one or more lines of text,always.And for the sdsup created by subtitle creator 2.2 is correct because i am using it to insert sub into dvds,and it works just fine.Hdsup created by supread i dont think so because if you access it with supread its blank,it says that the subs are loaded but when u go to the image tab its blank.Anyhow i hope i am helping you with this because i am an amature.

Rectal Prolapse
29th February 2008, 18:30
Pelican9, I forgot to mention that I had to use the PNG library function that inverts the alpha channel table (ie. alpha level 0 becomes 255 and alpha level 255 becomes 0). Maybe this is the issue?

Rectal Prolapse
29th February 2008, 18:31
Jamos, what application gave you the palette info in that screenshot? Thanks!

jamos
29th February 2008, 18:40
Jamos, what application gave you the palette info in that screenshot? Thanks!

subtitleworkshop4 exported that png which works in scenarist - But that palette info is from scenarist editor reading the exported subtitleworkshop4's .png palette - now i messed with the selected color in scenarist from that screenshot it was redish before I set it to transparent. I can export the palette but i think it is a scenarist only readable file.

if you have a sample png i can load it in and show you what its pallete looks like.

Pelican9
29th February 2008, 18:44
No pelican the text is always at the horrizontal bottom one or more lines of text,always.And for the sdsup created by subtitle creator 2.2 is correct because i am using it to insert sub into dvds,and it works just fine.Hdsup created by supread i dont think so because if you access it with supread its blank,it says that the subs are loaded but when u go to the image tab its blank.Anyhow i hope i am helping you with this because i am an amature.

SUPread is handling correctly your sup now.
This subtitle stream contains a lot of vertical subtitles...

jamos
29th February 2008, 18:45
Pelican if i resize the 1080p output from your program using Photoshop to 1280x720 the font looks perfect. so it is something that supread is doing when it is converting 1080p to 720p that causes the border on the fonts to breakup.

Pelican9
29th February 2008, 18:51
Pelican if i resize the 1080p output from your program using Photoshop the font looks perfect. so it is something that supread is doing when it is converting 1080p to 720p that causes the border on the fonts to breakup.

I think I not understand exactly.
Which input you use (BD, HD DVD, SRT)?
Which output you use (FULL HD PNG, 720p PNG)?
Which png works in Scenarist and which is not work?
What is the problem when doesn't work?

The 720p text looks ugly because I haven't figure out how can I handle the border where the pixels are semi transparent

jamos
29th February 2008, 19:00
I think I not understand exactly.
Which input you use (BD, HD DVD, SRT)?
Which output you use (FULL HD PNG, 720p PNG)?
Which png works in Scenarist and which is not work?
What is the problem when doesn't work?

The 720p text looks ugly because I haven't figure out how can I handle the border where the pixels are semi transparent

BD NTSC SUP input
720p output PNG
they work with scenarist but on playback the screen goes white and blanks out the movie when a subtitle occurs.

exported subtitleworkshop4 pngs work fine with scenarist but that program does not read sup.

different issue:
ocr function for converting BD SUP to .srt has many errors.

Pelican9
29th February 2008, 19:15
BD NTSC SUP input
720p output PNG
they work with scenarist but on playback the screen goes white and blanks out the movie when a subtitle occurs.

exported subtitleworkshop4 pngs work fine with scenarist but that program does not read sup.

different issue:
ocr function for converting BD SUP to .srt has many errors.

Thanks.
Did you try the 1080p PNG in Scenarist?

chrkou
29th February 2008, 19:21
Pelican9: I am trying to add, in Tsremux, a subtitle(HD SUP), generated from Supread. But i'm geting the error message.

jamos
29th February 2008, 19:29
Thanks.
Did you try the 1080p PNG in Scenarist?

not yet will try when i get home.

jamos
29th February 2008, 22:38
white screen background still coming up even with 1080p.

jamos
29th February 2008, 22:50
ok you have to set the palette for the second color to be transparent. not sure on how you can do that but that is what is causing the background not to be tranparent. another thing is the text has no color so that needs to be fixed also most likely the text color is the same palette item as the background. when i changed the palette below it fixed the transparency but the text color was transparent also. it almost looks like you had the first item on the palette transparent but the background was not set to it.

http://img135.imageshack.us/img135/4149/palettego2.th.png (http://img135.imageshack.us/my.php?image=palettego2.png)

jamos
1st March 2008, 03:14
here is the pxml output of a palette that works with scenarist you can open it with wordpad. color 255 needs to be transparent NOTICE that Transparency xml tag is set to 0 and I would assume the background would have to use palette entry 255. A Transparency Value of 255 is fully visible.


http://www.mediafire.com/?cjv52pxtdpt

Pelican9
1st March 2008, 07:59
jamos:
Could you try to input a HD DVD subtitle stream -> export PNGs -> import in Scenarist?

Pelican9
1st March 2008, 08:05
ok you have to set the palette for the second color to be transparent. not sure on how you can do that but that is what is causing the background not to be tranparent. another thing is the text has no color so that needs to be fixed also most likely the text color is the same palette item as the background. when i changed the palette below it fixed the transparency but the text color was transparent also. it almost looks like you had the first item on the palette transparent but the background was not set to it.

http://img135.imageshack.us/img135/4149/palettego2.th.png (http://img135.imageshack.us/my.php?image=palettego2.png)

It is the original palette and transparency info in the PNG. Every palette entry has a color and a transparency info.

DonCarlos
1st March 2008, 11:00
Hi

I am trying to convert some HDDVD subtitles to Blu ray subtitles. Than I want to mux those subtitles back in the stream with Scenarist. The video is in 23.976 fps. So I think I have to also set the subtitle fps to the same. Then I use non drop frame in Scenarist so I think I have to take the same in Supread. Then I export them as an bdn file. I import them in Scenarist and mux everything together(before that I put the offset to the first subtitle time, because Sceanrist treats the first one as 0). Ok the subtitles are at the right spot but slowly get out of sync.At the end of the movie they are out of sync about 6 seconds. So what am I doning wrong? Please help me

Thanks.

By the way I tried using hdsuprip2bdn too but I don't know where this program put the output files?

Pelican9
1st March 2008, 11:18
Hi

I am trying to convert some HDDVD subtitles to Blu ray subtitles. Than I want to mux those subtitles back in the stream with Scenarist. The video is in 23.976 fps. So I think I have to also set the subtitle fps to the same. Then I use non drop frame in Scenarist so I think I have to take the same in Supread. Then I export them as an bdn file. I import them in Scenarist and mux everything together(before that I put the offset to the first subtitle time, because Sceanrist treats the first one as 0). Ok the subtitles are at the right spot but slowly get out of sync.At the end of the movie they are out of sync about 6 seconds. So what am I doning wrong? Please help me

Thanks.

By the way I tried using hdsuprip2bdn too but I don't know where this program put the output files?

Try with 24fps. Open the HD DVD sup and click Save bitmaps.
hdsup2bdn put the files to the same folder where you running it.

DonCarlos
1st March 2008, 11:27
Try with 24fps. Open the HD DVD sup and click Save bitmaps.
hdsup2bdn put the files to the same folder where you running it.

I tried it with 24fps the was my thought too, but then I get an error in Scenarist because the framerate doesn't fit to the video, so scenarist doesn't want to mux it.

Then I don`t know why hdsup2bdn does not work for me?!
Could you please gie me an example command line on how to configure it for my job?Because it does something an says processing took 20 seconds but Ican't find a file anywhere.

Thank you.

Pelican9
1st March 2008, 11:59
Then I don`t know why hdsup2bdn does not work for me?!
Could you please gie me an example command line on how to configure it for my job?Because it does something an says processing took 20 seconds but Ican't find a file anywhere.


If you are not a unix/linux man it is hard to find the help.
D:\util\Projects\SUPread>hdsup2bdn --help
Allowed options:
--help produce help message
--version print version number
--original output PNG images in the original size (suitable for
OCR)
--fullpng output 1920x1080 PNG images [DEFAULT]
--nobdnfixtimes do not divide BDN times by 1.001 (BDN output only)
--bdnfixtimes divide BDN times by 1.001 (BDN output only) [DEFAULT]
--srtfixtimes divide SRT times by 1.001 (SRT output only)
--nosrtfixtimes divide SRT times by 1.001 (SRT output only) [DEFAULT]
--framerate arg frame rate [DEFAULT: 29.97]
--input-file arg input file
--srt output SRT file
--xml output Scenarist HDMV BDN file
--forcedsubs make all subtitles forced (BDN output only)
--dropframes flag all subtitle times as drop frames (BDN output
only)
--nopng don't generate any PNGs

hdsup2bdn file.sup --xml --framerate 23.976

Pelican9
1st March 2008, 12:21
I tried it with 24fps the was my thought too, but then I get an error in Scenarist because the framerate doesn't fit to the video, so scenarist doesn't want to mux it.

I've found a bug and fixed it. The new SUPread generate the same xml as hdsub2bdn.

DonCarlos
1st March 2008, 12:40
Ok thank you very much I will try it.

jamos
1st March 2008, 16:33
jamos:
Could you try to input a HD DVD subtitle stream -> export PNGs -> import in Scenarist?

If i had one. i have no hd dvd subtitles (only bluray) if someone could link one i would try.

edit: I just tried 1080p bluray subtitles and they are fine. so its the conversion of 1080 to 720p that is causing the issue with the blank white screen.
Like I said the 720p fonts have holes in them and the font color bleeds to the background.

B4tm4n
1st March 2008, 17:04
If i had one. i have no hd dvd subtitles (only bluray) if someone could link one i would try.


Here you go.

http://www.divshare.com/download/3923820-5d3

jamos
1st March 2008, 17:55
Here you go.

http://www.divshare.com/download/3923820-5d3

Thanks Bat,

yes HD dvd subtitles work fine with scenarist in 1080p.

jamos
1st March 2008, 18:08
720p subtitles now work! although the font is a bit messed up from downconverting.

Pelican9
1st March 2008, 18:24
720p subtitles now work! although the font is a bit messed up from downconverting.

What happened?

jamos
2nd March 2008, 02:39
sorry 720 subtitles look fine but they are out of sync for 23.976 video.

jamos
2nd March 2008, 02:40
What happened?

I am not sure whatever you changed in the last release fixed it. but like i said the sync is now off.

jamos
2nd March 2008, 02:42
I've found a bug and fixed it. The new SUPread generate the same xml as hdsub2bdn.

something broke the sync for 23.976 non drop not sure what it was but they were in sync before this version. about a 12 second delay on the subtitle.

xml output from previous version of supread <Events Type="Graphic" FirstEventInTC="00:02:08:07"

output from current version from same sup file <Events Type="Graphic" FirstEventInTC="00:02:19:22"

jamos
2nd March 2008, 06:15
Pelican is there anyway we can download older versions of supread? would like to use older version to check this sync error.

edit: ok it seems that using xport i get the correct timings, the sup i was testing that had the wrong timings was demuxed with tsremux. I suggest everyone use xport to demux m2ts streams.


nice photos btw.

jamos
2nd March 2008, 07:16
ok so now I can confirm that the current version of supread works with scenarist hdmv with both bluray and hd subtitles in both 1080p and 720p.

hm10
2nd March 2008, 08:04
you can give me the data.pas that you did?
to comapre with i do you well

Pelican9
2nd March 2008, 08:18
ok so now I can confirm that the current version of supread works with scenarist hdmv with both bluray and hd subtitles in both 1080p and 720p.

Glad to hear! :)
And big thanks for the test.

you can give me the data.pas that you did?
to comapre with i do you well

You can download from my site.
Send it to me with your png and I will check it.

hm10
2nd March 2008, 10:20
You can download from my site.
Send it to me with your png and I will check it.


you mean this?
http://pel.hu/down/data.pas

i need to put my new letters in the end of the letdat (after 256) and than in the end of letdati (after 256)?

line, x pos', width, dec after, dec before (from left to right)?

(0, 0, 0, 0, 0), //1 ?

Pelican9
2nd March 2008, 11:30
you mean this?
http://pel.hu/down/data.pas

Yes.

i need to put my new letters in the end of the letdat (after 256) and than in the end of letdati (after 256)?

line, x pos', width, dec after, dec before (from left to right)?

(0, 0, 0, 0, 0), //1 ?
Yes. Yes.
You have to put your data here (line 292-):

290: (0, 0, 0, 0, 0))
291:// ,( // put the new data here (normal)
292:// (0, 0, 0, 0, 0),
293:// ...
294:// (0, 0, 0, 0, 0))
295: );

and here (line 556-):

554: (0, 0, 0, 0, 0))
555:// ,( // put the new data here (italic)
556:// (0, 0, 0, 0, 0),
557:// ...
558:// (0, 0, 0, 0, 0))
559: );


But you can put your data anywhere, I will correct it.

Sagittaire
2nd March 2008, 11:41
here the code the palette defintion in BDN xml project.

<xs:element name="Palettes" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="Palette" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>ID: Alphanumeric ColorSpace: RGB/YCrCb</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Entry" maxOccurs="256">
<xs:annotation>
<xs:documentation>(R,G,B,A) or (Y,Cr,Cb,T) See Sec 9.11.4.2.3 in BD-ROM Spec 0.89r3 for constraints</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Index" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="254"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Y_R" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Cb_G" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="Cr_B" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="T_A" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="PaletteID" type="xs:string" use="required"/>
<xs:attribute name="ColorMode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="RGB"/>
<xs:enumeration value="YCrCb"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

1) Perhaps good way to close HDDVD subtitles support
2) Perhaps better way to import palette from m2ts and export directly in xml file
3) Possible to make xml BDN file with direct srt import?

hm10
2nd March 2008, 12:21
But you can put your data anywhere, I will correct it.


just save this data file and do png?

and i can add bold style? or don't need

edit: how i do the y coordinates bottom (green in u'r picture) in big ABC letters? the bottom and the base same

Pelican9
2nd March 2008, 12:52
just save this data file and do png?

and i can add bold style? or don't need

edit: how i do the y coordinates bottom (green in u'r picture) in big ABC letters? the bottom and the base same

1. Yes
2. No, you can't add bold style.
3. No problem if the bottom and the base equals.

You can send me the files for checking before they completely ready...

mashiwen
2nd March 2008, 12:53
hoping to add "480P" transfer

Pelican9
2nd March 2008, 12:57
here the code the palette defintion in BDN xml project.
1) Perhaps good way to close HDDVD subtitles support
2) Perhaps better way to import palette from m2ts and export directly in xml file
3) Possible to make xml BDN file with direct srt import?
What can we do with this palette definition? Why did you post it?
1. ??? Why do you want to close the HD DVD subtitle support?
2. ??? SUPread doesn't do anything with m2ts files.
3. ??? srt import and xml export already work in SUPread

hm10
2nd March 2008, 13:08
1. Yes
2. No, you can't add bold style.
3. No problem if the bottom and the base equals.

You can send me the files for checking before they completely ready...

ok thx

Pelican9
2nd March 2008, 13:08
hoping to add "480P" transfer
The 720p export is not as nice as I would like to.
The 480p could be much uglier because its size.
You can use SubtitleCreator for SD subtitles.

hm10
2nd March 2008, 13:44
in hebrew write from right to left so maby i need to write the letters in the png from left to right?
because maby the write will be backward?

Pelican9
2nd March 2008, 14:33
in hebrew write from right to left so maby i need to write the letters in the png from left to right?
because maby the write will be backward?

Doesn't matter. I will cut the letters one by one.
Could you send me a hebrew srt?

hm10
2nd March 2008, 14:52
Doesn't matter. I will cut the letters one by one.
Colud you send me a hebrew srt?

take:

hm10
2nd March 2008, 16:11
when i import srt and export blu-ray the file don't need to be .pgs?
HD-DVD it's .sup no?

Pelican9
2nd March 2008, 16:23
when i import srt and export blu-ray the file don't need to be .pgs?
HD-DVD it's .sup no?

Both (BD and HD DVD) subtitle stream file use the same (.sup) extension.

hm10
2nd March 2008, 16:37
Both (BD and HD DVD) subtitle stream file use the same (.sup) extension.

ok, i remembered from older version of supread was write pgs for blu-ray subtitle import and sup for hd-dvd subtitle import
and too tsremux remux from m2ts pgs file

hero88
2nd March 2008, 16:38
Pelican9, have you tried getting in touch with Taktaal about combining forces?
Suprip is the best for ocr'ing a sup file, but it has issues with timings on some files, where Supread has no timing issues, but on a lot of subs, there are so many chars it cannot detect, but it can do everything else :)

So for the moment, I use suprip to OCR , supread to generate a sup file where the timings are working and subtitle processor to copy the timings from supreads file to suprips file.

It works but would nice to avoid the extra steps :)

hm10
2nd March 2008, 17:36
dec before it's the left side of the letter (the space)?
and
dec after it's the right side of the letter (the space)?

jamos
2nd March 2008, 19:27
Pelican can you fix output for BDM (scenarist) from a .srt file?

It almost works, but is cutting off lines of text and the colors are wrong.

Pelican9
2nd March 2008, 19:44
dec before it's the left side of the letter (the space)?
and
dec after it's the right side of the letter (the space)?

Yes. This values decrement the default space between the letters.

hm10
2nd March 2008, 19:48
Yes. This values decrement the default space between the letters.

input this or stay blank?
because the values littles... 1 pixel - max' 2 pixel

Pelican9
2nd March 2008, 21:14
input this or stay blank?
because the values littles... 1 pixel - max' 2 pixel

Leave zero. You can adjust later.

lance79
2nd March 2008, 21:20
I tried latest Supread 51b6, when opening a srt and converting to png's or use the export sup.My images look like this... Havent seen this problem before i'm sure it can be fixed :)

Pelican9
2nd March 2008, 21:30
Pelican can you fix output for BDM (scenarist) from a .srt file?

It almost works, but is cutting off lines of text and the colors are wrong.

Send me an example, because it's work here.

Pelican9
2nd March 2008, 21:31
I tried latest Supread 51b6, when opening a srt and converting to png's or use the export sup.My images look like this... Havent seen this problem before i'm sure it can be fixed :)

You can send me directly, it's more effective.

lance79
2nd March 2008, 22:13
You can send me directly, it's more effective.


ok pm sent...

Pelican9
2nd March 2008, 22:22
ok pm sent...
Problem solved. :)

jamos
2nd March 2008, 23:57
Im getting a invalid character error while trying to import a srt i sent you the file to your email. the file is a direct export using mkvextract and loads fine with subtitleworkshop.

thanks

kaag
2nd March 2008, 23:59
Hi everybody,

first of all, thanks for SUPRead, it's an incredible tool and very useful for me.

I have a little request about the "abc.png" file. Would you be able to add some new letters, especially french character such as "ê,è,ù,ô" and so on ?

:thanks:

jamos
3rd March 2008, 00:44
also it looks like supread is not handling | characters correctly in a srt file.

a | character in the .srt means new line. it seem to just truncate the rest of the text after a | character. The file I sent you for the other issue has them.

hm10
3rd March 2008, 07:08
Hi everybody,

first of all, thanks for SUPRead, it's an incredible tool and very useful for me.

I have a little request about the "abc.png" file. Would you be able to add some new letters, especially french character such as "ê,è,ù,ô" and so on ?

:thanks:

in page 17 you have explain how to add...

Pelican9
3rd March 2008, 08:29
Im getting a invalid character error while trying to import a srt i sent you the file to your email. the file is a direct export using mkvextract and loads fine with subtitleworkshop.

thanks

Your srt contains 3 characters at the beginning (EF BB BF).
It's non standard, I don't know why mkvextract put there.
Remove it and it will be OK.
But SUPread works well without remove this 3 chars, it gives only an error message about 'xxx1' is not a valid integer value.
Where did you see that invalid character error?

Pelican9
3rd March 2008, 08:36
also it looks like supread is not handling | characters correctly in a srt file.

a | character in the .srt means new line. it seem to just truncate the rest of the text after a | character. The file I sent you for the other issue has them.

I think .srt format doesn't contain any '|' character. This format use new line for new line.
The test.srt you've sent to me doesn't contain any '|' char also.

Pelican9
3rd March 2008, 08:39
Hi everybody,

first of all, thanks for SUPRead, it's an incredible tool and very useful for me.

I have a little request about the "abc.png" file. Would you be able to add some new letters, especially french character such as "ê,è,ù,ô" and so on ?

:thanks:
Why don't you do this? :)
See page 16,17.

hm10
3rd March 2008, 09:09
pelican I'm doing hebrew letters, english little and big and numbers

Pelican9
3rd March 2008, 09:30
pelican I'm doing hebrew letters, english little and big and numbers
Great!
If you want the English alphabet too, you can start with the original abc.png and put the hebrew letters into new lines.
Copy the whole 256 lines of letdat and letdati in data.pas and change the codes of the hebrew letters only. It saves a lot of work for you.
Email me for checking.

hm10
3rd March 2008, 09:46
Great!
If you want the English alphabet too, you can start with the original abc.png and put the hebrew letters into new lines.
Copy the whole 256 lines of letdat and letdati in data.pas and change the codes of the hebrew letters only. It saves a lot of work for you.
Email me for checking.

I'm not want to compliacted so i continue with my png...
i will send you when i'll finish the all the letdat

Pelican9
3rd March 2008, 09:56
I'm not want to compliacted so i continue with my png...
i will send you when i'll finish the all the letdat

OK. It's your choice.
I've just wanted to spare your times.

hm10
3rd March 2008, 10:08
OK. It's your choice.
I've just wanted to spare your times.

yes, i understand but i think that i will complicate...

hm10
3rd March 2008, 10:26
I hope when i will arive to the numbers won't be problem because the numbers connected =\ same problem was with some little english letters but succeed (hope well)

kaag
3rd March 2008, 12:41
Why don't you do this? :)
See page 16,17.

I'll have a try :)

jamos
3rd March 2008, 16:00
I think .srt format doesn't contain any '|' character. This format use new line for new line.
The test.srt you've sent to me doesn't contain any '|' char also.

maybe it was just subtitleworkshops way of representing the linefeed character.

jamos
3rd March 2008, 16:02
Your srt contains 3 characters at the beginning (EF BB BF).
It's non standard, I don't know why mkvextract put there.
Remove it and it will be OK.
But SUPread works well without remove this 3 chars, it gives only an error message about 'xxx1' is not a valid integer value.
Where did you see that invalid character error?

Yes that was the error i got 'xxx1' is not a valid integer value, I assumed it was a invalid character.

ok found the error one of the characters exported from mkvextract was invalid, someone really needs to work on mkvextract it is very buggy.

thanks.

Pelican9
3rd March 2008, 16:11
Yes that was the error i got I assumed it was a invalid character.

ok but its strange that this will load with subtitleworkshop with no errors. wonder if that is a known bug with mkvextract.

If you save the srt with Subtitle Workshop it will be good.
SubtitleWorkshop is smarter than SUPread and ignores the first 3 chars (maybe these 3 chars have some meaning, I don't know).

hm10
3rd March 2008, 16:44
pelican check pm sent you

jamos
3rd March 2008, 17:00
Pelican i am still getting Truncation of lines of text that are in the .srt that are not in the .png output for scenarist.

I emailed you a file that loads fine with supread. Please run it through supread and look at the .png output. It seems to truncate some of the second line of text in a subtitle (maybe a string length limit of supread?)

thanks

Pelican9
3rd March 2008, 19:14
Pelican i am still getting Truncation of lines of text that are in the .srt that are not in the .png output for scenarist.

I emailed you a file that loads fine with supread. Please run it through supread and look at the .png output. It seems to truncate some of the second line of text in a subtitle (maybe a string length limit of supread?)

thanks

I've done it, but have not found any problem.
Which png is wrong (line????.png)?
If you give me more specific error report I can fix it faster.

mashiwen
3rd March 2008, 22:06
supread says that all except the 457th sub image con't be read,so I can't save the sup files to bmps since I got stuck in the 457th
What should I do to the sup file?

jamos
3rd March 2008, 22:20
I've done it, but have not found any problem.
Which png is wrong (line????.png)?
If you give me more specific error report I can fix it faster.

The first png file look at that: line0001.png
from supread it says:

Quiet, Missy
Cursed Pirates

from the .srt and the .png export from subtitleworkshop4 is says:

Quiet Missy
Cursed Pirates Sail These Waters

it obviously some kind of string length issue in conversion and i am using 720p scenarist export.

Also is the font color correct it looks grey?

jamos
3rd March 2008, 22:28
supread says that all except the 457th sub image con't be read,so I can't save the sup files to bmps since I got stuck in the 457th
What should I do to the sup file?


if your using a .srt you may want to look around sub 457 in your .srt file and correct any errors you see. You can use notepad. Mkvextract seems to be buggy in exporting to .srt.

if its a sup file use xport to extract it.

Pelican9
3rd March 2008, 23:23
The first png file look at that: line0001.png
from supread it says:

Quiet, Missy
Cursed Pirates

from the .srt and the .png export from subtitleworkshop4 is says:

Quiet Missy
Cursed Pirates Sail These Waters

it obviously some kind of string length issue in conversion and i am using 720p scenarist export.

Also is the font color correct it looks grey?

For me all line is OK no cutting at all, but the first subtitle at the first run has a strange color.

Edit:
I've fixed this bug (the wrong color of the first subtitle).

jamos
4th March 2008, 00:34
For me all line is OK no cutting at all, but the first subtitle at the first run has a strange color.

Edit:
I've fixed this bug (the wrong color of the first subtitle).

hmm did you do anyting to the .srt? is it because i have visual studio 2005 installed? what options do you have checked?

Pelican9
4th March 2008, 09:23
hmm did you do anyting to the .srt? is it because i have visual studio 2005 installed? what options do you have checked?

No, I didn't. http://pel.hu/down/SUPread_options.jpg

jamos
4th March 2008, 13:24
No, I didn't. http://pel.hu/down/SUPread_options.jpg

very strange i have the same settings and get this. could this be to language difference between computers mine is english.

http://img201.imageshack.us/img201/3472/line0001qb3.th.png (http://img201.imageshack.us/my.php?image=line0001qb3.png)

Pelican9
4th March 2008, 13:35
very strange i have the same settings and get this. could this be to language difference between computers mine is english.


That was the bug what I've fixed in the latest beta.

I've worked on the PTS/DTS data of the exported BD stream (I hope tsmuxer will handle subtitle streams soon).
The latest version is v0.51b8

jamos
4th March 2008, 18:51
That was the bug what I've fixed in the latest beta.

I've worked on the PTS/DTS data of the exported BD stream (I hope tsmuxer will handle subtitle streams soon).
The latest version is v0.51b8

still truncating 2nd line of subtitle (see above) about half way using v0.51b8. Can you show me your png file running that srt file so i can see what yours looks like?


will try this on my laptop and see if its my computer..else I will just use subtitleworkshop4.

Pelican9
4th March 2008, 19:06
still truncating 2nd line of subtitle (see above) about half way using v0.51b8. Can you show me your png file running that srt file so i can see what yours looks like?


will try this on my laptop and see if its my computer..else I will just use subtitleworkshop4.

http://pel.hu/down/line0001_720p.png
http://pel.hu/down/line0001_1080p.png

hm10
4th March 2008, 19:09
pelican you succeed to see the characters?

Pelican9
4th March 2008, 19:17
pelican you succeed to see the characters?

As I wrote I'm still waiting for the character codes.

jamos
4th March 2008, 19:27
ok on completly seperate computer a laptop with windows xp sp2 get exact same results text truncation on second line of text. SO i would say there still is a issue with some kind of difference between your computer and U.S. computers with 32 bit win xp sp2. are you generating in 64bit code instead of 32bit? or something non standard with xp pro sp2 32bit?? But your output does look correct where mine is still messed up on both computers.

Pelican9
4th March 2008, 19:33
ok on completly seperate computer a laptop with windows xp sp2 get exact same results text truncation on second line of text. SO i would say there still is a issue with some kind of difference between your computer and U.S. computers with 32 bit win xp sp2. are you generating in 64bit code or something non standard with xp pro sp2 32bit??

32 bit XP SP2 is on my laptop too. The code is pure 32 bit, nothing fancy.
Every subtitle truncated or only the first one?
Only the 720p truncated or the 1080p also?

jamos
4th March 2008, 19:35
32 bit XP SP2 is on my laptop too. The code is pure 32 bit, nothing fancy.
Every subtitle truncated or only the first one?

every one that is 2 lines on one subtitle. could this be due to a character set difference between your computer and the U.S. ones? really wierd that it would do it on both computers using your latest 123.png also.

BTW I have .net runtime 3.5 not sure if that makes a difference.

hm10
4th March 2008, 19:50
As I wrote I'm still waiting for the character codes.

i said you that i wrote them, see in the picture
i think you don't see them becuase you do't have hebrew font

Pelican9
4th March 2008, 19:52
i said you that i wrote them, see in the picture
i think you don't see them becuase you do't have hebrew font

I need character codes.
It means NUMBERs.
The hebrew font not neccessary to see NUMBERs.

hm10
4th March 2008, 19:54
I need character codes.
It means NUMBERs.
The hebrew font not neccessary to see NUMBERs.

i didn't write the codes?
all the x position and the width are the codes no?
with no so what yes

Pelican9
4th March 2008, 19:57
every one that is 2 lines on one subtitle. could this be due to a character set difference between your computer and the U.S. ones? really wierd that it would do it on both computers using your latest 123.png also.

Hmm. I've just tryed on another PC, and it has truncated the text.
So, don't give up, I've started to hunt that bug.

jamos
4th March 2008, 20:00
Hmm. I've just tryed on another PC, and it has truncated the text.
So, don't give up, I've started to hunt that bug.

cool glad you could reproduce it.

you writing this with .net ? i do have .net 3.5 runtime installed

Pelican9
4th March 2008, 20:04
i didn't write the coded?
all the x position and the width are the codes no?
with no so what yes

No, you didn't.
The character code is a number, which used by the computers to represent that character.
If you make a .txt file and write 'ABC' into this file, the file will contain three numbers: 65,66,67
I have to know these numbers to make the png from the srt.

Pelican9
4th March 2008, 20:06
cool glad you could reproduce it.

you writing this with .net ? i do have .net 3.5 runtime installed

No, it isn't use .net.

hm10
4th March 2008, 20:11
No, you didn't.
The character code is a number, which used by the computers to represent that character.
If you make a .txt file and write 'ABC' into this file, the file will contain three numbers: 65,66,67
I have to know these numbers to make the png from the srt.

so you need the character codes of the hebrew letters

Pelican9
4th March 2008, 20:19
so you need the character codes of the hebrew letters

Yes, please.
you can write to the end of the lines, after the //

I've found a lot of character table on the net, but your srt doesn't fit to anyone.

hm10
4th March 2008, 20:24
i need to do the most new because i forgot some letters (final letters)
and I found the codes...
I will give you this tomorrow I hope

Pelican9
4th March 2008, 20:33
cool glad you could reproduce it.

you writing this with .net ? i do have .net 3.5 runtime installed

Hmm. I've found it. I've left the wordwrap on at the subtitle textbox.
Please enlarge the window of SUPread a little or download the new beta.
You didn't mentioned that the problem is on the screen too, not only in the png.

jamos
4th March 2008, 21:31
Hmm. I've found it. I've left the wordwrap on at the subtitle textbox.
Please enlarge the window of SUPread a little or download the new beta.
You didn't mentioned that the problem is on the screen too, not only in the png.

I never even looked at the image preview screen just was on the .SRT tab with the default size the application opened in.

But yes once i maximized the program it now works thanks. I will start using the new beta so i do not have to worry about it.

Pelican9
4th March 2008, 22:35
Good. :)

jamos
5th March 2008, 00:35
http://pel.hu/down/line0001_720p.png
http://pel.hu/down/line0001_1080p.png

I am still getting Grey subtitles instead of white like you have above, you have any clue why? every sub is that way.

Pelican9
5th March 2008, 08:28
I am still getting Grey subtitles instead of white like you have above, you have any clue why? every sub is that way.

Option/SRT/Color
Set 255 to white.

jamos
5th March 2008, 15:33
Option/SRT/Color
Set 255 to white.

Doh..thanks!

Pelican9
5th March 2008, 15:54
Doh..thanks!

But I haven't seen any HD DVD or BD with bright white subtitle. Maybe better to watch if not so bright.

hm10
5th March 2008, 17:33
pelican I sent you
checked it?

Pelican9
5th March 2008, 18:14
pelican I sent you
checked it?

I've received it, but haven't understand yet.

hm10
5th March 2008, 18:20
I've received it, but haven't understand yet.

what you aren't understanding? =\

jamos
6th March 2008, 01:39
But I haven't seen any HD DVD or BD with bright white subtitle. Maybe better to watch if not so bright.

aye 244 works good..225 was a bit dark.

hm10
6th March 2008, 15:17
I've received it, but haven't understand yet.

what the problem?

B4tm4n
8th March 2008, 03:08
Thank you Pelican9, with your supread and XolocoTuxmasters tutorial, I 've started to make my own BD-9 discs with dual audios and subs.

Cheers.

jacobshek
8th March 2008, 04:02
Hihi, I just curious, would it be possible that SUPread support unicode or double byte character png generation soon? Seems it only support single byte character png generation(english) now.
Cheers

lance79
8th March 2008, 09:07
Hi i've just tested the latest tsmuxer thats support sup format muxing.When i'm creating the sup from srt eveything looks fine in supread, but when muxed and playing back on my ps3 as avchd disc, every space between letters got black blocks or lines.Is this a problem with my settings or something that needs to be fixed?


greetz,


lance

Pelican9
8th March 2008, 09:49
Hi i've just tested the latest tsmuxer thats support sup format muxing.When i'm creating the sup from srt eveything looks fine in supread, but when muxed and playing back on my ps3 as avchd disc, every space between letters got black blocks or lines.Is this a problem with my settings or something that needs to be fixed?

First, download the latest version of the .exe and the abc.png.
Export the BD stream and read back the exported BD stream in SUPread and check the subtitles. What do you see? Is it correct or not?

Hihi, I just curious, would it be possible that SUPread support unicode or double byte character png generation soon? Seems it only support single byte character png generation(english) now.
Cheers
Everything is possible. :)
I'll check it what can I do, because the hebrew letters needs it too.

lance79
8th March 2008, 10:08
[QUOTE=Pelican9;1109913]First, download the latest version of the .exe and the abc.png.
Export the BD stream and read back the exported BD stream in SUPread and check the subtitles. What do you see? Is it correct or not?

Okay i got latest version of supread & abc.png, i'm using default options.

This what i get when i open the sup in supread.

http://img381.imageshack.us/img381/9778/supsamplefq9.jpg

Pelican9
8th March 2008, 10:11
Okay i got latest version of supread & abc.png, i'm using default options.

This what i get when i open the sup in supread.

It's a bug.
I'm hunting...

Edit:
Download the new SUPread and check it please.

lance79
8th March 2008, 11:12
It's a bug.
I'm hunting...

Edit:
Download the new SUPread and check it please.

okay i'll try later got to go work now :S

lance79
8th March 2008, 16:54
okay i'll try later got to go work now :S

Seems to be fixed!! :) thx

Kurtnoise
8th March 2008, 18:54
@Pelican: why not using the same SubRip code for the OCR part and matrices to store each caracters ?

because I get a lot of missing caracters with the current code, although you have made a great tool. I'm using of course the last abc.png file...

Pelican9
9th March 2008, 09:25
@Pelican: why not using the same SubRip code for the OCR part and matrices to store each caracters ?

because I get a lot of missing caracters with the current code, although you have made a great tool. I'm using of course the last abc.png file...

I don't know the author of suprip but if he wants to share his code and knowledge...

Pelican9
9th March 2008, 09:27
I've got a request about BD stream export.
Somebody wants to create 720p subtitle stream. I would like to know how important this feature (how many people want to use this).
Vote now! :)

Kurtnoise
9th March 2008, 14:12
I don't know the author of suprip but if he wants to share his code and knowledge...
SubRip...not suprip. ;)

You can find the sources here : http://sourceforge.net/projects/subrip


I've got a request about BD stream export.
Somebody wants to create 720p subtitle stream. I would like to know how important this feature (how many people want to use this).
count on me...

B4tm4n
9th March 2008, 14:37
I've got a request about BD stream export.
Somebody wants to create 720p subtitle stream. I would like to know how important this feature (how many people want to use this).
Vote now! :)

I would be interested. :)

Cheers.

lance79
9th March 2008, 15:43
I would be interested. :)

Cheers.

Ist'n there a option for 720p in supread already??

B4tm4n
9th March 2008, 16:05
Ist'n there a option for 720p in supread already??

There is an option to export png in 720p, but I'm assuming this is for srt to sup export.

jamos
9th March 2008, 22:55
i cannot get 720p sups created by supread to work with tsmuxer 1.4.5b. Symptom is notihing on playback.

jamos
9th March 2008, 22:57
There is an option to export png in 720p, but I'm assuming this is for srt to sup export.

no its for scenarist not sups, i cant get 720p sups working could be supread or could be tsmuxer.

B4tm4n
9th March 2008, 22:57
i cannot get 720p sups created by supread to work with tsmuxer 1.4.5b. Symptom is notihing on playback.

Same here.

Pelican9
9th March 2008, 23:53
Hey guys! Think!
There is no 720p BD export yet.
The exported stream is 1920x1080 that's why you cannot see anything in the movie if you make smaller resolution video (the subtitle is there but outside of the screen).
That's why I've asked here about this feature.
So, it seems I have to make it. :)

B4tm4n
10th March 2008, 00:00
There is no 720p BD export yet.
The exported stream is 1920x1080 that's why you cannot see anything in the movie if you make smaller resolution video (the subtitle is there but outside of the screen).
That's why I've asked here about this feature.
So, it seems I have to make it. :)

:thanks:

jamos
10th March 2008, 00:32
Hey guys! Think!
There is no 720p BD export yet.
The exported stream is 1920x1080 that's why you cannot see anything in the movie if you make smaller resolution video (the subtitle is there but outside of the screen).
That's why I've asked here about this feature.
So, it seems I have to make it. :)

It would be greatly appreciated, then I will update tutorial on how to make AVCHD disks from MKV/BD sources and add supread area.

Thanks for all of your hard work.:thanks:

pattana
10th March 2008, 16:26
i have 2 questions about Tsmuxer and Supread
1. i can not use Supread with my language(Thai) it can create but i can't read it.
2. How to mux sup files from the first question to exist m2ts file or replace some track of subtitles.
Thank you Pelican9 for great apps like Supread and Tsmuxer. :helpful::helpful::helpful:

jamos
11th March 2008, 14:53
Hey guys! Think!
There is no 720p BD export yet.
The exported stream is 1920x1080 that's why you cannot see anything in the movie if you make smaller resolution video (the subtitle is there but outside of the screen).
That's why I've asked here about this feature.
So, it seems I have to make it. :)

Please make it..we love you!

crazyfool30
11th March 2008, 20:25
I'm trying to import an srt file to convert to sup, but every file i try i get a message saying "'' is not a valid integer value" and even though if i open the file in notepad the first line is always "1", the first line in the srt tab in supread is "1" and i don't have the option to export sup.

Please help

jamos
11th March 2008, 21:51
I'm trying to import an srt file to convert to sup, but every file i try i get a message saying "'' is not a valid integer value" and even though if i open the file in notepad the first line is always "1", the first line in the srt tab in supread is "1" and i don't have the option to export sup.

Please help

open the .srt with notepad and then save it and then try to load it with supread. else you will have to use a hexeditor and remove the first 3 hex chars. (seems to be a bug with mkvextract). you also can open it with subtitleworkshop 2.51 it seems to ignore those chars. and save it as a srt I think that removes the funky stuff also.

crazyfool30
11th March 2008, 22:02
Thanks Jamos, tried copying the text to a new document and saving as .srt file in notepad but still no luck. The hexedit trick seems to work and is probably less work than opening in notepad and saving again.

Suppose i'll still have to wait for 720p output before i can use any subs on a AVCHD disc. Can't wait though, encoding anime just to hardcode subs can be a real pain!

Edit: Also, what are the best settings in options for output to use with your mkv to avchd guide?

jamos
12th March 2008, 00:11
Edit: Also, what are the best settings in options for output to use with your mkv to avchd guide?


what options? if you mean using megui, I use xolos bd config and set the bitrate to match what size i want usually for a dts film i use dvd-9 as dts sound files are much bigger than ac3 ones else with ac3 i use a small enough bitrate to fit on a dvd-5. I use Bincsoft Bitrate Calulator to calculate bitrate dont forget to enter in the bitrate of the audio output too. I add about 6 minutes to the total time of the movie to cover the extra space needed for the BD structure. And I always use 720p as using 1080p on dvd is stupid because the bitrate just isnt big enough to be good.

hm10
12th March 2008, 13:59
pelican what I sent you sunday was good?

chros
12th March 2008, 16:28
@Pelican: why not using the same SubRip code for the OCR part and matrices to store each caracters ?

because I get a lot of missing caracters with the current code, although you have made a great tool. I'm using of course the last abc.png file...
I don't know the author of suprip but if he wants to share his code and knowledge...
I think it would be the best if you don't want to create another/same OCR engine like SubRip, but allow to mux the HD subs into vobsub idx/sub format (and vica versa) !!!
That way we can use SubRip later ...

What do you think, Pelican ?

And thanks for your work !

crazyfool30
12th March 2008, 18:38
what options? if you mean using megui, I use xolos bd config and set the bitrate to match what size i want usually for a dts film i use dvd-9 as dts sound files are much bigger than ac3 ones else with ac3 i use a small enough bitrate to fit on a dvd-5. I use Bincsoft Bitrate Calulator to calculate bitrate dont forget to enter in the bitrate of the audio output too. I add about 6 minutes to the total time of the movie to cover the extra space needed for the BD structure. And I always use 720p as using 1080p on dvd is stupid because the bitrate just isnt big enough to be good.

I meant the options in Supread, don't worry though, did a test on a 1080 sample file on an AVCHD and the output from Supread worked great!

Is there any other software that can convert the 1080p .sup to 720p or 480p .sup instead of waiting for an updated version of supread?

jamos
12th March 2008, 18:46
I meant the options in Supread, don't worry though, did a test on a 1080 sample file on an AVCHD and the output from Supread worked great!

Is there any other software that can convert the 1080p .sup to 720p or 480p .sup instead of waiting for an updated version of supread?

usually pelicans very quick he may be away..:eek:

manusse
12th March 2008, 19:27
@chros
but allow to mux the HD subs into vobsub idx/sub format (and vica versa) !!!
That way we can use SubRip later ...


You must take into account that idx/sub format is defined only for SD subtitles. This means resizing the subtitle to SD before converting it. This is already possible for HD-DVD subtitles using SubtitleCreator. You may want to give it a try.

Cheers
Manusse

Glorioso
12th March 2008, 20:36
I cant make it to accept Portuguese special characters, but Subtitleworkshop can export it to PNG correctly, can i make it a SUP file then?

Atak_Snajpera
12th March 2008, 21:32
abc.png does not contain polish characters: ą , ć , ę , ł , ń , ś , ż , ź

Will you be able to fix that?

jamos
12th March 2008, 21:44
I cant make it to accept Portuguese special characters, but Subtitleworkshop can export it to PNG correctly, can i make it a SUP file then?

do not think supread supports import of scenarist files, though I am sure pelican could make it do so.:)

Glorioso
12th March 2008, 21:48
do not think supread supports import of scenarist files, though I am sure pelican could make it do so.:)

That would be nice...:rolleyes:

Atak_Snajpera
13th March 2008, 22:16
abc.png does not contain polish characters: ą , ć , ę , ł , ń , ś , ż , ź

Will you be able to fix that?

@Pelican
I've made missing Polish characters. Please check your private messages

chros
14th March 2008, 11:04
You must take into account that idx/sub format is defined only for SD subtitles. This means resizing the subtitle to SD before converting it. This is already possible for HD-DVD subtitles using SubtitleCreator. You may want to give it a try.
Hhmmm.... I didn't know that.
I'll give it a try, thanks ...

And what about BluRay sup-s ?

jamos
14th March 2008, 13:03
Hey pelican I know you are busy with bdedit but have you tried to get the 720p sups working in supread? pm or email me if you need help testing.

Thanks

iSkywalker
15th March 2008, 05:42
Thanks Pelican9 for your great SUPread. I love it very much. I tried to convert the traditional chinese subtitle SRT to SUP and use SUP on tsMuxeR. However, the traditional chinese subtitle cannot be displayed correctly. Can you please kindly make SUPread support traditional chinese subtitle?

Glorioso
15th March 2008, 10:17
Here is all the missing Portuguese characters:
à è ò ã õ ç ê ô â

And i think this shoul be done too:

Atak_Snajpera
15th March 2008, 11:45
ê ô â Coud you use bigger font size because I'm not sure how the symbol above letter looks like?

Glorioso
15th March 2008, 13:27
Coud you use bigger font size because I'm not sure how the symbol above letter looks like?


ô â ê

:thanks:

Atak_Snajpera
15th March 2008, 13:52
Peace of cake!

tenkai
15th March 2008, 18:08
Hey :)
Everytime i rip the Subs with xport and try to convert em with Subread i get a bunch of salad at the end.. many characters are bad or just missing, mainly ä ö ü characters but not only em, many others too. Is there a way of fixing that? Or some kind of workaround?

thx

act
15th March 2008, 18:53
Would be nice if someone could make scandinavian letters too:

ä Ä - ö Ö - æ Æ - ø Ø - å Å


Thanks for the good program by the way!

Warrex
16th March 2008, 10:28
Add maybe german ones:

ä Ä, ü Ü, ö Ö, ß

Atak_Snajpera
16th March 2008, 11:24
ü Ü, ö Ö,

Have you checked abc.png???

ß
I think this can be replaced by "ss"

Glorioso
16th March 2008, 11:25
Atak found a new job! :)


How are we going on 720p sup export?:thanks:

bibikul
16th March 2008, 12:44
Add maybe romanian (rum) ones:


ă â î ş ţ
ă â î ş ţ
Ă Â Î Ş Ţ
Ă Â Î Ş Ţ

:thanks:

Kurtnoise
16th March 2008, 13:59
@Pelican & Rectal Prolapse: any chance to share the sources of your tool ? I would like to introduce SUP file support as input in SubRip and have a similar tool for my Linux box...

PM me if you like.

Thanks...

napalm-187
16th March 2008, 18:40
hi
i need help

i have demuxxed an hd dvd and make with the right tools an BD compatible stream

i use supread to make bd compatible subs from hd dvd

i have make an sub for the kingdom, this was an forced sub, demuxxed with latest evodemux

i muxxed this with tsmuxxer but in powerdvd its enabled but i see no subtitels

in other players mpc, zoomplayer the subs are enabled but there is no subtitle


use zp or mpc homecinema and laod and seperate sub from disk is working, but the muxxed sub is not working
where is the prob?

can anyone give me a step by step way to convert hd dvd subs to blu ray?

wich settings i must use in supread

many thx

chros
16th March 2008, 21:40
@Pelican & Rectal Prolapse: any chance to share the sources of your tool ? I would like to introduce SUP file support as input in SubRip and have a similar tool for my Linux box...
SubRip support is very good news !!!
Thanks Kurtnoise, we are waiting for it !

jamos
17th March 2008, 02:20
Atak found a new job! :)


How are we going on 720p sup export?:thanks:

Yes would love to see 720p sup support!

Warrex
17th March 2008, 07:04
Have you checked abc.png???


I think this can be replaced by "ss"

Ah, my bad. Had problems with OCR and german umlauts. Then only looked at the beginning of abc.png and saw no ä/Ä. ß could also be replaced by ss, yes. With small letters its not really correct however Would be cool if you could add it too if it is not too much of a hassle.

Thanks for looking into it in the first place!

PHD_1976
17th March 2008, 07:47
Guys, has anyone tried to get BDN file and pngs from Pirates of the caribbean - at world's end for Scenarist HDMV?

I demuxed sup stream using xport 0.96+, but SupRead couldn't detect any letters and exported blank PNGs.

I tried several times with xport and tsremux - all the same.
Tried with another movie - worked fine!

I can post a samle if needed.

jamos
17th March 2008, 19:44
Pelican have not heard from you in a couple of weeks any progress on 720p sups?

thanks,
Jamos

jamos
17th March 2008, 19:45
Guys, has anyone tried to get BDN file and pngs from Pirates of the caribbean - at world's end for Scenarist HDMV?

I demuxed sup stream using xport 0.96+, but SupRead couldn't detect any letters and exported blank PNGs.

I tried several times with xport and tsremux - all the same.
Tried with another movie - worked fine!

I can post a samle if needed.

sounds like you may have the wrong subtitle stream maybe? I would try using TSmuxer it gives you detailed info on subtitles and audio tracks to demux.

napalm-187
17th March 2008, 20:01
have anyone an idea what i make wrong with the hd dvd subs to working in BD with tsmuxxer?


i have tried all options in supread but is nothing working

Rectal Prolapse
17th March 2008, 20:10
Napalm check PM...

By the way, I may be wrong about tsremux not working with .sup files - You'll need to look around the tsremuxer thread!

jamos
18th March 2008, 00:39
Napalm check PM...

By the way, I may be wrong about tsremux not working with .sup files - You'll need to look around the tsremuxer thread!

well there is two options on subtitles in tsremux and like you I thought it only supports BD subtitles for the supread option. I know also if you do not choose the supread option with bluray subtitles on export then you will just get a raw stream that supread cannot understand.

pelle412
18th March 2008, 04:06
You must take into account that idx/sub format is defined only for SD subtitles. This means resizing the subtitle to SD before converting it. This is already possible for HD-DVD subtitles using SubtitleCreator. You may want to give it a try.

Cheers
Manusse

How do you do that? Whenever I open a .SUP file from a BluRay disc (unsure if they are similar to HD-DVD) SubtitleCreator just crashes.

cakuhnen
18th March 2008, 06:42
Great job Pelican, its possible to add SD output like 480i, 480p, 576i
formats to this program?
Can u add this ç and Ç to abc.png?
For 720x576 u need to write in BDN XML format 576i, Scenarist Blu-ray doesnt accept 576p

Thanks

PHD_1976
18th March 2008, 07:27
sounds like you may have the wrong subtitle stream maybe? I would try using TSmuxer it gives you detailed info on subtitles and audio tracks to demux.

I've tried to demux every subtitle stream from POTC3 - SupRead recognized letters in none of them.
I'll post a sample later.

napalm-187
18th March 2008, 07:46
ok
thx

but can anybody telle me what i must do step for step

to convert an hd dvd sub to BDsup with supread?
thx in advanced

Pelican9
18th March 2008, 11:21
Sorry guys, no more internet here, so I can check this thread once a week.
New SUPread/BDedit/EVOdemux available.
(If I can upload them)

B4tm4n
18th March 2008, 12:22
Sorry guys, no more internet here, so I can check this thread once a week.
New SUPread/BDedit/EVOdemux available.
(If I can upload them)

If you have access to the internet, you could use http://www.divshare.com to upload the files.

Glorioso
18th March 2008, 14:19
Sorry guys, no more internet here, so I can check this thread once a week.
New SUPread/BDedit/EVOdemux available.
(If I can upload them)

New features for SUPRead? 720 output and special characteres? Pleeeeeaase!!!!:thanks:

hm10
18th March 2008, 14:29
pelican I sent you the file with right codes

and with you can't add becasue you don't have comp'/internet maby you'll can explain me how to add?
or i must the source code and you don't give him =\

thx

pattana
18th March 2008, 14:31
if i can add my characters will be great .. Thank you for very nice apps.

Atak_Snajpera
18th March 2008, 14:53
pelican I sent you the file with right codes

and with you can't add becasue you don't have comp'/internet maby you'll can explain me how to add?
or i must the source code and you don't give him =\

thx

It would be alot easier if every character was in separate file, named with right code. Using this method everybody could implement national characters without asking Pelican for that.

hm10
18th March 2008, 15:03
It would be alot easier if every character was in separate file, named with right code. Using this method everybody could implement national characters without asking Pelican for that.

I did what he wanted me...
i did all the characters in png and did data file...

Glorioso
18th March 2008, 15:56
It would be alot easier if every character was in separate file, named with right code. Using this method everybody could implement national characters without asking Pelican for that.


Good ideia!

hm10
18th March 2008, 16:00
Good ideia!

I'am sorry but i do only my charahcters (hebrew) because i don't know any more chars' (only english but pelican already did)
with they can give me another language chars' i will do it...
(png and then the data file) but how i add them to supread?

Atak_Snajpera
18th March 2008, 18:57
but how i add them to supread?
Exactly! We can't do it at the moment. That's why I vote for mentioned modifications so everybody could add them without asking Pelican for anything. For example I made Polish and partially Portuguese characters and I still have to wait for Pelican's move.

B4tm4n
18th March 2008, 19:06
I think the new version is up on his site.

hm10
18th March 2008, 19:31
Exactly! We can't do it at the moment. That's why I vote for mentioned modifications so everybody could add them without asking Pelican for anything. For example I made Polish and partially Portuguese characters and I still have to wait for Pelican's move.

oh i didn't understand you, i thought you said that i need to do something alone and don't ask pelican everytime =\

Glorioso
18th March 2008, 20:44
I think the new version is up on his site.

What Site? And the new ABC?

B4tm4n
18th March 2008, 21:25
What Site? And the new ABC?

http://pel.hu/down/

hm10
18th March 2008, 21:30
What Site? And the new ABC?

which new abc? the new abc can only be with new hebrew chars' because i did alone and sent to pelican and no others chars'...

laserfan
18th March 2008, 21:47
FWIW I have been having a hellacious time trying to get good OCR out of SUPread and today found SupRip which has not been mentioned here for a couple of months.

Apparently written by Taktaal (see earlier in this thread)

http://x0r.ch/suprip/

Works wonderfully well for HD sup files, nice OCR & GUI, very few errors--easy to fix them. Sorry to hijack your thread Pelican9 but there seems to be some confusion here perhaps between SubRip and SupRip; obviously very different.

Adub
18th March 2008, 21:58
Good find.

jamos
19th March 2008, 01:26
Do not see the 720 sup export on latest version.

napalm-187
19th March 2008, 07:07
hi

so i get from the hd dvd sub compatible subs for bd
i export this and use the xml file for scenarist
after import in scenarist i got wanings by 10-20 timestamps caraktar cant displayed.

i muxx the bd and the muxxprogress dont finnish

the m2ts is finnish but i get no pls and clpi file

after remuxxing with tsmuxxer the bd dont play in powerdvd

any ideas

Rectal Prolapse
19th March 2008, 16:19
FWIW I have been having a hellacious time trying to get good OCR out of SUPread and today found SupRip which has not been mentioned here for a couple of months.

Apparently written by Taktaal (see earlier in this thread)

http://x0r.ch/suprip/


laserfan: I mentioned suprip a few times - but probably in the Blu-ray subtitle thread instead. :)

Rectal Prolapse
19th March 2008, 16:21
@Pelican & Rectal Prolapse: any chance to share the sources of your tool ? I would like to introduce SUP file support as input in SubRip and have a similar tool for my Linux box...

PM me if you like.

Thanks...

Here is a sendspace link to the source code to hdsup2bdn 1.04. If you do use the HD-DVD bitmap parsing, add my name in a small space of the credits, please. :thanks:

http://www.sendspace.com/file/id6igi

If it expires, let me know, I can update the link if needed.

Functions of interest:

SupToPNG
HDDVDRenderImage
HDDVDSupGetPalette
HDDVDSupGetAlpha

The code for parsing the subtitle commands (almost identical to the DVD sup commands) are in the main() function.

I use the Boost 1.34 C++ libraries, zlib, and the PNG C library. Only zlib and PNG sources are included - boost is a bit too big. :)

Rectal Prolapse
20th March 2008, 21:03
Pelican9, there appears to be a bug in the scenarist HDMV output. It generates an extraneous blank PNG file at timecode 00:00:00 (scenarist doesn't need it, and you still need to enter the proper subtitle offset time anyways - maybe make it an option?), and also the timestamp in the text file has an extra zero. Scenarist doesn't like that. :)

hm10
22nd March 2008, 14:40
Someone can give me supread v0.46b or more older
I need to check someting
thx

hm10
22nd March 2008, 23:02
I am trying to export in subtitle workshop beta 4.2 "BDN Export" but have only 1 PNG and in the XML write all the events (png/lines)
can i fix it?
anyone have this problem?
THX

jamos
24th March 2008, 12:53
Pelican9, there appears to be a bug in the scenarist HDMV output. It generates an extraneous blank PNG file at timecode 00:00:00 (scenarist doesn't need it, and you still need to enter the proper subtitle offset time anyways - maybe make it an option?), and also the timestamp in the text file has an extra zero. Scenarist doesn't like that. :)

In tc on first subtitle has to be atleast 3 frames so putting in a dummy subtitle does not work Pelican, please take out this feature. You have to enter in a offset in Scenarist that is normal and the way it should be we do not need a dummy subtitle. If you do keep it in make sure that the first tc of the subtitle is 00:00:00:03 and the same in the header for the FirstEventInTC but this will through all the subtitles off by 3 frames.

thanks,
Jamos

Rectal Prolapse
24th March 2008, 17:27
Ah, didn't know that jamos, thanks for the extra clarification!

hm10
25th March 2008, 13:42
they found how to set transparent background to the png that export without sws 4.2 beta?

Pyth0n
28th March 2008, 21:31
How do I generate 720p SUP file?

And the abc.png is missing ~ characters like ã õ. These are used here in Brasil. Could you add support to them?

Thanks Pelican.

Pestana
29th March 2008, 14:52
Hello
The prog works great to my Scenarist :)
Can you add the support to ã and ~ etc, Please!!?

Many Thanks

guru1968
30th March 2008, 21:45
@ Pelican9

have you seen any devil-/hell- or alike movies recently?

why I am asking?
- seems you don't like 666:

------------665----------
015DC508: PTS=12516182 (00:56:54,703)
015DC510: PCS (13) state: 2
015DC530: WDS0 (0A) id: 0 -
015DC547: PDS (4F8) 254 palettes
015DCA4C: ODS0 (EFF) 120 x 52
015DD958: END
015DD95D: PTS=12542156 (00:56:56,705)
015DD965: PCS (0B) state: 0
015DD97D: WDS0 (0A) id: 0 -
015DD994: END
------------666----------
015DD999: PTS=125496A4 (00:56:57,039)
015DD9A1: PCS (13) state: 2
015DD9C1: WDS0 (0A) id: 0 -
015DD9D8: PDS (4E9) 251 palettes
015DDECE: ODS0 (95E8) 1135 x 64
015E74C3: END
------------667----------
015E74C8: PTS=1254B3F8 (00:56:57,122)
015E74D0: PCS (13) state: 1
015E74F0: WDS0 (0A) id: 0 -
015E7507: PDS (4E9) 251 palettes
015E79FD: ODS0 (95E8) 1135 x 64
015F0FF2: END
015F0FF7: PTS=12588A65 (00:56:59,916)
015F0FFF: PCS (0B) state: 0
015F1017: WDS0 (0A) id: 0 -
015F102E: END
------------668----------

that results in:

666
00:56:57,039 -->
Gather round. Gather round, everybody.

667
00:56:57,122 --> 00:56:59,916
Gather round. Gather round, everybody.


the 666's missing end-time makes divXMux to refuse muxxing...

maybe you could add some default fade-off time in such cases?

greetz,
guru


p.s.
as suprip does not use the correct fade-off times at all, it does not have an issue here...
(for me, suprip's fade-off times are always earlier than the fade-in times... wonder how this ever will work:
666
00:56:57,038 --> 00:56:56,971
Gather round. Gather round, everybody.

667
00:56:57,122 --> 00:56:57,115
Gather round. Gather round, everybody.
)

p.p.s.
could this by all means be no bug but a feature???
- if you look at the fade-in time of 667 which is just a few milliseconds after the fade-in of 666 it may be legal to just skip the fade-off time (if this would be the same as the fade-in of the very next subtitle...)
just a thought...
on the other hand: 667 is exactly the same text, maybe that is an authoring bug or something...

Robertus
30th March 2008, 22:09
it's impossible increase in supread "save in sub idx" ?

with it, the subs are perfectly, or not ?

bokkoman
2nd April 2008, 18:53
I would love to see 720p .sup output aswell.
So if you could make that in the next release it would be awesome! :thanks: :thanks:

Also a think I would like to see as an option or standard, is when exporting subs, that lines are centered.
When there is 1 line, it is centered. When there are 2 or more lines, it is centered in the middle of the video, but the text outline is left.
I would rather have it always centered.
I hope you get what i mean :p

Well, thanks for this supread tool anway :D

lance79
5th April 2008, 16:13
@Pelican9

Hi, i was wondering if there is any progress on adding 720p sup support into supread it would be verry usefull for some people, including me :)

greetz,

lance

Atak_Snajpera
5th April 2008, 22:06
TSmuxer author is working on it :)

jamos
5th April 2008, 23:29
any status on a fix to supread to not put in a dummy subtitle for Scenarist? or at least a link to a older version download? Have not heard from Pel in 3 weeks now.

Rectal Prolapse
6th April 2008, 08:08
jamos, perhaps you can remove the lines in the xml file as a workaround?

Glorioso
6th April 2008, 09:30
TSmuxer author is working on it :)

SRT Import?

kurt
6th April 2008, 18:32
Is there a way to detect forced subs in a supfile (demuxed with tsmuxer, source BD). I think Departed uses them: english subs are hard encoded in some scenes and there are only 3 subfiles. 1 english, 1 german (more lines than the english one ) and subtitles for deaf people...

the goal would be to find out these passages and to convert them to srt...

for DVDs this was quite easy with subresync :)

Atak_Snajpera
6th April 2008, 20:59
SRT Import?

Roman's post:
Yes. I have started to improve subtitles support in tsMuxR.
I plan the following:
1. Add .srt subtitles support and ability to convert srt to PGS
2. Add dvd subtitles support and ability to convert srt to SUB.
3. Ability to convert SUB to PGS
4. Add HD-DVD subtitles, ability to convert HD-DVD subtitles to DVD SUB or PGS.
5. Add other txt based subtitles

Glorioso
6th April 2008, 21:13
Roman's post:

Taht's almost too good to be true.... only misses the aspect ratio convertion!

Pestana
6th April 2008, 23:53
Please add support to luange like Portuguese, the supread works so nice to Scenarist :) , please add support to ~ and ç etc

Many Thanks

Rectal Prolapse
7th April 2008, 16:25
Is there a way to detect forced subs in a supfile (demuxed with tsmuxer, source BD). I think Departed uses them: english subs are hard encoded in some scenes and there are only 3 subfiles. 1 english, 1 german (more lines than the english one ) and subtitles for deaf people...

the goal would be to find out these passages and to convert them to srt...

for DVDs this was quite easy with subresync :)

I *think* suprip has a "preview forced subs" option or something like it. I can't remember if latest supread has that feature or not.

jamos
10th April 2008, 00:40
jamos, perhaps you can remove the lines in the xml file as a workaround?

yes was doing that but I did find a copy of .51 that i had in another directory. That version works good.

nautilus7
10th April 2008, 13:43
Hi, I want to convert Galapagos HD DVD English subs to srt. Unfortunately, SUPread can't OCR them correctly. I tried different option with no luck.

I uploaded them here (http://www.sendspace.com/file/o4wbju), if anyone wants to help me find some proper options for SUPread.

XhmikosR
10th April 2008, 15:26
Do the following:

1) Use SUPread and save as HD-DVD Format
2) Load the new sup to subtitle creator (Tools-->Manipulate SUP)
3) Save as idx/sub
4) Use Subrip

It did worked for me.
Here is the first episode OCRed.

nautilus7
10th April 2008, 15:34
OK, thanks.

Snowknight26
15th April 2008, 03:51
Do the following:

1) Use SUPread and save as HD-DVD Format
2) Load the new sup to subtitle creator (Tools-->Manipulate SUP)
3) Save as idx/sub
4) Use Subrip

It did worked for me.
Here is the first episode OCRed.

Where is the option to save it as sub?
Also, how would you open the idx in subrip? Everytime I tried opening the idx from subtitlecreator, it said invalid header or something to that effect.

XhmikosR
15th April 2008, 13:24
The option is in the options tab.

http://img227.imageshack.us/img227/6586/supsj1.th.gif (http://img227.imageshack.us/my.php?image=supsj1.gif)

In subrip press the open ifo button and load the idx you've made with SubtitleCreator.

http://img227.imageshack.us/img227/1606/subea0.th.gif (http://img227.imageshack.us/my.php?image=subea0.gif)

If you have problems it might be something wrong with the sup file and that's why you can't open it.

manusse
15th April 2008, 19:11
Where is the option to save it as sub?
In case you're asking for SC, just save it as VobSub (a sub/idx pair of file will be created).
Also, how would you open the idx in subrip
Be sure to use subrip and not suprip ;)

Cheers
Manusse

XhmikosR
15th April 2008, 19:22
Subrip is able to open the idx if you save it first with SubtitleCreator.
At least it worked for me that way.

Also there is the alternative of SupRip (http://exar.ch/suprip/) but it is still "buggy".

Snowknight26
15th April 2008, 23:09
I meant to ask save as sub in SubtitleCreator. Can only save it as sup/idx from the 'Manipulate SUP' window.

The way I'm doing it is.. demuxing the subs with eac3to, export to SUP with SUPRead (whats the point of this step?), open with SubtitleCreator under the 'Manipulate SUP' form, save as .idx, then open with SubRip. However, every 3rd line of subtitles or so, I get the form that says "This subtitle item can't be processed." in caps. Also tried opening the .sup

I've tried SupRip before, and its great, but the only problems I've noticed are that it has a hard time distinguishing between I and L (lowercase). That, and it puts spaces in strange places, even with the settings changed.

Taktaal
16th April 2008, 11:39
I've tried SupRip before, and its great, but the only problems I've noticed are that it has a hard time distinguishing between I and L (lowercase). That, and it puts spaces in strange places, even with the settings changed.

Can you post a .sup file you're having issues with? Especially the spaces part, I know about the problem with l/I and am working on it but can always use more test cases.

XhmikosR
16th April 2008, 13:10
I also have a problem with SupRip. Even though the problem with the durations is fixed, I see that in the srt some lines are missing.

Here is the sup file extracted with tsremux and the srt after the OCR with SupRip.

http://www.mediafire.com/?jtgiqmkskrg

If you need anything else tell me.

Also there are spaces after some letters, but the language is not English (it's Greek) and I don't know if you can do anything about it.

saint-francis
23rd April 2008, 17:59
Here's one SUPread can't handle. It's a BD .sup.

http://www.mediafire.com/?rmg9zgsm4wd

saint-francis
28th April 2008, 14:45
Here's another one.

http://www.mediafire.com/?vl39wjblzjl

Ansuer
11th May 2008, 13:53
I'm trying to get SupRead working with english subtitles. It doesn't seem to be understanding the OCR, all I get is lots of periods, question marks, and colons.

I've entered the text manually and ocr'ed all, but it's still doing the same.

Can someone guide me on what skew/level/space settings they use? Or how I can "teach" this tool english?

Taktaal
11th May 2008, 20:11
saint-francis, I fixed the problem with the spanish subtitle. The japanese one is a bit more difficult because I'll have to change quite a bit to support top-to-bottom characters, but I started working on that.

saint-francis
12th May 2008, 02:13
saint-francis, I fixed the problem with the spanish subtitle. The japanese one is a bit more difficult because I'll have to change quite a bit to support top-to-bottom characters, but I started working on that.

Woah nice. Thanks. Now does suprip convert DB .sup to HD DVD .sup like supread does? Honestly that's all I use supread for.

dorati
19th May 2008, 20:34
For smoothly playback I change my HD-Content from 23.976 fps to 25 fps (PAL-Speedup).
Is there a Solution to correct the time of the suptitles (SRT or SUP), because later this step, there shown at the wrong position.

vlada
19th May 2008, 21:52
dorati> I think thar SubtitleCreator might be able to correct the SUP subtitles and any subtitle editor (Subtitle Workshop, SubtitleTool CZ, SubRip etc.) I can think of can easily speed up SRT subtitles.

dorati
20th May 2008, 15:43
@vlada
thx for replay - i will test.

Is there a programm, with shows me only "Forced" - Suptitles in a SUP File from HD-Movies ??

I think,
- SUPread has no Option for this.
- SupRip has this Option - but still not work correct

kurt
20th May 2008, 16:38
indeed, better support for forced subs would be much appreciated :)

hubblec4
20th May 2008, 17:29
hi pelican9

i hope you have time to fix a small problem.

the subtitle in the movie "War" (german RC2). i can load it but i cant export to hd-dvd.sup.
when try this, supread crash.

i load up the bluray.sup so you can have a look at the file.

http://rapidshare.com/files/116308493/deu_hg-org.rar.html

thanks for your programm...


hubble

Taktaal
21st May 2008, 14:39
@vlada
thx for replay - i will test.

Is there a programm, with shows me only "Forced" - Suptitles in a SUP File from HD-Movies ??

I think,
- SUPread has no Option for this.
- SupRip has this Option - but still not work correct

Can you upload the .sup file somewhere? I still need a good example of a subtitle that has working forced subs.

Good = not a movie that claims to have forced subtitle but I end up finding out that they are either hardcoded into the video stream or only display if all subtitles are on.

dorati
21st May 2008, 17:31
http://www.megaupload.com/?d=AXH19YVC
Suptitle 1 and 21 must be forced.

michael1971
11th June 2008, 21:19
Hello Pelican, your program is very great :)
Can you insert the french character in the matrice =>

â à é è ë ê ï î ô ç €

Thank you very very much !!!!

jangai
5th July 2008, 17:18
Hello Pelican, your program is very great :)
Can you insert the french character in the matrice =>

â à é è ë ê ï î ô ç €

Thank you very very much !!!!

Oh yes yes... + 1 !!!

When can we hope a new "abc.png" (and corresponding SUPread) ??

:thanks:

version1
13th July 2008, 11:45
Hi,
3 french in this post, one more with me :goodpost:

thanks for the job

hope a new abc...(french character)

:thanks:

jj666
21st July 2008, 00:16
Seem to have a critical error when starting Suprip 0.96:

arrayLine is 24 instead of 26

Void .ctor(System.String)

at SupRip.SubtitleFont..ctor(String fontname)
at SupRip.MainForm..ctor()
at SupRip.Program.Main(String[] args)

Is there any way to fix?

Cheers,

-jj-

Taktaal
21st July 2008, 01:05
Weird, that shouldn't happen.

Go to Start->Run, then enter "%appdata%\suprip" (without the "")

In the directory that then comes up, delete the default.font.txt file.

Seem to have a critical error when starting Suprip 0.96:

arrayLine is 24 instead of 26

Void .ctor(System.String)

at SupRip.SubtitleFont..ctor(String fontname)
at SupRip.MainForm..ctor()
at SupRip.Program.Main(String[] args)

Is there any way to fix?

Cheers,

-jj-

saint-francis
21st July 2008, 05:50
Taktaal would it be possible for you to add the functionality in suprip to convert BD .sup to HDDVD .sup? It seems like development has ceased on supread and this format conversion is an important part of it for in turn converting the subtitles to vobsub format. You appear to be doing a really good job of keeping your tool up to date. Thanks at any rate for being so responsive to issues people are having.

jj666
21st July 2008, 06:42
Problem fixed, thanks Taktaal :-)

-jj-

Taktaal
21st July 2008, 07:48
Taktaal would it be possible for you to add the functionality in suprip to convert BD .sup to HDDVD .sup? It seems like development has ceased on supread and this format conversion is an important part of it for in turn converting the subtitles to vobsub format. You appear to be doing a really good job of keeping your tool up to date. Thanks at any rate for being so responsive to issues people are having.

The problem is that it's relatively easy to decode a file format by reverse engineering it, but a lot harder to encode something in a valid enough way that official players don't choke on it.

If I ever implement sup encoding, it's going to be to the Bluray format anyway since the HD-DVD is dead...

saint-francis
21st July 2008, 09:25
The problem is that it's relatively easy to decode a file format by reverse engineering it, but a lot harder to encode something in a valid enough way that official players don't choke on it.

If I ever implement sup encoding, it's going to be to the Bluray format anyway since the HD-DVD is dead...

All very valid points you make. The issue is that there is no other way to get BD .sup to vobsub format. Maybe SubtitleCreator will someday support the conversion like it does now for HDDVD .sup but until then if we want to retain things like placement of subtitles we need to convert BD .sup to HDDVD .sup first. I guess this will just be a waiting game for those like me who aren't programmers and can't write the code themselves. Honestly the best solution IMO for the end user would be for vobsub to be able to work with BD just like it can with DVD but vobsub development has slowed to a crawl. It's great that supread can keep the resolution of HD subtitles but we are still limited by what the OCR technology can give us and the way that such subtitles don't retain the original placement of subtitles which are placed in unconventional places on the screen. None the less I applaud you in being the only person developing HD subtitles ripping technology.

Greif
26th July 2008, 21:32
@Taktaal, I get the following error message when trying to OCR a sup file. I'm using 0.96

"Exception of type 'SupRip.SubtitleImage+EndOfImageReachedException' was thrown."

at SupRip.SubtitleImage.ColumnContainsPixels(Byte[,] image, Int32 column, Int32 limit, Double angle, Int32 y1, Int32 y2)
at SupRip.SubtitleImage.FindLetters()
at SupRip.SubtitleImage.CreateSubtitleArray()
at SupRip.SubtitleFile.GetSubtitleImage(Int32 n)
at SupRip.MainForm.ImageOCR(Int32 n, Boolean reportUnknownCharacter)
at SupRip.OcrThread.Run()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Daiz
5th August 2008, 20:49
Since this thread is huge, I'm sorry if my question has been answered earlier, but here I go:

Is there any way to create a Blu-ray compatible SUP file from BDN XML and 8-bit PNGs without using Scenarist or other complete Blu-ray authoring programs?

I have generated the BDN XML and PNG images with an experimental program and would like if I could turn the BDN XML and images into a SUP fast & easy.

EDIT: Man, I just noticed this:
The problem is that it's relatively easy to decode a file format by reverse engineering it, but a lot harder to encode something in a valid enough way that official players don't choke on it.

If I ever implement sup encoding, it's going to be to the Bluray format anyway since the HD-DVD is dead...

So apparently a fast way doesn't exist, then. Oh well. Any ideas would be nice though.

Octo-puss
25th August 2008, 06:19
Hey Pelican, I wanted to give you one enormous thanks for SUPread! Just discovered it yesterday after a few hours of trying to figure out a way to get subs from the source (never managed for DVDs) :)

LowDead
26th August 2008, 12:33
*Scratching my hair* How come Supread don't show the subs? I have tried both demuxed subs from eac3to and evodemux with same result. I have also tried open the sups in subtitle creator where they show correctly (although the evodemux one didn't show all lines).

I only get, in the SRT tab, it says line 1, line 2 and so on.. and in image tab it shows just a black image.

I tried to save a new sup with subtitle creator and when i open it in subread it shows up correctly but the export to bd sup don't show at all on the final bd..

Any ideas?

//LD

Adub
26th August 2008, 16:24
You have to OCR the sub for you to actually see the text instead of "Line 1", "Line 2", etc.

LowDead
26th August 2008, 16:50
thanks for reply, but that doesn't work either.. still notging shows up.

LowDead
27th August 2008, 15:27
I have done some tests now.. I got it to show the lines correctly in "image" tab. When pressing OCR it recognizes only dots in every line, and when i use OCR all it crashes at 49%.

The only way I can get a visible image is if i have OCR checked in options. Also I have to close and restart the program for the options to work.

rica
30th August 2008, 14:56
Hi guys, sorry but haven't completed reading whole thread:

Where is this abc.png and what is this?

XhmikosR
30th August 2008, 15:20
It's an image needed by SUPread to OCR the .sup file.
But SupRip (http://exar.ch/suprip/) is by far better, at least for non English languages.

http://thumbnails6.imagebam.com/1225/0a638812244245.gif (http://www.imagebam.com/image/0a638812244245)

rica
30th August 2008, 15:25
Thanks a lot :thanks:

Octo-puss
30th August 2008, 16:18
What is OCR?

XhmikosR
30th August 2008, 16:21
http://en.wikipedia.org/wiki/Optical_character_recognition

.sup are bitmaps and you want to convert them to text based subtitles like .srt.

rica
30th August 2008, 16:37
XhmikosR,

I've tried Suprip. Even i don't select "auto OCR" i get nonsense characters, nothing else.
What is missing?

http://img84.imageshack.us/img84/334/supripuo0.th.png (http://img84.imageshack.us/my.php?image=supripuo0.png)


_ _ _ _ _ _

XhmikosR
30th August 2008, 16:52
XhmikosR,

I've tried Suprip. Even i don't select "auto OCR" i get nonsense charecters, nothing else.
What is missing?

http://img84.imageshack.us/img84/334/supripuo0.th.png (http://img84.imageshack.us/my.php?image=supripuo0.png)


_ _ _ _ _ _
You have to "teach" the program to recognize each character, so you have to enter the characters manually the first time.

http://thumbnails9.imagebam.com/1225/80bd9d12249483.gif (http://www.imagebam.com/image/80bd9d12249483)

rica
30th August 2008, 17:05
Do you mean copy-past from character map letter by letter?

XhmikosR
30th August 2008, 17:52
No, I mean that you have to input the correct character for each red character using your keyboard or the character map (it's easier and faster with your keyboard though). This just has to be done only the first time.

rica
30th August 2008, 18:05
:thanks: i got it :)

EDIT:
The first time it took 10 minutes; seems difficult but it is really easy; thx again..

stottle
4th September 2008, 06:08
Can someone give me a hand?

I'm trying to convert some HD DVDs to Bluray. I'm using eac3to to demux the streams, saving the english subtitles as .sup files. I then want to put the movie back together as bluray using tsmuxer. I don't understand what the differences are, but I understand there are difference between an hddvd .sup file and a bluray pgs (which also usually is demuxed with a .sup extension). I tried loading the hddvd .sup into supread and exporting, but while the subtitle was listed as an option in TMT, selecting it didn't actually show the subtitles. tsmuxer did load the new file, which didn't work for the original hddvd .sup.

I'm assuming this is simply operator error, but I'm not sure what to change. Would someone mind posting a screen capture of the correct settings for converting hddvd .sup to bluray?

Thanks

saint-francis
4th September 2008, 12:59
All you do is load the BD .sup like you would any file in any gui, then select BD as the output type. Then just hit export. Remember to set your desired destination or supread will just put the newly made .sup (it will have the same name as the original but it will also say HD DVD) in the folder where supread resides. If you have done these steps then you did it right and it's your playback equipment that's the cause of the problem.

rica
7th September 2008, 11:58
Hi guys.

Today i converted 24p video and audio to 25p PAL with eac3to using "-speedup" option.

Everything went fine.

This time i had to convert the subtitle to 25 fps as well; used SUPread.

Options > BD > 25 fps and exported and later converted to srt.

Nothing has changed in timecode. (For test i even made a 29.97 srt as well; timecode never changed)

The right timecode must have been:

1) 00:00:51 > 00:00:53

2) 00:00:56 > 00:00:58

3) 00:00:59 > 00:01:03

........

Check:

http://img118.imageshack.us/img118/9643/subtitlebo6.th.png (http://img118.imageshack.us/my.php?image=subtitlebo6.png)

(original is on the right.)

And, any ideas?



_ _ _ _ _

rica
10th September 2008, 21:32
And, any ideas?


OK the method which i followed to fix:


Demux raw video, audio and subtitle files with eac3to.

Speedup 24 p video and audio to 25 fps with eac3to using "-speedup" option.

Now we will try to speedup 24 fps subtitle to 25 fps:

Convert sup to srt using SupRip. (SUPread /or SubRip is another alternative but i choose SupRip since it is a clever program which you can teach him all characters easily)

http://exar.ch/suprip/

Syncronizing will be made by Subtitle Workshop:

http://www.urusoft.net/download.php?lang=1&id=sw4

Subtitle Workshop will not recognize the srt created by SupRip (SUPread /or SubRip srts will be recognized though)

http://img225.imageshack.us/img225/7279/001xj3.th.png (http://img225.imageshack.us/my.php?image=001xj3.png)

so you have to make srt recognized by Subtitle Workshop;

Open srt and save it as "ANSI" txt:

http://img339.imageshack.us/img339/7017/002uf7.th.png (http://img339.imageshack.us/my.php?image=002uf7.png)

Now we can see now it can be known by Subtitle Workshop and we load subtitle:

http://img339.imageshack.us/img339/8198/003wa0.th.png (http://img339.imageshack.us/my.php?image=003wa0.png)

On this stage we make a TS, muxing video and audio files with TSMuxer which we use on Subtitle Workshop.

Main menu > Video > Open and you will see the video on the screen(you don't see video here on this SS since it's using OverlayMixer, i think)

http://img225.imageshack.us/img225/4594/004rk5.th.png (http://img225.imageshack.us/my.php?image=004rk5.png)

The final step:

Edit > Timings > Adjust > Adjust subtitle and set first spoken points on the first and last subtitle lines:

http://img393.imageshack.us/img393/3108/005xq3.th.png (http://img393.imageshack.us/my.php?image=005xq3.png)

And save as "*.srt"

Revized and original:

http://img225.imageshack.us/img225/231/006ts1.th.png (http://img225.imageshack.us/my.php?image=006ts1.png)

Now you can remux the TS file with this revized srt to BD or m2ts with TSMuxer; it will convert the srt to PGS.

(Or keep srt with the same name of ts under the same folder and watch with MPC-HT.)


_ _ _ _ _

Ulf
26th September 2008, 11:23
I am currently converting my HD-DVD's to Blu-ray. In order to fit the content on a single layer DVD I downscale the movie to 720p and encode with x264. Everything is straightforward, except for downscaling of the subs. I extract the bitmaps to PNG format using SUPread. These are 8-bit PNG's with variable transparency (set in the tRNS chunk of the PNG files).
Neither Photoshop CS nor GIMP reads the full transparency data. I have found that ImageMagick (convert.exe) actually can convert the PNG's to 32-bit (with transparency preserved) and scale them down to 1280x720. Another command-line program, Pngnq, can convert the 32-bit PGN's back to 8-bit with variable transparency.
I now have a BDN XML file (720p) and a set of 8-bit PNG's. Does anyone know a way doing the opposite of what SUPread does, i.e. to create a "sup" subtitle file from a XML file and PNG's?
I have access to Scenarist and I made one Bly-ray compilation with the 720p content. The end result is perfect with subtitles looking as the original (no jaggy outlines). A much easier (and less costly) way would be to use the free tsMuxeR. The only obstacle is the lack of a program that can create a "sup" file from BDN XML file and PNG's. Can anyone help?

rica
29th September 2008, 20:55
I am currently converting my HD-DVD's to Blu-ray. In order to fit the content on a single layer DVD I downscale the movie to 720p and encode with x264. Everything is straightforward, except for downscaling of the subs. I extract the bitmaps to PNG format using SUPread. These are 8-bit PNG's with variable transparency (set in the tRNS chunk of the PNG files).
Neither Photoshop CS nor GIMP reads the full transparency data. I have found that ImageMagick (convert.exe) actually can convert the PNG's to 32-bit (with transparency preserved) and scale them down to 1280x720. Another command-line program, Pngnq, can convert the 32-bit PGN's back to 8-bit with variable transparency.
I now have a BDN XML file (720p) and a set of 8-bit PNG's. Does anyone know a way doing the opposite of what SUPread does, i.e. to create a "sup" subtitle file from a XML file and PNG's?
I have access to Scenarist and I made one Bly-ray compilation with the 720p content. The end result is perfect with subtitles looking as the original (no jaggy outlines). A much easier (and less costly) way would be to use the free tsMuxeR. The only obstacle is the lack of a program that can create a "sup" file from BDN XML file and PNG's. Can anyone help?

Thanks for the post.
I guess SubtitleWorkshop4 will accept your xml.
Please feedback.

Ulf
30th September 2008, 10:59
Thanks for the post.
I guess SubtitleWorkshop4 will accept your xml.
Please feedback.

SubtitleWorkshop4 will not take a xml file as input. I want to create a sup file from a xml bdn file and PNG's.
Scenarist accepts the xml.

I have made a batch file that makes conversion from 1080p to 720p easy:

@REM Conversion of BDM XML file and PNG files to 720p.
@REM Drop folder(s) with PNG files and BDN XML file in this BAT-file.
@REM Use "SUPRead" to save the bitmaps as PNG from a "sup" subtitle file.

@REM ImageMagick ("convert.exe") has the ability to read the tranparency data
@REM stored in an indexed PNG file (saved in the tRNS chunk in a PGN file).
@REM Bitmaps saved from ".sup" by "SUPread" contains the transparency,
@REM but this information is disregarded by GIMP, Photoshop etc.
@REM ImageMagick opens the file and uses the tranparency data to form a 32 bit
@REM PNG file with variable transparency. The script below scales the image to
@REM 1280x720 and saves it. Observe! "pngnq.exe" can only do a proper conversion
@REM if the downscaling in ImageMagick is done by the simpler downscaling
@REM command "-scale 1280" instead of "-resize 1280".
@REM ImageMagick: http://www.imagemagick.org

@REM "pngnq.exe" converts the PNG file to an indexed 8-bit PNG file with
@REM full transparency retained (saved in the tRNS chunk).
@REM "pngnq.exe" requres the following DLLs: libpng13.dll and zlib1.dll
@REM pngnq: http://pngnq.sourceforge.net/
@REM libpng13.dll: http://www.cybertherial.com/pngnq/libpng13.dll
@REM zlib1.dll: http://www.dll-files.com/dllindex/dll-files.shtml?zlib1

@REM "sed.exe" is the GNU sed editor.
@REM sed.exe: http://sourceforge.net/projects/gnuwin32/

@REM The resulting files can be imported as BDN assets in Sonic Scenarist.
@REM -------------------------------------------------------
set CONV_EXE=C:\Program Files\ImageMagick\convert.exe
set PNGNQ_EXE=C:\Program Files\pngtools\pngnq.exe
set SED_EXE=C:\Program Files\GnuWin32\bin\sed.exe
@REM -------------------------------------------------------
set CONV_OPT=-scale 1280
set SED_OPT="10,12d;s/"1080p"/"720p"/g;s/"1920"/"1280"/g;s/"1080"/"720"/g"
@REM -------------------------------------------------------
cls
:NEXT
IF EXIST "%~f1\_CONVERTED.txt" goto :SKIP
FOR %%a IN ("%~f1\*.png") DO (
start "CONVERT" /belownormal /b /w "%CONV_EXE%" "%%a" %CONV_OPT% "%%a.png"
start "PNGNQ" /belownormal /b /w "%PNGNQ_EXE%" -f "%%a.png"
del /q "%%a"
del /q "%%a.png"
copy "%%a-nq8.png" "%%a"
del /q "%%a-nq8.png"
)
FOR %%a IN ("%~f1\*.xml") DO (
"%SED_EXE%" %SED_OPT% "%%a" > "%~f1\720p_subtitles.bdn.xml"
)
echo Files converted to 720p > "%~f1\_CONVERTED.txt"
:SKIP
shift
IF NOT "%1"=="" goto :NEXT
@REM -------------------------------------------------------


Save the code as a .BAT file and modify the path' to the executables if needed.

rica
30th September 2008, 11:27
Thanks for the tutorial.

rica
30th September 2008, 12:08
@Ulf,


I think there is an easier method of converting to 720p.

Just SUPRead is enough.

Options > Image > tick 720p

Savebitmaps > Export sup

You will have a 720p sup.

Ulf
30th September 2008, 21:34
@Ulf,


I think there is an easier method of converting to 720p.

Just SUPRead is enough.

Options > Image > tick 720p

Savebitmaps > Export sup

You will have a 720p sup.

Sure, I tried that first. The quality of the bitmaps that SUPRead produces by downscaling to 720p are barely usable.

Do a test and compare! Beware that you have to convert the resulting PNG's to 32-bit by:

convert.exe line0001.png line0001.png

before you actually can compare the results in a image viewer program (Photoshop, GIMP, ...).

rica
1st October 2008, 14:10
Sure, I tried that first. The quality of the bitmaps that SUPRead produces by downscaling to 720p are barely usable.

Do a test and compare! Beware that you have to convert the resulting PNG's to 32-bit by:

convert.exe line0001.png line0001.png

before you actually can compare the results in a image viewer program (Photoshop, GIMP, ...).

Yes, you are right. (I haven't noticed since i use srt.)

C:\>convert.exe -scale 1280 line0002.png out.png

1280*720 created by SUPRead:

http://img70.imageshack.us/img70/7140/line0002supreadmp7.th.png (http://img70.imageshack.us/my.php?image=line0002supreadmp7.png)http://img70.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

1280*720 created by ImageMagick:

http://img70.imageshack.us/img70/566/outiv3.th.png (http://img70.imageshack.us/my.php?image=outiv3.png)http://img70.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

Then what would be the command line to scale the whole pngs
inside the folder created by SUPRead? Or shall i have to use the script you gave?


_ _ _ _ _ _

Ulf
1st October 2008, 21:50
Then what would be the command line to scale the whole pngs
inside the folder created by SUPRead? Or shall i have to use the script you gave?


Use the the script. Save it as "720p.bat" and drop the whole folder created by SUPRead on it. The resulting files can be imported in Scenarist to a 720p project.

rica
2nd October 2008, 15:39
Use the the script. Save it as "720p.bat" and drop the whole folder created by SUPRead on it. The resulting files can be imported in Scenarist to a 720p project.

I tried; it worked very well but the question is i can't find out the output files :); when i look into the folder which i drop, i just see a text file which is written "Files Converted to 720p" ? (720p_subtitles.bdn.xml)

And i belive you will find the way of using it with a free tool?

Edit: I inserted libpng13.dll and zlib1.dll in the pngtools folder?

Ulf
2nd October 2008, 18:58
Well, I don't know what happened for you Rica. Have you installed the executables needed and put the right path for them in the .BAT file?

And, yes, libpng13.dll and zlib1.dll should be in the same folder as pngnq.exe. The converted files are created in the same folder that contained the original PNG's (with the same name as the originals). It works fine for me (I'm running WinXP).

rica
2nd October 2008, 20:52
Well, I don't know what happened for you Rica. Have you installed the executables needed and put the right path for them in the .BAT file?

And, yes, libpng13.dll and zlib1.dll should be in the same folder as pngnq.exe. The converted files are created in the same folder that contained the original PNG's (with the same name as the originals). It works fine for me (I'm running WinXP).

Yes, everything has been made as you described.
More; ex 1080p pngs have dissapeared.
Tried to get an SS, maybe it gives an idea:

http://img129.imageshack.us/img129/3435/supfd2.th.png (http://img129.imageshack.us/my.php?image=supfd2.png)http://img129.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

http://img387.imageshack.us/img387/1393/sup02hu9.th.png (http://img387.imageshack.us/my.php?image=sup02hu9.png)http://img387.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)


Vista 32 ultimate btw...
_ _ _

rica
3rd October 2008, 00:15
OK,
i've found my mistake; i should have loaded "static.exe" instead of "dll.exe"

Now it is still converting and i see 1080ps are returning to 720ps gradually:

http://img129.imageshack.us/img129/9629/sup03oq6.th.png (http://img129.imageshack.us/my.php?image=sup03oq6.png)http://img129.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

rica
3rd October 2008, 00:36
OK, thanks, i have a folder which includes 720p pngs.
Next?

rica
3rd October 2008, 22:29
I hope pelican will have a look at those posts and update his SUPRead some day.

rica
4th October 2008, 00:45
I was wondering where this xml is?
Ulf reminded me to tick "Scenarist exp" box under options of SUPread; he said otherwise xml creation doesn't work.
And finally i got xml.
Thanks to Ulf again.
Hope it is gonna work with a free software someday.

alc0re
2nd December 2008, 05:33
@ Ulf or anyone else...

If someone doesn't have access to scenarist....am I SOL right now if I want to create a .sup file for Bluray muxing with TSRemux that is downscaled/resized to 1280x720?

Also, how do I get forced subtitles to work on an AVCHD disc?

Octo-puss
2nd December 2008, 09:51
Pardon the OT, but does SOL mean shit out of luck? :)

Adub
2nd December 2008, 19:46
@Octo-puss
Yes.

alc0re
3rd December 2008, 06:57
If anyone is interested and doesn't know it yet, there is a solution to this problem.

If you don't have access to Scenarist (like me), TSMuxer now accepts .srt files as input and will convert these to a Bluray compliant PGS/.sup subtitle stream.

So, I rip my Bluray using eac3to, including the .sup file I want.

I then ocr the .sup file with SupRip. Save as .srt. Spell check/fix ocr mistakes.

Then open up TSMuxer and add your video/audio/.srt subtitle stream. Set subtitle options in the subtitls tab. I set my font to Arial at a size of 40 for 720p video, with a bottom pixel offset of 36.

Set output to Create Bluray disk. That's it. Subs look great on standalones/PS3.

I apologize if this is old news to anyone, but I thought I'd share what I found just in case this helps anyone that was anxiously awaiting the export .sup as 720 option in SupRead.

laserfan
3rd December 2008, 15:23
...I then ocr the .sup file with SupRip. Save as .srt. Spell check/fix ocr mistakes.

Then open up TSMuxer and add your video/audio/.srt subtitle stream. Set subtitle options in the subtitls tab. I set my font to Arial at a size of 40 for 720p video, with a bottom pixel offset of 36....

I apologize if this is old news to anyone...Doesn't hurt to clarify!

I might add that this is useful also for re-positioning subs on a 'scope display i.e. if original subs bleed-into the "black bar" at the bottom, you can use Offset to re-position them for a 2.35:1 screen presentation.

jetli123
19th December 2008, 22:15
Hi,
I'm trying to extract the english subtitle from BD Fearless. If I use TSmuxer or ea3to and extract the subtitle .sup from the Director's Cut version which resides in 00153.m2ts file, then SUPread and/or SupRip would read the file fine. However, if I try extracting from the Theatrical version which resides in multiple *.m2ts files (ex: 00134.m2ts+00123.m2ts+***), either program would fail when reading the new .sup file:

SUPread:
Access violation at address 0054EC83 in module 'SUPread.exe'. Write of address FFFFFF68.

SupRip:
Object reference not set to an instance of an object.

Void LoadBluraySup(System.IO.FileStream)

at SupRip.SubtitleFile.LoadBluraySup(FileStream fs)
at SupRip.SubtitleFile.LoadFromSup(String supfile)
at SupRip.SubtitleFile..ctor(String fileName)
at SupRip.MainForm.LoadSubtitleFile(String fileName)


Have anyone try extracting subtitle from multiple *.m2ts files?

Here is the sup file generated from 2 .m2ts files (via eac3to)
http://www.100megs16.com/~thlphoto/test/00134_00123.sup


thx

jetli123
21st December 2008, 01:13
any help?

nautilus7
21st December 2008, 02:44
It's sticky anyway!

Don't expect much support from Suprip developer, though.

jetli123
21st December 2008, 02:57
It's sticky anyway!

Don't expect much from support from Suprip developer, though.


wow, so friendly ... happy holiday to you too :)
:thanks:

saint-francis
21st December 2008, 04:44
wow, so friendly ... happy holiday to you too :)
:thanks:

What it boils down to is that the developer doesn't spend as much time on the forum and in development as some users of his software might like. So since you posted a sample you will just need to be patient for a little while until he gets a chance to look at it. BD subtitles are still frustrating as we still have no comprehensive tools to deal with them, I understand. So we all need to be patient and wait for the technology to mature with time. This is something we can't rush as we aren't developing the software. We can only be grateful for what we already do have; and for free too!

ukendt
21st December 2008, 08:08
Peeps!!!!!!!
Behave....

jetli123
21st December 2008, 10:38
What it boils down to is that the developer doesn't spend as much time on the forum and in development as some users of his software might like. So since you posted a sample you will just need to be patient for a little while until he gets a chance to look at it. BD subtitles are still frustrating as we still have no comprehensive tools to deal with them, I understand. So we all need to be patient and wait for the technology to mature with time. This is something we can't rush as we aren't developing the software. We can only be grateful for what we already do have; and for free too!


Thanks, I didn't mean to rush. I'm just surprise that I can't find any comment on extracting subtitle from combined .m2ts files, that's all. I'm very happy that SUPread work with single .m2ts file. I googled this topic but didn't find much ...

Sorry if I offend anyone ... thanks for this wonderful software!

princenigma
5th January 2009, 02:34
Hi, I try "Home Alone (1900) Blu-ray" with supread 0.52b2,in image tab all line is empty
Are there any solutions ?
Thanks :)

Taktaal
5th January 2009, 20:02
A Bluray from 1900? Are you sure you really bought a movie and weren't tricked with a victorian era round mirror? :D

Anyway, can you try it with Suprip in my sig? If that doesn't work either, please send me the .sup file so I can have a look at it.

princenigma
6th January 2009, 09:55
Sorry . Wrong typing , it's 1990
Ok I will send the sup tomowwow. Thanks for the replay :)

princenigma
6th January 2009, 14:48
HI,Taktaal . I tried Suprip can show the sup file content correctly.
this is the sup file which Supread fail to read any img content
http://www.filesavr.com/hocn1

PassThePeas
12th January 2009, 02:07
Thanks pel for your great tool.

I'm having an issue with hd-dvds subtitles converted to blu-ray when played on a stand-alone player (sony BDP-S350). The problem is seen with subs extracted with EVO-Demux or eac3to from 2 different HD-DVDs then converted to Blu-Ray subs, before remuxing to BD with tsMuxer.

As soon as the first sub appears, the screen goes black except for the subs bounding box (readjusting as each sub comes along).
The subs play just fine with software player (tmt or power dvd).
I tried to compare the subs to others extracted directly from BDs, and the only thing i came up with seems to be the palette : when i display it in supread, the first color is red (whereas it comes black with other subs). Extracting PNGs produces the sames result (red background for "bad displaying" subs and black for others).

Has anybody else experienced the same issue ? In that case, has any solution been found ?
Any clue as to resolving the issue (or finding a workaround) ?

Thanks in advance for any answer as I have about ten HD-DVDs I'd like to convert to BD ;)

Thunderbolt8
14th January 2009, 18:53
there are sometimes movies for which Supread doesnt recognize/display any subs on screen. dont know why, but the subs are fine, as they work with suprip without problems for example. guess its the same problem princeenigma posted about above^^
is there any way to fix that? heres a sample:
http://www.sendspace.com/file/hju6si

SomeJoe
18th January 2009, 21:53
I'm having an issue with hd-dvds subtitles converted to blu-ray when played on a stand-alone player (sony BDP-S350). The problem is seen with subs extracted with EVO-Demux or eac3to from 2 different HD-DVDs then converted to Blu-Ray subs, before remuxing to BD with tsMuxer.

As soon as the first sub appears, the screen goes black except for the subs bounding box (readjusting as each sub comes along).
The subs play just fine with software player (tmt or power dvd).
I tried to compare the subs to others extracted directly from BDs, and the only thing i came up with seems to be the palette : when i display it in supread, the first color is red (whereas it comes black with other subs). Extracting PNGs produces the sames result (red background for "bad displaying" subs and black for others).

Has anybody else experienced the same issue ? In that case, has any solution been found ?
Any clue as to resolving the issue (or finding a workaround) ?

Thanks in advance for any answer as I have about ten HD-DVDs I'd like to convert to BD ;)

I have seen the same issue under the same conditions (converting sub stream extracted with eac3to.exe from an HD-DVD and converted to a BD sub stream with SUPread, and played back on a Sony BDP-S350).

I don't know a whole lot about the structure of subs, so I haven't investigated why this happens, but I suspect some problem with the color palette as you have discovered.

My only work-around has been to use SUPread to convert the HD-DVD sub stream to an .srt using the OCR function. After that, you can bring the .srt into TSMuxer and it will render a BD subtitle stream according to the font settings on the Subtitles tab. The OCR in SUPread is pretty good, but I have run into one HD-DVD (Disturbia) that the OCR was terrible because the character spacing on the original HD-DVD subs was very tight. It required several hours of editing before I had a good .srt.

PassThePeas
19th January 2009, 03:05
Thanks for your answer SomeJoe. I came to the same conclusion (OCR with supread then muxing srt with tsMuxer), but since I'm french, OCR'd subtitles editing can be quite painfull (é,è,ê mixed up, strange spaces between numbers, etc ...).

As far as I could understand from the different threads I've read, palette information seems to be stored at some point before the actual images in the PG stream, so it should be possible to alter that information while parsing the data in the stream, but I couldn't find information consistent enough to be able to even consider coding such a tool.

Since SupRead can display the palette on the screen with each sub, I guess that it could integrate some kind of functionality like setting a pre-defined pallette for all subtltiles ... Pel, if you hear me ... :)

Of course, if someone is able to provide enough information on the PG stream, I could try and make the tool (I'll just have to find the time and to sum up my memories to be able to do some programming again ...).
If that was to happen, I'll keep you posted :rolleyes:

DaMacFunkin
19th January 2009, 18:34
Anybody know a quick way to force a subtitle stream created with supread and imported into scenarist as a bdn file? If you edit the bdn file each line has a section which says "forced="False" i have tried editing the bdn file so all the subs say "True" but it doesn't work, you have to go through every single sub in Scenarist and force them :-(

Rectal Prolapse
19th January 2009, 19:00
DaMacFunkin, you can open your scenarist project file after saving your project in Scenarist - it is in XML format. You can edit it to force the subtitles on in there!

DaMacFunkin
19th January 2009, 22:52
Brilliant, didn't realise this, wish i'd known this before i did The Mummy Returns (HD DVD 2 Blu-RAY(110 subs manually forced)) Thanks.

Rectal Prolapse
19th January 2009, 23:15
You may be able to also force subtitles on using the "setstream" command (before the play command) when building the playlist scenario. Um. I think that is what it is called.

Octo-puss
1st February 2009, 11:45
Could you give me some brief hint how to work with SUPRead please? I know I used it in past, but I forgot all I knew. I got this .sup file I extracted from my Blu-Ray movie LONG ago and now I decided it's time to convert it into srt format... But I am totally confused how.

Furiousflea
11th February 2009, 02:14
Hi there, I'm trying to load an .srt file in SUPread but ever time I do an error pops up...

"Division by zero"

I've tried looking for other people with this problem but don't seem to be anyone at all.

I have abc.png in same directory as needed.

Any ideas...?

Thanks, Rob

Rectal Prolapse
11th February 2009, 06:25
Doesn't supread read .sup files only?

0xdeadbeef
11th February 2009, 20:13
I stumbled over an issue with the SUPs extracted from the German Blu-Ray of "Pirates of the Carribean III".

In most of the SUP frames, there is a seconds palette definition
after the ODS with the byte size 2 (-> 0 entries) that looks like this:

14 00 02 01 00

This is what SupRead reports:

00000002: PTS=004F6308 (00:00:57,808)
0000000A: PCS (13) state: 2
0000002A: WDS0 (0A) id: 0 -
00000041: PDS (4FD) 255 palettes
0000054B: ODS0 (628F) 670 x 118
000067E7: END
000067EC: PTS=0055BEA2 (00:01:02,437)
000067F4: PCS (0B) state: 0
0000680C: WDS0 (0A) id: 0 -
00006823: PDS (02) 0 palettes <-----------------------------
00006832: END

When I delete the 2nd 2-Byte PDS entries from the SUP before importing them into SupRead, the subtitles are rendered correctly.

So obviously, SupRead uses the 2nd (invalid) palette definition to render the subtitle image instead of the first one (->empty). I'd guess that the order matters though and the PDS _before_ the ODS should be used.
Or maybe palette definitions with 0 palettes just must be ignored?
Either fix would do...

Besides, while we're at it, the 1st PCS in this SUP stream looks like this:

16 00 13 07 80 04 38 10 00 00 80 00 00 01 00 00 00 00 02 C3 03 65 - POTC3 (1)

16 - PCS identifier
00 13 - size of section: 0x13
07 80 04 38 - width, height: 1920x1080.
10 00 01 - sequence number ???
10 00 00 xx - xx = 1: don't clear, 0: clear, 10 = ???
00 00 00 xx - 40: next sub forced, 0: don't force
02 C3 03 65 - ???

Is anything known about the last 4 bytes or the other entries marked as "???" ?

I'd be interested in any documentation about the BD-SUP (and maybe HDDVD-SUP) format that exceeds the discussion in this forum.

pleinlesyeux
13th February 2009, 17:44
"division by zero" when importing .srt file.

I have the same problem as Rob.

My issue is to create a compliant sst, xml and png files to import in scenarist. So far, my png files are of a black background, not a transparent one. How could I do that ?

Thanks.

Rectal Prolapse
13th February 2009, 22:15
pleinlesyeux, you could do an adobe photoshop action to make black always transparent, and then process all the PNGs in a batch action.

pleinlesyeux
13th February 2009, 23:58
Hi !

First I found out a way to stop the "divide by zero" issue.

It seems that my .srt outputed from suprip in not fully compliant with supread.
So I used subtitler to input the .srt and to save it again.

Result : 3 times lighter. And imports fine in supread.
When I check the difference between both in notepad, there is... none !

-----

My aim is to change the vertical position of the subtitle of a blu ray stream. Stand alone players don't do that.

I tried many stuff, but am still stuck.


-

Thunderbolt8
23rd February 2009, 00:39
anyone able to take up the work on SUPread since Pelican9 obviously doesnt do anything any more?

Rectal Prolapse
23rd February 2009, 05:44
Thunderbolt8, there is no source for supread. It's also written in Delphi, which isn't very commonly known.

I have been thinking of writing my own version - although it won't be much more functional than suprip if I ever do start on it.

madshi
23rd February 2009, 08:25
It's also written in Delphi, which isn't very commonly known.
Delphi is the only good development language... ;)

<goes into hiding before C and C++ devs chime in>

Rectal Prolapse
24th February 2009, 18:57
lol madhi!

Delphi reminds me of Pascal, but without the insanity. :)

C++ is like a beautiful woman who is great in bed - but occasionally goes batpoo insane and runs off with your credit cards and has affairs behind your back. And occasionally leaves dangling pointers!

GZZ
26th February 2009, 21:28
all in for delphi. Its a nice language. Still using Delphi 7 and it rocks. :P

Thunderbolt8
26th February 2009, 21:45
Thunderbolt8, there is no source for supread. It's also written in Delphi, which isn't very commonly known.

I have been thinking of writing my own version - although it won't be much more functional than suprip if I ever do start on it.
im basically already fine with supread. the only problem remaining for me is that sometimes subtitles from this or that movie cannot be displayed at all, theres nothing to be seen then other than the background (already tried all kinds of brightness and gamma tweaking). guess this is a bug, if this was fixed, it would already be enough, since I use finereader for further ocring.

dburckh
6th March 2009, 19:06
I'm trying to write an app to automatically convert HD DVD to Blu-Ray (w/o menus). I've got most of the code to drive eac3to and TsMuxer to this end, but subtitles are a real PITA. It looks like this app. will read in HD DVD and save the titles as Blu-Ray compatible (PGS) format.

I was wondering if there are any CLI options? I was able to open a .sup file by adding it to the command line, but kind of got stuck there. I'm looking for things like triggering the export button and possibly setting the frame rate. I would prefer not to do a sendkeys solution.

If that isn't possible, does anybody have specifications on how to create a PGS stream? Assuming it's not far from DVD, I think I can decode the HD DVD subtitles.

Rectal Prolapse
8th March 2009, 00:12
dburckh, you may want to look at AutoIt scripting as a solution to automating the supread GUI.

dburckh
10th March 2009, 16:50
I got it working with a .vbs script using sendkeys last night. It's not 100% stable, but I am able to control the conversion programmaticly and detect completion.

Through some tricks, I can tell if it's processing, or it failed. SUPRead defaults to Blu-Ray and 23.976. Eventually, I know I'll hit something that really is 1080i30 and it may pose a problem.

Now I just have to decouple the HD DVD conversion code out of ToNMT and integrate the subtitle code.

laserfan
10th March 2009, 19:34
As an aside, I made a HD DVD to BD conversion the other day where in the muxed output, turning-on the subtitle resulted in some odd blocking (resulted in black over the picture image, to the right of the subtitle) and even after turning-off the sub the black remained.

If anyone knows of a good way to TEST SUPread's output before the muxing step, I'm all ears.

Oops, I forgot to mention that I HAD tested the mux with a couple of PC players, and it appeared to work OK, but this problem only appeared after burning, on a set-top player.

dburckh
10th March 2009, 20:02
As an aside, I made a HD DVD to BD conversion the other day where in the muxed output, turning-on the subtitle resulted in some odd blocking (resulted in black over the picture image, to the right of the subtitle) and even after turning-off the sub the black remained.

If anyone knows of a good way to TEST SUPread's output before the muxing step, I'm all ears.

Oops, I forgot to mention that I HAD tested the mux with a couple of PC players, and it appeared to work OK, but this problem only appeared after burning, on a set-top player.

Were those PGS or SRT files? I was hoping PGS would work because it's lossless and automateable. If it requires SRT, I could force the user to verify.

I don't have a set top player either.

laserfan
10th March 2009, 20:29
Were those PGS or SRT files? I was hoping PGS would work because it's lossless and automateable. If it requires SRT, I could force the user to verify. I don't have a set top player either.It was an HD-DVD.sup to BD.sup (PGS).

Last time I tried this, bd.sup worked no problem, and as I recall I "tested" the bd.sup output by opening with SupRip, which thought it was a BD sup and OCR'ed it just fine. I was just uncertain about this PGS-to-PGS process so SupRip was all I could think of short of muxing & testing.

But I didn't bother with SupRip this last time, maybe I will try a do-over and see what SupRip thinks about the SUPread BD output. I could also demux into individual PGSes I suppose and look at those...

laserfan
10th March 2009, 22:14
I was hoping PGS would work...Well, don't let my one bad experience slow you down. I re-ripped the troublesome hddvd.sup again, made a bd.sup, and SupRip OCR'ed it like nobody's business--seems just fine. Maybe my stb player glitch was due to tsmuxer perhaps, and not SUPread at all. :o

P.S. I just tried BDSup2Sub on my converted HDDVD.sup and it also works fine. A nice tool btw just to see the graphics in all their glory.

Anyway still it appears SUPread is working well.

astronman
26th April 2009, 18:00
Does anyone knows how to make SUP file for BluRay from srt or sub file??

0xdeadbeef
26th April 2009, 18:53
A two step solution should work via the BDN XML format. There are at least two free tools available to convert BDN XML to BD-SUP: BDSupEdit and BDSup2Sub.
So the only problem is to convert SRT (or VobSub) to BDN XML. AFAIK Subtitle Workshop is able to.

Ulf
28th April 2009, 08:51
Does anyone knows how to make SUP file for BluRay from srt or sub file??

Well, I do. Take a look at this (http://forum.doom9.org/showthread.php?t=146488)post for srt to SUP creation.

PassThePeas
12th May 2009, 00:57
As an aside, I made a HD DVD to BD conversion the other day where in the muxed output, turning-on the subtitle resulted in some odd blocking (resulted in black over the picture image, to the right of the subtitle) and even after turning-off the sub the black remained.

If anyone knows of a good way to TEST SUPread's output before the muxing step, I'm all ears.

Oops, I forgot to mention that I HAD tested the mux with a couple of PC players, and it appeared to work OK, but this problem only appeared after burning, on a set-top player.

Looks like you're running into the same issue I mentioned earlier in this post :
(...)I'm having an issue with hd-dvds subtitles converted to blu-ray when played on a stand-alone player (sony BDP-S350). (...)

As soon as the first sub appears, the screen goes black except for the subs bounding box (readjusting as each sub comes along)

The subs play just fine with software player (tmt or power dvd).
I tried to compare the subs to others extracted directly from BDs, and the only thing i came up with seems to be the palette : when i display it in supread, the first color is red (whereas it comes black with other subs). Extracting PNGs produces the sames result (red background for "bad displaying" subs and black for others).

Has anybody else experienced the same issue ? In that case, has any solution been found ?
Any clue as to resolving the issue (or finding a workaround) ?


I don't think I got an answer on this one ... sorry ;)

I didn't get time to go any further in searching a way to fix those subs ....

Peas.

laserfan
12th May 2009, 14:44
Looks like you're running into the same issue I mentioned earlier in this post :

I don't think I got an answer on this one ... sorry ;)

I didn't get time to go any further in searching a way to fix those subs ....You're right, Peas, I missed your post. You did a better job of explaining the problem than I did!

I've tried a couple more HD-DVD conversions to BR recently, and am having no luck it seems even getting the converted subtitles to display at all, nevermind the "black" problems. I've used both SUPread and BDSup2Sub to try to make a BR-compatible subtitle directly from the HD-DVD original, and they just don't display at all when Subtitle is turned On. So I've had to use SupRip to convert to .srt and then tsMuxeR to make a subtitle from it on mux.

If anyone knows the magic of converting HD DVD subtitles to BR-compatible Reliably (it seems SUPread works *sometimes* but not *all times*) by all means tell.

0xdeadbeef
12th May 2009, 17:14
While I wouldn't completely rule out the possibility that both SupRead and BDSUp2Sub create BD-SUPs that are in a subtle way not compliant to the BD specification, chances are that the source of the problem is somewhere else. This idea is also strengthened by the fact that the subtitles are displayed for some people.

Anyway, if captions are displayed for SRTs converted by tsMuxer while they aren't for (bitmap) SUPs imported by tsMuxer, this shows that tsMuxer treats them differently.

Indeed, I find it hard to believe that the BD-SUPs created by either SupRead or BDSup2Sub are so corrupt that not a single caption can be decoded by a standalone. It seems much likelier that there is an issue in the transport stream or BD structure that doesn't allow certain standalones to access the captions at all.

PassThePeas
12th May 2009, 19:35
While I wouldn't completely rule out the possibility that both SupRead and BDSUp2Sub create BD-SUPs that are in a subtle way not compliant to the BD specification, chances are that the source of the problem is somewhere else. This idea is also strengthened by the fact that the subtitles are displayed for some people.

I agree with that. I don't think the issue is coming from those apps.


Anyway, if captions are displayed for SRTs converted by tsMuxer while they aren't for (bitmap) SUPs imported by tsMuxer, this shows that tsMuxer treats them differently.

Agree again. Difference is pretty big because when you feed tsMuxer with an srt file, it actually builds the SUP file for you. In the other case, it just uses the one you feed to mux it in the output file/structure you chose.


Indeed, I find it hard to believe that the BD-SUPs created by either SupRead or BDSup2Sub are so corrupt that not a single caption can be decoded by a standalone. It seems much likelier that there is an issue in the transport stream or BD structure that doesn't allow certain standalones to access the captions at all.
The problem doesn't not really come from the subs which display fine. The problem is that once one appears, that's all you gonna get from the movie you're looking at : subs surounded by a black screen (and sound if you turn the volume up) !!

My opinion is that the problem comes from the palette that uses a color (apparently close to red) which is not correctly handled by the SAP as the transparent color. It has the nasty effects not to be that transparent when displayed on screen and then to mess up the rendering software of the SAP in such a way that even if you turn off subtitles, screen won't come clean again (unless you go back to menu/stop playing and start again) ....



That explanation is also coherent with the fact that software players that (for some unknown reason) tends to manage that background/transparent color better.

I made some tests at the time to try and extract pngs directly from the HD-DVD sup file and I think they had already red background, which would clear SUPread from being the culprit !

I'll check that when I get home and give feedback.

If this is true, then the problem either lies directly in the original sup stream in the EVO file or in EVODemux process to extract it.


Peas.

laserfan
12th May 2009, 23:18
...the problem either lies directly in the original sup stream in the EVO file or in EVODemux process to extract it.In my case(s), the demuxing has always been done by eac3to, not EVODemux. Then I would convert with SUPread, and if that output didn't work (with tsMuxeR output), next BDSup2Sub, then finally giving-up and making an .srt with SupRip and muxing with tsMuxeR cli.

BTW only once did I actually get a bad subtitle on my SAP--I'll usually check first (as I did just recently with a failed attempt at conversion) using PowerDVD 7.3 and Arcsoft TMT 2.0 (neither of these displayed anything at all).

anode
18th May 2009, 18:09
(strange display of converted HD-DVD subtitles)..

Maybe you could check the following: If the palette definition of the generated Blu-Ray *sup has 256 entries (00-FF)(which HD-DVD allows) then the subtitle isn't properly displayed.
From my research, Blu-Ray subtitle specs allows only 255 palette entries(00-FE).
You can check the palette definition with pelican9's SUPread. You have to switch on options/general/detailed info and see in the log file the palette size.
For me i have tried to write a tool that cuts the last entry of palette and replaces the references to this entry with the nearest similar one. That subtitles displayed without problems...

Perhaps 0xdeadbeef can implement this in his fantastic tool, if it is the reason for wrong displayed subtitles...

anode

0xdeadbeef
18th May 2009, 19:04
Maybe you could check the following: If the palette definition of the generated Blu-Ray *sup has 256 entries (00-FF)(which HD-DVD allows) then the subtitle isn't properly displayed.
From my research, Blu-Ray subtitle specs allows only 255 palette entries(00-FE).
256 entries are allowed, however the last palette entry (0xff) always has to be a transparent color.


For me i have tried to write a tool that cuts the last entry of palette and replaces the references to this entry with the nearest similar one. That subtitles displayed without problems...
The last entry must not be an opaque color. By deleting the last entry, it becomes transparent as every undefined entry is assumed to be transparent by definition.

Perhaps 0xdeadbeef can implement this in his fantastic tool, if it is the reason for wrong displayed subtitles...
I must admit I can't remember currently if BDSup2Sub doesn't consider the above limitation when converting from HD-DVD-SUP. If so, this is by mistake. I will have a look.

[EDIT]
Seems I really overlooked this case (although e.g. when converting from BDN XML it was considered).
Could I get a sample to test a fix?

[EDIT2]
OK, I put out 3.7.0, please give it a try.

anode
18th May 2009, 21:05
Could I get a sample to test a fix?

Here is one from the German HD-DVD "Die Insel":

http://rapidshare.de/files/47214409/THE_ISLAND_HDDVD_TEST.zip.html

Hope this will work, its my first try.

Thank you very much for looking into this..

PassThePeas
18th May 2009, 21:21
256 entries are allowed, however the last palette entry (0xff) always has to be a transparent color.


The last entry must not be an opaque color. By deleting the last entry, it becomes transparent as every undefined entry is assumed to be transparent by definition.


I must admit I can't remember currently if BDSup2Sub doesn't consider the above limitation when converting from HD-DVD-SUP. If so, this is by mistake. I will have a look.

[EDIT]
Seems I really overlooked this case (although e.g. when converting from BDN XML it was considered).
Could I get a sample to test a fix?

[EDIT2]
OK, I put out 3.7.0, please give it a try.

OK, I've got two words for you : THANKS and WON-DER-FUL !!!!

I've just made two tests : one with a SupRead HDDVD->BD converted file and another one with a HDDVD file directly converted with BDSup2Sub.
Once each of those files converted by BDSup2Sub to BD format (palette : create new), I remuxed and burn the BDs and it works flawlessly : no black screen, no bounding box .... just a movie and its subs !!!! :thanks::thanks::thanks:

You've just made my day !

Peas.
PS: I can't remember if I said it : THANKS !

0xdeadbeef
18th May 2009, 21:38
Once each of those files converted by BDSup2Sub to BD format (palette : create new), I remuxed and burn the BDs and it works flawlessly : no black screen, no bounding box .... just a movie and its subs !!!! :thanks::thanks::thanks:
You're welcome and thanks for testing.
The "palette : create new" setting doesn't have an influence here btw - it only comes into play it the image is scaled.

anode
19th May 2009, 06:10
OK, I put out 3.7.0, please give it a try.

Could you please try my sample?

3.7.0 crashes when i want to save that file to BR/SUP with some IndexOutOfRange-Messages...

:thanks:

0xdeadbeef
19th May 2009, 17:38
Yeah, heck, I screwed it up. Try 3.7.1.
Anyway, let's continue discussion about BDSup2Sub in the according thread.

Pelican9
31st January 2010, 15:30
Hi all!

How do you get the PG streams from a BD?
I mean, which software is preferred?

hubblec4
31st January 2010, 19:00
hi Pelican9

nice to see you are back.

i use eac3to to demux a bluray only. after the demux i have the PGS files with information in the filename like this
"00048 - 8 - Subtitle (PGS), German, 1727 normal captions, 29 forced captions.sup"

What would you do?

Pelican9
31st January 2010, 19:12
Edit:

A new snapshot is available soon with minor bugfix, improved BD compatibility (can read larger graphic).
http://pel.hu/down/SUPread_053.gif


hi Pelican9

nice to see you are back.

i use eacto to demux a bluray only. after the demux i have the PGS files with information in the filename like this
"00048 - 8 - Subtitle (PGS), German, 1727 normal captions, 29 forced captions.sup"

What would you do?

Thanks!
So, your vote is eac3to. :)

I'm developing the BDedit (and SUPread).
I've spent the last two hours to figure out why my PTS/DTS values are too big... forgot to substract the first video PTS... :rolleyes:

frank
25th February 2010, 07:50
Download broken.

Pelican9
22nd March 2010, 06:22
Download broken.
:thanks:

I've fixed it.

Thunderbolt8
16th April 2010, 20:29
thanks for the new update, appreciate it. hopefully the bug is gone that all titles can be read now (in some rare cases the colours were so strange that OCR programs couldnt read the letters, or sometimes the suptitle file looked empty with nothing at all, while it worked fine with suprip).

movq
25th April 2010, 02:31
i load .sup file,then OCR all ok,but nothing on srt menu except line 1 or 2 etc,why

PowerGamer
14th April 2011, 16:49
I am getting "Access violation" message when trying to open this .sup file (http://www.multiupload.com/1MJP7YLET4) (extracted by eac3to from Monsters, Inc. BluRay) in SUPread v0.53b2. Any chance this bug can be corrected? Thanks in advance.

Thunderbolt8
28th September 2011, 16:05
there has been a small update today

Octo-puss
7th February 2013, 10:50
Could anyone explain how to use this program to me please? I don't understand the options, and I can't get it to read subtitles properly.
This is more or less what I get instead of text:
·····d·r'···:····'·d·····:r:··.
·d:··:···:·d···r··:·d.

sneaker_ger
7th February 2013, 13:33
I don't know the answer, but maybe an alternative program would be ok?
Extract subtitles with e.g. eac3to and OCR them using SubExtractor (http://forum.doom9.org/showthread.php?t=162633) or Subtitle Edit (http://www.nikse.dk/subtitleedit).