Log in

View Full Version : BDSup2Sub - convert and tweak bitmap subtitle streams (VobSub,BD-SUP,BDN XML,HD-SUP)


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28 29 30

LeXXuz
19th December 2011, 14:01
Hey guys,

I could use some help with these subtitles:
http://img6.imagebanana.com/img/rqc7qrsu/thumb/tr2_1.png (http://www.imagebanana.com/view/rqc7qrsu/tr2_1.png)http://img6.imagebanana.com/img/9d32x2ry/thumb/tr2_2.png (http://www.imagebanana.com/view/9d32x2ry/tr2_2.png)

It's from the German Tomb Raider 2 Blu-ray, with narrative subtitles in the usual white colour scheme, and a couple of embedded forced subs in bronze colour (see pics).

I already removed the forced subs to use them as a standalone track as vobsubs, but I can't manage to get the colours right.

I played around with the DVD colour palettes, but it didn't work at all, because outline and text seems to be converted to the same colour which should not happen.

Any ideas how to solve this?

nurbs
19th December 2011, 16:56
IIRC vobsubs support a maximum of 4 colors and one of them is for the transparent area, so you simply don't have enough colors to properly convert the Blu Ray sups.

mjuhasz
6th January 2012, 22:12
BDSup2Sub development seems to be discontinued and my attempt to contact the original author failed.

I have worked on the project to fix a few issues and today I made a small bugfix release.

Download link (https://github.com/downloads/mjuhasz/BDSup2Sub/BDSup2Sub.jar)

BDSup2Sub github page (https://github.com/mjuhasz/BDSup2Sub) (for developers):

Changes 4.0.0 -> 4.0.1:

Fixed: Flashing subtitles - if the end time of the current subtitle picture is beyond the start time of the next one the subtitle was set to zero length.
Fixed: Resolution incorrectly read from the dvd ifo file in cases other than 720x576/720x480 16:9.
Fixed: Incorrect (too short) subtitle duration for dvd subtitle frames using subtitle effects

Guest
6th January 2012, 22:30
@mjuhasz

Welcome to the forum and thanks for your contribution.

HeartWare2
7th January 2012, 10:18
Could this program be updated to allow conversion into 3D SBS- and TAB-compatible subtitles (ie. a squashing of the subtitles to half size (half width for SBS and half height for TAB), and then duplicating the subtitle on the other part of the picture at the same position)? That would allow me to keep subtitles on my converted 3D movies and play them back on my PopCorn Hour C-200.

Or does someone know of any program that can do this?

Chetwood
7th January 2012, 13:15
Nice job!

kristian65
29th January 2012, 12:53
Hello i have a small question i need help with
I wanted to have forced subs on a BD so i forced all on the title BUT i didnt check any other boxes then i saved it as BD
After i open it again then i see the frame rate was set to 25 not 23.97 as its on the original????

Ghitulescu
30th January 2012, 15:00
What is "Index 0 is out of bounds"?

Whogie
4th February 2012, 01:33
May I make a feature request: A 720p- (960x720) "Convert resolution" option in conversion settings (or maybe a custom resolution option).
It would seriously relieve a headache I'm encountering with something I'm trying to rip and downsample. Thank you.

Edit:
BDSup2Sub development seems to be discontinued and my attempt to contact the original author failed.
Oh. Damn.

Selur
4th February 2012, 06:38
btw.: does any one have a checked out version of the source code? (the clone option over at http://www.javaforge.com/repository/2997/files seems to be disabled)
okay, overlooked the move to github

eTiMaGo
11th February 2012, 11:18
What is "Index 0 is out of bounds"?

Having the same problem here, trying to put some DVD subtitles into a Blu-ray, but I just can't open them in BDSup2Sub (not to mention MultiAVCHD takes a crap when trying to remux)

Funnily enough this only seems to happen with subtitles in Thai, I tried with English ones off the same disc, no problems.

I tried all manners of other Sub editing/viewing softwares to re-export, hoping this software could read it, but to no avail :(

Here is an example if anyone wants to give it a go:

http://dl.dropbox.com/u/1600280/thai.sup

mjuhasz
11th February 2012, 22:31
You're missing the ifo file. Just copy it from the dvd and load that one instead of the sup.

The HD-DVD-SUP and the DVD-SUP format share the same header and BDSup2Sub needs a way to decide in which format the sup file should be interpreted. Currently it works as follows:

- if there is an ifo file with the same name as the sup (foo.ifo, foo.sup) AND you load the ifo file then BDSup2SUB will interpret the sup as DVD-SUP format and take some additional info (resolution, color-palette, etc.) from the ifo since it's not part of the sup file.
- if you load the sup then by default it is interpreted as HD-DVD-SUP

You tried to load a dvd sup file as a hd-dvd one hence the error message.

I am working on cleaning up the code and creating tests in order to make it easier to fix bugs, make improvements or even add new features. This is a tedious task and my free time is limited but eventually I'll get there.
I have added an improvement issue to github so that we can track the progress: https://github.com/mjuhasz/BDSup2Sub/issues/4



Having the same problem here, trying to put some DVD subtitles into a Blu-ray, but I just can't open them in BDSup2Sub (not to mention MultiAVCHD takes a crap when trying to remux)

Funnily enough this only seems to happen with subtitles in Thai, I tried with English ones off the same disc, no problems.

I tried all manners of other Sub editing/viewing softwares to re-export, hoping this software could read it, but to no avail :(

Here is an example if anyone wants to give it a go:

http://dl.dropbox.com/u/1600280/thai.sup

Chetwood
12th February 2012, 09:32
Cool. Maybe you could add the option to switch between streams?

eTiMaGo
12th February 2012, 12:10
You're missing the ifo file. Just copy it from the dvd and load that one instead of the sup.

The HD-DVD-SUP and the DVD-SUP format share the same header and BDSup2Sub needs a way to decide in which format the sup file should be interpreted. Currently it works as follows:

- if there is an ifo file with the same name as the sup (foo.ifo, foo.sup) AND you load the ifo file then BDSup2SUB will interpret the sup as DVD-SUP format and take some additional info (resolution, color-palette, etc.) from the ifo since it's not part of the sup file.
- if you load the sup then by default it is interpreted as HD-DVD-SUP

You tried to load a dvd sup file as a hd-dvd one hence the error message.



Thanks!!!!! I guess I misunderstood and thought it worked like with BD subs, only the .sup is required. doh!

Pawpcorn
7th March 2012, 14:57
Am I the only one receiving this message???

C:\Users\Gerald>java -jar BDSup2Sub.jar
Invalid or corrupt jarfile BDSup2Sub.jar

I installed the JRE version 6 - 31... and I get this message when trying to open the BDSup2Sub.jar file!

I'm running Windows 7... all legit.

Same thing happened with JRE version 7....

I hope someone can help me, because I desperately need the functions this program delivers. Thanks!!

jmonier
7th March 2012, 15:55
There have been problems generally with 6 - 31. The solution is to make sure that any service using Java (such as SageTV) is stopped and then to uninstall and reinstall that version. The same may be true of version 7 but I have not tried it.

Note that letting the Java install stop Java programs has worked fine with previous versions but it does not work right with 6 -31 (at least for those that run as a service) so it's best to close ALL Java programs and services prior to doing the upgrade.

And, although I don't use BDSup2Sub anymore (since vsfilter now supports sup and pgs), I just tried it and it worked fine with 6 - 31.

r0lZ
27th March 2012, 13:15
Am I the only one receiving this message???

C:\Users\Gerald>java -jar BDSup2Sub.jar
Invalid or corrupt jarfile BDSup2Sub.jar

I have the same problem, but only with BDSup2Sub v4.0.0. The older versions work fine.
What's wrong with v4? Does it require a specific version of the Java runtime?

mjuhasz
1st April 2012, 12:08
BDSup2Sub does not require any specific version of the Java runtime. Java 6 should be fine.

As for other versions, Java 5 is End-Of-Life hence unsupported, and Java 7 is not tested with version 4. There is ongoing development on github (https://github.com/mjuhasz/BDSup2Sub) and for the next release testing is planned on the Oracle JRE and OpenJDK, version 6 and 7, on platform Linux, Mac OSx and Windows. No timeline though.

At the moment I don't have access to a Windows 7 machine to reproduce the issue. I tried on a Window 2008 Server with Oracle JRE 6 and it worked. I also tried to run BDSup2Sub on Linux on the Oracle JRE 6, OpenJDK 6 and Oracle JRE 7 and they all worked. I will try to find a Windows 7 host to reproduce the issue.

laserfan
1st April 2012, 16:15
I don't understand the invocation used. I just launch BDSup2Sub.jar and it works, but if I try Pawpcorn's line it looks like this:

C:\Program Files (x86)\BDSup2Sub>java -jar BDSup2Sub.jar
'java' is not recognized as an internal or external command,
operable program or batch file.

Atak_Snajpera
2nd April 2012, 19:09
you have to specify full path to java.exe
C:/... /java.exe -jar ...

Rectal Prolapse
5th April 2012, 01:50
mjuhasz, any plans to fix the rendering bugs with regards to multiple region subtitles? (Please see my thread for my C++ solution that could give you some ideas on approaching the problem - although I don't think I deal with PGS cropping properly but that issue will be saved for another day)

mbcd
5th April 2012, 10:40
Which thread did you mean ?

I wrote a parser by myself last months, but I coudnt sold problem with multiregion in BDN/XML because I didnt found an example. So I stopped developing for a while and started another project until I found a solution for it.

You got one ?

mjuhasz
5th April 2012, 17:58
mjuhasz, any plans to fix the rendering bugs with regards to multiple region subtitles? (Please see my thread for my C++ solution that could give you some ideas on approaching the problem - although I don't think I deal with PGS cropping properly but that issue will be saved for another day)

I checked your thread but the download links are unavailable. Can you upload it and share it with me? A sample file would also be handy. I will create an issue in the github tracker with referencing your work then.

I am in the middle of doing code cleanup and refactoring, adding unit tests, etc. Once the codebase is more solid I can look into multiple region subtitles.

Rectal Prolapse
5th April 2012, 23:23
mbcd: Oh, I was talking about the rendering of multiregion PGS in the PNG output - the code does not yet output the proper BDN/XML where a PNG for each region is generated and the BDN code references the different regions. I will have to review the BDN specification again to get this right!

mjuhasz, I will look into updating the links again.

Rectal Prolapse
5th April 2012, 23:36
Okay I updated the link to the source code in the first post of this thread:

http://forum.doom9.org/showthread.php?t=164370

(mbcd, you can check out the code there)

mbcd
6th April 2012, 07:22
Yes, sorry, was a little bit confused.

BDSup2Sub is not able to handle multiregion for BDN/XML right now. So I wondered about fixes.

We need a proper solution for BDN/XML, but hard to find.
Output of proper XML should be the next goal, it is confusing if programs are able to read multiregion but throwing them away on converting.

@ mjuhasz:

I always have big problems with converting framerates in BDSup2Sub, maybee you could check that code too. I`m not familiar enough with java or c++

Rectal Prolapse
7th April 2012, 06:46
Oh - I forgotten that I had this document - AFAIK it is a publicly available document from Sony, and I archived it here:

http://dl.dropbox.com/u/1156664/BDN-OFS-Formats.zip

I'll have to go over this and make the necessary changes for proper BDN support with multiple regions. At any rate, I hope you guys will find this usefull too!

Mr Magic
13th April 2012, 14:22
I have the same problem, but only with BDSup2Sub v4.0.0. The older versions work fine.
What's wrong with v4? Does it require a specific version of the Java runtime?
The download for 4.0.0 on Sendspace is corrupt. It says the file is 700 KB but you only get 484 KB.

Try the download from VideoHelp, it worked for me:

http://www.videohelp.com/download/BDSup2Sub400.jar

r0lZ
13th April 2012, 14:56
Thanks! :-)

rayyu882
14th April 2012, 22:10
Hi, I got the same "IndexOutOfBoundsException" error like the previous poster (http://forum.doom9.org/showpost.php?p=1450854&postcount=767) when I tried to convert the Avatar blu-ray Na'vi subtitles, but I couldn't find a solution. I tried 2 different computers and BDSup2Sub version 400 and 401, still no luck, is there any workaround? or other tool I could use to convert this so I can remuxing the mkv file for handbrake?

Any help would be greatly appreciated, Thank you so much!

sneaker_ger
14th April 2012, 22:40
Try loading with AviSynth's SupTitle() plug-in, then use avs2bdnxml to create bdn+xml and open that in BDSup2Sub.

bunklung
15th April 2012, 13:38
The download for 4.0.0 on Sendspace is corrupt. It says the file is 700 KB but you only get 484 KB.

Try the download from VideoHelp, it worked for me:

http://www.videohelp.com/download/BDSup2Sub400.jar

Same thing here. I was using an older version, until I found 4.0.0 inside of Clown_BD

Maybe OP can fix the corrupted file?

mjuhasz
16th April 2012, 06:30
I got the same "IndexOutOfBoundsException" error like the previous poster

If you share the file with me then I will check the issue.

The download for 4.0.0 on Sendspace is corrupt. It says the file is 700 KB but you only get 484 KB.

You can get the latest BDSup2Sub v4.0.1 from here (https://github.com/downloads/mjuhasz/BDSup2Sub/BDSup2Sub.jar):

You can read about the changes here (http://sw-planet.blogspot.com/search/label/Open%20Source).

shroomM
18th April 2012, 07:30
Seeing as the mjuhasz is active here, I'm posting this here as well. Just in case the GitHub issues section is not monitored :)

It's an issue with loading specific SUP files.

Link to the GitHub issue:
https://github.com/mjuhasz/BDSup2Sub/issues/5

Sorry for the cross linking.

mjuhasz
18th April 2012, 19:47
Seeing as the mjuhasz is active here, I'm posting this here as well. Just in case the GitHub issues section is not monitored :)

It's an issue with loading specific SUP files.

Link to the GitHub issue:
https://github.com/mjuhasz/BDSup2Sub/issues/5

Sorry for the cross linking.

I received the automatic email from GitHub. Thank you for creating the issue and sharing the sample file.
I had a brief look and indeed, it's a format BDSup2Sub is not prepared for. I will try to fix it in the next minor release.

Cheers,
Miki

Atak_Snajpera
30th April 2012, 13:34
error message after loading dvd subtitles

http://i.imgur.com/Ipbtv.png

subtitles -> http://www.mediafire.com/?xg9oulfvj9eacpf

this only happens if X is larger than 15.

# Language index in use
langidx: X

Pawpcorn
8th May 2012, 18:58
Am I the only one receiving this message IN THE "JAVA VIRTUAL MACHINE LAUNCHER" box ???

C:\Users\Gerald>java -jar BDSup2Sub.jar
Invalid or corrupt jarfile C:\Users\Gerald\Downloads\BDSup2Sub.jar

I installed the JRE version 6 - 31... and I get this message when trying to open the BDSup2Sub.jar file!

I'm running Windows 7... all legit.

Same thing happened with JRE version 7....
just discovered that I must have downloaded a corrupt version!!!! NEW 4.00 or 4.01 versions, just downloaded, work fine!!! Thanks guys!!!

mood
11th May 2012, 01:14
4.00 or 4.01 versions Not work with JRE version 7 and not render correct some parts of subtitle some line have a black background

r0lZ
14th May 2012, 12:15
I need to move all subpics to the left or to the right by a certain offset. In other words, I need to add or subtract a few pixels to the current X position of the subpic. (I know that it is possible to move the subpics to the left or right border and then apply an offset, but that's not what I need.)

I need this because I would like to write a GUI to convert a BD 3D to a side-by-side or top/bottom video file. The GUI will use BDSup2Sub, AviSynth and VSFilter's VobSub() function to hardcode the subtitle on the video. It is important to be able to show the subtitles with a 3D depth effect, so that they appear on top of the objects moving out of the screen. To archive that effect, it is sufficient to move the subtitle of the left eye view by some pixels to the right, and the subtitle of the right eye view to the left, but unfortunately, there is no way to tell VobSub to shift the subtitles a little bit.

I have already found a solution by cropping a bit the video before applying the subtitle and then restoring the cropped part, but this has also the effect to shrink the subtitles in X (as the width of the video is less than its original width and VobSub compensates automatically), and that method slows down the Avisynth script rendering.

0xdeadbeef, can you add an option to apply the X (and Y) offsets to the current subtitle position? (Of course, I need that option available from the command line.)

SassBot
24th May 2012, 15:57
For anyone interested, I've been spending the last few days porting deadbeef's last version of BDSup2Sub to C++/Qt. At this point it's maybe 25% done. Source code is here. (https://github.com/amichaelt/BDSup2SubPlusPlus)

Pawpcorn
24th May 2012, 16:43
Well, I would certainly want to wish you god luck on this project! I use BDSup2Sub every week to resolve a 1080p subtitle into PAL DVD 720 x 576 format, and adjust VOB subtitle sizes and positioning.

If you could also figure out how to show which color blocks ("color 1", "color 3" for example) were assigned to the Character, Outline, and Background... And give us the ability to reassign it, that would be fantastic.

Every week I create a DVD movie for my Thai students, with dual subtitles... And often the color block assignments are in conflict (such as the same color block being used for Character on one subtitle, and Outline, on the other).

This kind of color block cross asignment cannot be fixed in PgcEdit, but thoretically can be fixed using SubtitleCreator.

The problem THERE is that development on SC ended in 2008, and (using Windows7 and Thai VOB (idx/sub) subtitles in) SC often trashes some of the graphic subtitles.

Subtitle creator also crashes if fed a 1080p subtitle.

Anyway... Good Luck!!!! BDSup2Sub is an invaluable tool, and if you could duplicate its functions (and maybe add a couple new features such as I suggested above) I'm sure you would have many grateful users!

Take care,
Pawpcorn

SassBot
24th May 2012, 16:59
Yeah, it's going well. Most of the code can be copy-and-pasted over. Most of the hard translation, such as the internal bitmap class to using Qt's QImage class is already done. And yeah, once I get it feature-matching I can look into extending. I'm hoping to be done mid next week unless I hit snags. Right now, DVD idx/sub and ifo/sup decoding is done. Working on getting BD and HDDVD docoding done today along with as much output code as I can as well.

Right now, the code is a little messy due to lots of copy-and-paste and stubbing so the organization will be in flux for a while.

r0lZ
24th May 2012, 17:02
This kind of color block cross asignment cannot be fixed in PgcEdit, but thoretically can be fixed using SubtitleCreator.
You can also fix them on the final DVD with DVDSubEdit.

@SassBot: I wish you good luck too! I hate java apps (although I must agree that BDSup2Sub is a good and useful app!)

And I add my suggestion. ;-)
Could you consider to add the possibility to shift the subtitles in X or Y by a certain amount of pixels? (See my request here (http://forum.doom9.org/showthread.php?p=1574490#post1574490).)

SassBot
24th May 2012, 17:05
Yeah, I saw that. File it as a feature request on the github page. Anyone else do the same.

r0lZ
24th May 2012, 17:09
Thanks. BTW, your link above is broken. This one is OK: https://github.com/amichaelt/BDSup2SubPlusPlus

SassBot
24th May 2012, 17:15
Yeah, I noticed that then fixed the post.

Pawpcorn
25th May 2012, 04:18
You can also fix them on the final DVD with DVDSubEdit.

@r0lZ, thanks for the suggestion! I gave DVDSubEdit a try, and it worked perfectly, without corrupting the Thai subtitles, the way SubtitleCreator had done.

Thanks!:thanks:
Pawpcorn

Chetwood
25th May 2012, 06:24
Just so it doesn't get missed: when extenting features please allow it to open VobSubs containing several languages. Thx.

Pawpcorn
25th May 2012, 06:33
Just so it doesn't get missed: when extenting features please allow it to open VobSubs containing several languages. Thx.

I'll second that request.... Thai seems to be a particularly difficult language to display and/or resolve....

Let me know if you need a Thai subtitle. :)

Take care,
Pawpcorn

SassBot
25th May 2012, 13:10
Put your requests on the issue list (https://github.com/amichaelt/BDSup2SubPlusPlus/issues), please. Then it won't get lost. :)