Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 26th September 2012, 23:44   #1201  |  Link
Tappen
Registered User
 
Join Date: Dec 2006
Posts: 196
The character selector block is fixed - I've been trying alternatives to allow editing of this part of the UI but haven't released any yet.

So you have to type in the Thai characters by hand. My testers had Thai keyboards of course so it was easy for them, and I used the wikipedia page with the character set on it to cut and paste characters into the manual entry box. Slow but got the job done.
Tappen is offline   Reply With Quote
Old 27th September 2012, 10:22   #1202  |  Link
eTiMaGo
Registered User
 
Join Date: May 2009
Posts: 57
Quote:
Originally Posted by Tappen View Post
I'm the author of SubExtractor, and I did add support for Thai OCR in the most recent release (1028). I worked for several months with a Thai speaker to get the diacriticals and other combo characters OCR'd and ordered correctly.
I could kiss you! ahhaha

I'm in Thailand too, and in a similar situation to pawpcorn, I like to watch movies and series in HD, but my GF needs Thai subtitles which are suually only available on the DVDs... While MultiAVCHD and BDSup2Sub have been excellent for this, in many titles the timing of the subtitles is quite a bit different and hard to get right, having them in text format will definitely help!

Pawpcorn, as I understand it you'd want to show both English and Thai subtitles at the same time, right? I think some PC DVD/BD player software like PowerDVD can display 2 subtitle languages? If not the next easiest solution, I think, would be to hard-burn the english subs on the video, and have Thai subtitles as selectable ones? Just an idea!
eTiMaGo is offline   Reply With Quote
Old 28th September 2012, 07:02   #1203  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,104
Isn't up to four lines of subs covering too much of the picture anyway?
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline   Reply With Quote
Old 8th October 2012, 09:15   #1204  |  Link
rakuen.now
Registered User
 
Join Date: Aug 2012
Posts: 3
Well, I'm not really a programmer, but I took a look at those files and don't see that this would be too hard for a programmer who's interested. You could probably do it by combining free code online. What I would do is, after converting the thai and eng sub to XML/PNG in BDSub2Sup, write a program that:

1. Create a list for each language.
2. Traverse through them both sorted by timecode.
3. Create a 3rd output list.
4. If a frame for one language does not have a corresponding frame within a second of its start time in the second language, output that frame and the PNG directly.
5. If the start time for a frame for one language is within a second of a frame of the second language:
5a. Sync the timecodes
5b. Combine the PNGs into 1 PNG (example)
5c. Figure out the vertical pixel change, and output this into the output list.
6. If the start time for a frame of one language is not within a second of a frame from the second language, but there is overlap, create 3 frames where the 2nd one is the overlap (not the ideal solution, but easiest).
7. Write the output list back into XML format.
8. Load the XML and combined PNGs into BDSup2Sub and turn it back into sub/idx.
rakuen.now is offline   Reply With Quote
Old 9th October 2012, 21:11   #1205  |  Link
bernd_b
Registered User
 
Join Date: Jan 2003
Location: Germany
Posts: 65
idx/sub from DVDFab causes crash

Hello,

I ripped one of my DVDs using DVDFab. The resulting idx/sub files causes BDSUP2SUB to crash:

Quote:
java.lang.NullPointerException
at bdsup2sub.supstream.dvd.SubDvd.readSubFrame(SubDvd.java:479)
at bdsup2sub.supstream.dvd.SubDvd.<init>(SubDvd.java:135)
at bdsup2sub.core.Core.readDVDSubstream(Core.java:567)
at bdsup2sub.core.Core.readVobSub(Core.java:526)
at bdsup2sub.core.Core.run(Core.java:161)
at java.lang.Thread.run(Thread.java:722)
What does this error message indicate? I can, e.g. work with these subtitles using avidemux ocr-function, so they shouldn't be pure crap?!?

If it is of help, I can upload an example somewhere (the attachment would be about 0.5-1MB and there to big to attach it to the post here in the forum.
bernd_b is offline   Reply With Quote
Old 9th October 2012, 23:48   #1206  |  Link
SassBot
Guest
 
Posts: n/a
Post the sub/idx and I can tell you.
  Reply With Quote
Old 10th October 2012, 19:34   #1207  |  Link
bernd_b
Registered User
 
Join Date: Jan 2003
Location: Germany
Posts: 65
O.K,

I tried to upload an example of an idx/sub pair which works in avidemux2 ocr tool but made BDSUP2SUB crash:

http://dl.dropbox.com/u/963354/working_not_working.zip


May one of the links work. Here again the error message:

Quote:
java -jar /extern08/BDSup2Sub-5.0-SNAPSHOT.jar
java.lang.NullPointerException
at bdsup2sub.supstream.dvd.SubDvd.readSubFrame(SubDvd.java:479)
at bdsup2sub.supstream.dvd.SubDvd.<init>(SubDvd.java:135)
at bdsup2sub.core.Core.readDVDSubstream(Core.java:567)
at bdsup2sub.core.Core.readVobSub(Core.java:526)
at bdsup2sub.core.Core.run(Core.java:161)
at java.lang.Thread.run(Thread.java:722)
BDSup2Sub - Version 5.0 snapshot Built on 2012-09-15

Last edited by bernd_b; 13th October 2012 at 15:34.
bernd_b is offline   Reply With Quote
Old 12th October 2012, 19:55   #1208  |  Link
mjuhasz
Registered User
 
Join Date: Aug 2011
Posts: 23
Unfortunately all the links are dead.
mjuhasz is offline   Reply With Quote
Old 13th October 2012, 10:08   #1209  |  Link
bernd_b
Registered User
 
Join Date: Jan 2003
Location: Germany
Posts: 65
First try first crap.

Maybe this one is of help:

http://dl.dropbox.com/u/963354/working_not_working.zip

Last edited by bernd_b; 13th October 2012 at 15:34.
bernd_b is offline   Reply With Quote
Old 13th October 2012, 10:19   #1210  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
There is an additional coma at the end of the palette in the IDX file. If you remove it manually, you can open the file.
Obviously, it's a little bug, easy to fix.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 13th October 2012, 15:34   #1211  |  Link
bernd_b
Registered User
 
Join Date: Jan 2003
Location: Germany
Posts: 65
The coma trick didn't work here.

DVDFabs produces some idx/sub files which can be loaded into BDSUP2Sub without problems and some which cannot. All have the coma at the end of the palette line - I understood it is this line:

Quote:
palette: 101010, 646464, e2e2e2, eaeaea, 0feb0e, ea10ea, ebeb10, 107b7a, 7b7b7b, d1d1d1, 7a110f, b9303b, 101010, 646464, e2e2e2, 7b107a,
I uploaded a working and not working example produced by DVDFab (and corrected the links accordingly of my previous posts). Both pair of subtitle files can be processed with avidemux ocr-function, but the one called not working leads to a crash of BDSUP2Sub:

http://dl.dropbox.com/u/963354/working_not_working.zip

Before crashing with the above shown error message, I can additionally see the following message in the window message window on the bottom left side:

Quote:
...

#157
#158
#159
WARNING: Control buffer size inconsistent.
WARNING: RLE buffer size inconsistent.
WARNING: Invalid end sequence offset -> no end time
WARNING: Invisilble caption due to zero alpha - unsed alpha info of last caption.
#160
WARNING: Invalid fragment skipped at ofs 0x000bf800

Last edited by bernd_b; 13th October 2012 at 15:38.
bernd_b is offline   Reply With Quote
Old 13th October 2012, 16:10   #1212  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Your previous example worked without the tailing coma with BDSup2Sub++.exe. I have not tried the java version.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 13th October 2012, 16:26   #1213  |  Link
Ghitulescu
Registered User
 
Ghitulescu's Avatar
 
Join Date: Mar 2009
Location: Germany
Posts: 5,769
Quote:
Originally Posted by r0lZ View Post
Anyway, I don't understand why you want to display two languages at the same time. What's the benefit? Is it for a multi-language audience?
I cannot possible believe I met another one that is not contaminated by the anime-mania.

Multiple language subtitles are extremely wanted in these circles, to display both Japanese and the secondary language in the same time.
__________________
Born in the USB (not USA)
Ghitulescu is offline   Reply With Quote
Old 13th October 2012, 17:53   #1214  |  Link
bernd_b
Registered User
 
Join Date: Jan 2003
Location: Germany
Posts: 65
Quote:
Originally Posted by r0lZ View Post
Your previous example worked without the tailing coma with BDSup2Sub++.exe. I have not tried the java version.
O.K:, didn't see the windows version. Works with the grace of wine here too under linux after deleting the coma, but exporting the subtitle fails with:
Quote:
...

Decoding frame 159/329 at offset 000bf000
ERROR: Corrup buffer offset information
So same issue, but at export instead of at loading the sub?
bernd_b is offline   Reply With Quote
Old 13th October 2012, 18:16   #1215  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Sorry, I haven't tried to export it. I've assumed that your problem was limited to the error when loading.
IMO, you should try to extract the original subs with another tool. DVDFab has a lot of bugs.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 14th October 2012, 01:24   #1216  |  Link
cyberbeing
Broadband Junkie
 
Join Date: Oct 2005
Posts: 1,859
The idx file which doesn't load has an invalid line.
Code:
timestamp: 00:11:21:480, filepos: 0000bf000
timestamp: 06:24:34:465, filepos: 0000bf800
timestamp: 00:11:24:000, filepos: 0000c0000
cyberbeing is offline   Reply With Quote
Old 14th October 2012, 07:37   #1217  |  Link
mjuhasz
Registered User
 
Join Date: Aug 2011
Posts: 23
That's correct. You can remove that line and both the stable and the snapshot BDSup2Sub will read/export it then.

This may be a bug in DVDFab but I'll check how BDSup2Sub can be more graceful and skip this automatically (write a warning and move on, instead of crashing).

Quote:
Originally Posted by cyberbeing View Post
The idx file which doesn't load has an invalid line.
Code:
timestamp: 00:11:21:480, filepos: 0000bf000
timestamp: 06:24:34:465, filepos: 0000bf800
timestamp: 00:11:24:000, filepos: 0000c0000
mjuhasz is offline   Reply With Quote
Old 22nd October 2012, 08:33   #1218  |  Link
MaistroX
Registered User
 
Join Date: Oct 2002
Location: Wonderland
Posts: 159
Downloaded latest, get the same stop and error, please help! :/
See attached text here -> http://www.mediafire.com/file/41cubs..._War_II_3D.txt
MaistroX is offline   Reply With Quote
Old 22nd October 2012, 10:20   #1219  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Wrong thread, MaistroX. Please port in the right thread.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 8th November 2012, 00:19   #1220  |  Link
cyberbeing
Broadband Junkie
 
Join Date: Oct 2005
Posts: 1,859
Any chance of adding the ability to change the colors/palette of SUP(BD) subtitles in a future version?

If not, is there any other program which can modify and export SUP(BD) with custom colors?
cyberbeing is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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

Forum Jump


All times are GMT +1. The time now is 06:33.


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