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 28th April 2009, 11:42   #301  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
No, re-read my above posts.
0xdeadbeef is offline   Reply With Quote
Old 28th April 2009, 11:51   #302  |  Link
Mtz
Registered User
 
Mtz's Avatar
 
Join Date: Sep 2003
Location: On The Beach
Posts: 714
OK, I'll give up. I just hope that someday you will understand that I'm right. Also the SupRip join feature have this bug. Working with text subtitles for more than 5 years and I saw over that 3000 srt subtitles, checking them for errors with subtitles workshop and also I helped the author of that program for fixing some minor bugs and translating the program in my language.
Good luck! You are making a very nice job, but seems that sometimes not looking deep in some posts.

Edit: just for fun, play these 3 subtitles test with any video: http://uploaded.to/file/d4bo9v Will cost you 1.30 minutes.

enjoy,
Mtz

Last edited by Mtz; 28th April 2009 at 12:03.
Mtz is offline   Reply With Quote
Old 28th April 2009, 12:55   #303  |  Link
Ulf
Registered User
 
Join Date: Sep 2008
Location: Sweden
Posts: 66
Quote:
Originally Posted by Mtz View Post
- if is possible to move all subtitles to bottom-right corner. Now I can edit the frame, but the edited is not applyed to all. In move all captions I cant move X position, only Y.
If you open your SUP in BDSup2Sub and save it as XML/PNG you'll get a XML file you can edit to achieve what you want. Part of the XMl file will look as this:

Code:
    <Event InTC="00:00:00:00" OutTC="00:00:00:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0001.png</Graphic>
    </Event>
    <Event InTC="00:00:00:17" OutTC="00:00:01:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0002.png</Graphic>
    </Event>
    <Event InTC="00:00:01:17" OutTC="00:00:02:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0003.png</Graphic>
    </Event>
    <Event InTC="00:00:02:17" OutTC="00:00:03:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0004.png</Graphic>
    </Event>
    <Event InTC="00:00:03:17" OutTC="00:00:04:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0005.png</Graphic>
    </Event>
    <Event InTC="00:00:04:17" OutTC="00:00:05:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0006.png</Graphic>
    </Event>
    <Event InTC="00:00:05:17" OutTC="00:00:06:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0007.png</Graphic>
    </Event>
    <Event InTC="00:00:06:17" OutTC="00:00:07:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0008.png</Graphic>
    </Event>
    <Event InTC="00:00:07:17" OutTC="00:00:08:16" Forced="False">
      <Graphic Width="576" Height="36" X="896" Y="900">00009_0009.png</Graphic>
    </Event>
You can for example change all occurences of X="896" to X="1194". Increase Y if you want to move your subs further down. Then you import your XML to BDSup2Sub and save it as a SUP.

From what I can see from the XML file, BDSup2Sub handles the in/out timings completely correctly (frame accurately). The timings in a XML file are in the format HH:MM:SS:FF, where FF is frames. The timings in a XML file are somewhat confusing - they are given as if the frame rate is 30 fps when the frame rate is actually 29.97 fps.
One benefit is that the timings are completely unambiguous.
Note that there is no frame missing a subtitle, they all go out in on frame 17 and out on frame 16.
Ulf is offline   Reply With Quote
Old 29th April 2009, 10:27   #304  |  Link
Ulf
Registered User
 
Join Date: Sep 2008
Location: Sweden
Posts: 66
Merging identical subtitles

0xdeadbeef,

Could you please make it an option in BDSup2Sub to merge/not merge identical subtitles if they are separated in time.

I have an example where the same subtitle is shown twice, with a short brake in between. If you look at the movie, it's quite clear that they are meant to be shown like this. BDSup2Sub (v3.4.3) are merging the two into one.

If I export the original SUP to XML/PNG by SUPread, one can see that the two identical subs are separated in time (three frames with no subtitle shown):

Code:
    <Event InTC="00:49:44:11" OutTC="00:49:47:05" forced="False">
    <Event InTC="00:49:47:09" OutTC="00:49:49:14" forced="False">
whereas BDSup2Sub merge the two:

Code:
    <Event InTC="00:49:44:11" OutTC="00:49:49:14" Forced="False">
If InTC for the second (identical) subtitle was InTC="00:49:47:06", it would be no gap in time and merging would be OK.
Ulf is offline   Reply With Quote
Old 29th April 2009, 14:48   #305  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Currently BDSup2Sub uses a fixed time difference (200ms) to decide whether to merge identical captions or not (at least if there is a gap at all). BTW: merging is only implemented for BD-SUPs, as multiple repetition of the very same bitmap with short/no gaps is a common problem of this format (only).
The main reason for not letting the user set this value was that it's already needed during parsing. So I'd either need an additional dialog before loading the file or you'd need to reload the file after changing the option. Both seems awkward. The only proper way would be to move the merging from the parsing code to the scanning code, but this is a lot of effort.
The only quick'n'dirty solution I could offer was to make this (only) a command line option for the moment.

Honestely, I don't see any benefit in this anyway. In 99.99% of the cases where identical subtitles have a gap < 200ms, it's an authoring fault. And really: IMHO it seems strange to insist on getting a short flicker instead of a constant display.

So, in a nutshell: while it's not impossible that some future version will implement this (as GUI option), this is about as low in priority as can be. Indeed chances are it will never happen as rewriting the parser and scanning code just for this doesn't sound very appealing to me.

Last edited by 0xdeadbeef; 29th April 2009 at 14:54.
0xdeadbeef is offline   Reply With Quote
Old 29th April 2009, 15:39   #306  |  Link
Ulf
Registered User
 
Join Date: Sep 2008
Location: Sweden
Posts: 66
Quote:
Originally Posted by 0xdeadbeef View Post
The only quick'n'dirty solution I could offer was to make this (only) a command line option for the moment.
It would be great if one could set the "gap time" as a command line option!
Ulf is offline   Reply With Quote
Old 29th April 2009, 20:45   #307  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
These bdn xml subs crashes the gui after loading, error log is included in the zip.

The bdn xml subs were created with avs2bdnxml. BDSupEdit loads and outputs them correctly.
turbojet is offline   Reply With Quote
Old 29th April 2009, 22:13   #308  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by turbojet View Post
These bdn xml subs crashes the gui after loading, error log is included in the zip.
Nope. The Java Virtual Machine crashes on your PC. This is not a crash of BDSup2Sub and the sample XML works ok for me.
I'd assume it's a bug in the 64bit implementation of the JVM - at least that seems to be the most likely solution if your PC is stable otherwise.
0xdeadbeef is offline   Reply With Quote
Old 29th April 2009, 22:30   #309  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
Must be 64 bit jvm, I wonder how I'd go about reporting that. Any ideas?

Edit: Also I noticed the vobsub output can't be joined with VobSubMuxer but it works with dvd subs from gabest vobsub and subtitlecreator. Is there a chance BDSup2Sub vobsub output could be changed to support it?

Edit2: I found out what's causing it.

If you change these BDSup2Sub lines:
Code:
# Language
langidx: 0
id: en, index: 0

# Vob/Cell ID: 1, 1 (PTS: 0)
to what gabest vobsub tools produce:
Code:
# Language index in use
langidx: 0

# English
id: en, index: 0
# Decomment next line to activate alternative name in DirectVobSub / Windows Media Player 6.x
# alt: English
# Vob/Cell ID: 1, 1 (PTS: 0)
It works so the commented lines must have some meaning.

Last edited by turbojet; 30th April 2009 at 07:46.
turbojet is offline   Reply With Quote
Old 1st May 2009, 11:17   #310  |  Link
micha019
Registered User
 
Join Date: Apr 2009
Posts: 13
Hello,

BDSup2Sub is a fantastic tool.
Will there be soon a support to convert *.idx back to *.sup?
Or is it already possible and I can't find the option to load *.idx/sub files?
micha019 is offline   Reply With Quote
Old 1st May 2009, 12:01   #311  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by turbojet View Post
It works so the commented lines must have some meaning.
Well, a comment is a comment and while it's ok to parse comments to get additional info, I would call a tool buggy that insists on certain comments instead of taking them for what they are.
Still, while I'm not really keen on adding workarounds for bugs in other people's tools I can add that in the next version.

Quote:
Originally Posted by micha019 View Post
Will there be soon a support to convert *.idx back to *.sup?
Or is it already possible and I can't find the option to load *.idx/sub files?
Currently, there is no support to load SUB/IDX. Then again, chances are that there will be.
0xdeadbeef is offline   Reply With Quote
Old 1st May 2009, 12:25   #312  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
Quote:
Originally Posted by 0xdeadbeef View Post
Well, a comment is a comment and while it's ok to parse comments to get additional info, I would call a tool buggy that insists on certain comments instead of taking them for what they are.
Still, while I'm not really keen on adding workarounds for bugs in other people's tools I can add that in the next version.
Thanks as I have a feeling VobsubMuxer development is dead and while the same type of error had been mentioned in the forum over there in february, all that was offered was a workaround by running it through vobsub resync.
turbojet is offline   Reply With Quote
Old 3rd May 2009, 15:01   #313  |  Link
mrr19121970
Registered User
 
Join Date: Mar 2008
Posts: 305
I tried what you suggested:

http://forum.slysoft.com/showpost.ph...12&postcount=5

but even on my machine it's in:

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment
I think it's best for the user to locate their own RTE.

Thanks anyway.
mrr19121970 is offline   Reply With Quote
Old 3rd May 2009, 16:52   #314  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by mrr19121970 View Post
but even on my machine it's in:

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment
This is a general issue of 64bit versions of Windows XP/Vista but shouldn't have an influence on applications reading the key. See e.g.:
http://www.insidetheregistry.com/reg....asp?keyid=387

Anyway, the registry key and the suggested approach both are correct.
http://java.sun.com/javase/6/webnote...e_windows.html
0xdeadbeef is offline   Reply With Quote
Old 3rd May 2009, 20:16   #315  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Changed too much, tested too little. So chances are I messed some things up. Side note: some (multi packet) VobSubs created by versions < 2.1 can't be imported (since they were indeed partly corrupt). Also the support for VobSub import is pretty basic currently. No detection of fading and other fancy things (yet).

03.05.2009 3.4.3 -> 3.5.0
  • Changed: added support for importing VobSub (SUB/IDX)
  • Changed: forced flags are preserved when exporting to VobSub
  • Changed: added/changed comments in IDX files to workaround bug in VobsubMuxer
  • Changed: added command line switch (/tmerge) for setting the maximum time for merging (BD-SUP) captions
  • Changed: end time of one frame can be start time of the next frame (no forced gap of 1 frame any more)
  • Fixed: assumed number of pixels in odd/even RLE buffers was wrong for captions with odd line numbers
  • Fixed: scaling of very small captions (like 3x3) could still lead to crashes when using filters with large radius
0xdeadbeef is offline   Reply With Quote
Old 3rd May 2009, 22:18   #316  |  Link
SquallMX
Special SeeD
 
Join Date: Nov 2002
Location: Mexico
Posts: 333
Quote:
Originally Posted by 0xdeadbeef View Post
Changed too much, tested too little. So chances are I messed some things up. Side note: some (multi packet) VobSubs created by versions < 2.1 can't be imported (since they were indeed partly corrupt). Also the support for VobSub import is pretty basic currently. No detection of fading and other fancy things (yet).

03.05.2009 3.4.3 -> 3.5.0
  • Changed: added support for importing VobSub (SUB/IDX)
  • Changed: forced flags are preserved when exporting to VobSub
  • Changed: added/changed comments in IDX files to workaround bug in VobsubMuxer
  • Changed: added command line switch (/tmerge) for setting the maximum time for merging (BD-SUP) captions
  • Changed: end time of one frame can be start time of the next frame (no forced gap of 1 frame any more)
  • Fixed: assumed number of pixels in odd/even RLE buffers was wrong for captions with odd line numbers
  • Fixed: scaling of very small captions (like 3x3) could still lead to crashes when using filters with large radius
Hi, , but I found a bug for VobSub input, the timecodes for the input and output files are totally wrong:





Sample Sub:
http://rapidshare.com/files/228836683/Bourne.rar

According to subtitlecreator the timecode for the first subtitle is: 00:00:02,102 --> 00:00:04,139, and for the next subtitle is 00:00:04,238 --> 00:00:07,014, żbad timecode parsing?

SquallMX is offline   Reply With Quote
Old 3rd May 2009, 23:41   #317  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Yeah, didn't test that much

03.05.2009 3.5.0 -> 3.5.1
  • Fixed: VobSub: delay was read from wrong position of control buffer (-> wrong end time).
0xdeadbeef is offline   Reply With Quote
Old 3rd May 2009, 23:59   #318  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
Thanks for the new version.

VobsubMuxer now accepts vobsub output.
turbojet is offline   Reply With Quote
Old 4th May 2009, 16:18   #319  |  Link
shon3i
BluRay Maniac
 
shon3i's Avatar
 
Join Date: Dec 2005
Posts: 2,419
@0xdeadbeef, what about DVD SUP (+IFO palete) I/O ? VobSub isn't common format for many DVD muxers?
shon3i is offline   Reply With Quote
Old 4th May 2009, 17:47   #320  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
I hate to disappoint you, but this is very unlikely to happen.
0xdeadbeef 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 00:26.


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