View Full Version : BDSup2Sub - convert and tweak bitmap subtitle streams (VobSub,BD-SUP,BDN XML,HD-SUP)
0xdeadbeef
25th April 2010, 23:03
Dunno what Mike used there but obviously not a DVD format (SUP/IFO or SUB/IDX) as the subtitles definitely use more than 4 colors. Strange screen size and format btw. (900x491, which is something like 16.5/9).
When converting to DVD formats, chances are that a light yellow is converted to white. You can influence this by editing the default DVD palette (http://bdsup2sub.javaforge.com/help.htm#Editing_the_default_DVD_palette_for) and editing the light yellow ("Color 4 light") to a lighter one.
For MKVs, SUB/IDX should be the most compatible bitmap subtitle format - yet several players don't support it either or at least not in higher resolutions. Guess the most widespread format in MKVs is still text based SRT.
Killroy™
25th April 2010, 23:37
Those are the PGS subs from the Blu-ray converted to idx/sub and more than likely played back on MPC-HC since that is how they look to me too.
0xdeadbeef
26th April 2010, 00:04
If so, they're somehow processed by the player as there are dozens of colors in the subs. Even the main yellow color has a slight gradient. There's obviously alpha blending involved, but even this doesn't explain all the shaded colors.
Killroy™
26th April 2010, 00:12
These are the first subs that I have seen from a Blu-ray that looked that good and stylized. I was surprised when I first saw them. I have seen other PGS subs have effects before but none had them like these.
MikeEby
26th April 2010, 04:28
Those are the PGS subs from the Blu-ray converted to idx/sub and more than likely played back on MPC-HC since that is how they look to me too.
Yep...I just use bdSup2Sub...and Played on MPC-HC. I did use the command line options with the eac3to GUI I wrote, I was very empressed myself. :) They looked damn nice! I did crop a little out of the image. The screen grab had the mpc-hc status bar across the bottom, that's why the weird aspect ratio.
Mike
mrr19121970
28th April 2010, 09:21
@ 0xdeadbeef & mrr19121970
Thanks for your suggestions! First I tried the vertical slider but to no avail. While Y-values in a specific XML-file were all the same for a given slider position, after importing the different XML-files into BDSup2Sub the subtitles were all placed at the bottom of the page, no matter what the slider position was. I don't know what happened. Maybe I chose parameters that were incompatible with BDSup2Sub. However, I then was able to export the subtiltes as XML/PGN-files. With a simple texteditor I replaced the different Y-values with one. After re-importing the edited XML-file into BDSup2Sub, the Y-values were now all the same (identical to the ones in the edited XML-file!). That was indeed quite straight forward. Dunno why I haven't thought of it myself. Thanks again to both of you! Your programs rule!
Yes, you're right. You need to preview 1st, and then the slider position is taken into account. I changed this. Please download the version here
http://forum.slysoft.com/showpost.php?p=212826&postcount=1
until I have chance to upload it on the FTP server.
radius
30th April 2010, 22:41
Hi,
I'd like to modify sub colors for a BR from yellow text to white ...
I extracted the subs as XML / PNG but I can't edit 'em directly in photoshop because it does not handle the PNG8 indexed transparency or something :/,
Could someone tell if there's a possibility to do that ?
Thanks
0xdeadbeef
30th April 2010, 23:51
Paint.NET (http://www.getpaint.net/) handles the PNGs correctly and is for free. Should be also able to export a format that PaintShop can handle. When re-importing, BDSUp2Sub should also accept full color PNGs or even other standard formats like GIF or JPEG. Formats that don't use a palette will be automatically converted to a 255 color palette during import.
radius
1st May 2010, 03:38
Paint.NET (http://www.getpaint.net/) handles the PNGs correctly and is for free. Should be also able to export a format that PaintShop can handle. When re-importing, BDSUp2Sub should also accept full color PNGs or even other standard formats like GIF or JPEG. Formats that don't use a palette will be automatically converted to a 255 color palette during import.
Thanks, I'll have a look :)
Laurent
8th May 2010, 12:06
Hi.
Happy to be finally able to post on the forum. 6 days to wait, it was very long.
As my first post, I would like to say "bravo" to 0xdeadbeef for his great soft BDSupToSub.
I don't know whether it is me who does something wrong or whether it is a bug but I have a problem with the CLI mode. I use the following parameters "/fps:24p /scale:1.3,1.3 /filter:mitchell /movout:2.333,10". Scaling is not done. Moving of the subtitles is correctly done. I tried with different filters but no change. At the beginning of the traces, I can see that all the CLI parameters seem to be correctly handled.
Of course, scaling is working with GUI.
The "/scale" parameter seems to be never mentionned in this topic. I just find its existence in the software help page.
0xdeadbeef, any idea ?
Laurent
8th May 2010, 12:20
I have another question for mrr19121970 this time about another great soft Clown_BD. I hope it is not too much off topic but I have not found a thread dedicated to Clown_BD on the forum.
In batch mode, the call to BDSupToSub is done by this command line:
"%PathToCBD%" "Prepare_BDSup2Sub" "%PathToJAVA%" "%PathToDMX%" "_exp" "" ""
I discovered that I can use the last "" to pass parameters to BDSupToSub. Good. Would it be possible to put these parameters somewhere in the ini file for example ? That would be just to not have to edit the bat file each time in order to add these BDSupToSub parameters.
0xdeadbeef
9th May 2010, 15:30
I don't know whether it is me who does something wrong or whether it is a bug but I have a problem with the CLI mode. I use the following parameters "/fps:24p /scale:1.3,1.3 /filter:mitchell /movout:2.333,10". Scaling is not done. Moving of the subtitles is correctly done. I tried with different filters but no change. At the beginning of the traces, I can see that all the CLI parameters seem to be correctly handled.
That's a bug as it looks. Indeed it's possible to preset the scale that is used in the GUI from the CLI, but the scaling itself is not activated (any more). Thus on the command line, no free scaling is done.
I'm pretty sure this worked at some time, but I messed it with a GUI/persistence change later on. Will be fixed in the next release. Then again, my real life job keeps me pretty busy currently, so I can't promise anything.
radius
13th May 2010, 22:47
Hi,
dunno if it's on purpose but when exporting with "export only forced" subs in xml/png format, the xml files still contains all the entries while only the forced pictures are created
0xdeadbeef
13th May 2010, 23:34
Hm, sounds like another bug. I'm too tired now to have a look, but maybe I'll find some time next weekend.
AnryV
16th May 2010, 10:15
Open .xml
http://thumbnails16.imagebam.com/8074/c771c280737023.gif (http://www.imagebam.com/image/c771c280737023/)
???
0xdeadbeef
16th May 2010, 10:27
To quote myself again:
To report problems with a subtitle stream, please either post the zipped stream (if it is compliant with the forum rules) or upload it to a "one click hoster" and send me a PM with the link.
rack04
17th May 2010, 13:33
Is there a way to resize to custom resolutions? I want to resize the forced subtitles from Avatar to 640x360 for playback on my iPhone.
0xdeadbeef
17th May 2010, 18:20
Nope (for a couple of reasons).
What format do you intend to use anyway? Is there a player on the iPhone that actually supports a standard format like SUP/IFO? I would have assumed that it's some proprietary Apple stuff as usual.
rack04
17th May 2010, 19:04
Nope (for a couple of reasons).
What format do you intend to use anyway? Is there a player on the iPhone that actually supports a standard format like SUP/IFO? I would have assumed that it's some proprietary Apple stuff as usual.
I was going to burn in the subtitles using vsfilter.
Killroy™
18th May 2010, 17:32
I'm trying to take the blu ray subtitle source file from Avatar and include only the forced subtitles. I'm totally new at this and I've been sent here from the guys at HDConverttoX.
Is there an easy way to go through the subtitles and remove the non-forced ones and keep only the forced ones?
Save/Export---> check "Keep Forced Subs only". Done.
lotrmith
18th May 2010, 17:41
Save/Export---> check "Keep Forced Subs only". Done.
Damn that was easy. Thanks!
@0xdeadbeef:
Thanks for the REALLY good work. The tool is more powerful and had a much better stability than professional tools ... nice you share it in such a way.
One feature-request:
Often you have two subtitles from one language, one with normal captions an one with only forced captions.
My question is now: Is it possible to merge them ?
Mostly you have titles with combined normal and forced captions, my goal is to get such a combined file created from those two seperated files, but holding the forced-flag.
Regards
0xdeadbeef
19th May 2010, 22:19
My question is now: Is it possible to merge them ?
Mostly you have titles with combined normal and forced captions, my goal is to get such a combined file created from those two seperated files, but holding the forced-flag.
Well, BDSup2Sub is meant as conversion tool with some limited editing capabilities, not as full featured editor where you can add, move or merge subtitles. Honestly I don't think that I want to go in that direction. Also, if both subtitles are exported to XML/PNG, it should be pretty easy to merge the XML files or copy the forced flags via script.
showergel
22nd May 2010, 06:33
I'm curious if there is a way to specify an arbitrary output resolution - for example a number of videos I encode for iPhone/Pre are 480x320 (or some derivative of 480x"y"). Is this possible?
Trav
Majin3
2nd June 2010, 13:52
Hello,
would it be possible to add support for subtitles like THIS (http://www.mediafire.com/?n4yznmyvmyy)?
They give "WARNING: multiple PDS/ODS definitions: result may be erratic" and a lot of lines are missing as a result. I guess that's because there are multiple lines active at once, so only the "♫~" is displayed while the actual lyrics are missing.
A lot of my japanese Blu-rays have subtitles like this and there is no other way I know to include them into an .mkv...
twazerty
6th June 2010, 14:27
I did get a report for my AVCHDCoder that the subs didn't work. I have the original and converted sup file. After I mux them in an AVCHD structure and play the movie the sup created with BDSup2Sub doesn't work. The original does work.
Commandline:
java -Xmx256m -jar bdsup2sub.jar "original.sup" "converted.sup" /res:1080
Files for testing: Download (http://www.mediafire.com/?y5mnmiijjgy)
First time I have trouble with subtitles. This is a specific problem.
0xdeadbeef
6th June 2010, 15:40
Hm, it's a little hard (the nice way to say "nearly impossible") for me to say why some other program or player chokes on this specific subtitle though it has the very same structure as any other subtitles exported by BDSup2Sub.
A quick look at the example shows only two strange things: the first frame is very short and very empty and all the other subtitles are fullscreen (1920x1080).
I would recommend you to export the original subtitles to XML, then re-import the XML and convert it to the target format. This should truncate the images and reveal if the full screen pictures cause the issue in some way. If this still doesn't work, you could try to erase the empty frame(s) either via the built in feature or by editing the XML file.
twazerty
6th June 2010, 21:37
Hm, it's a little hard (the nice way to say "nearly impossible") for me to say why some other program or player chokes on this specific subtitle though it has the very same structure as any other subtitles exported by BDSup2Sub.
A quick look at the example shows only two strange things: the first frame is very short and very empty and all the other subtitles are fullscreen (1920x1080).
I would recommend you to export the original subtitles to XML, then re-import the XML and convert it to the target format. This should truncate the images and reveal if the full screen pictures cause the issue in some way. If this still doesn't work, you could try to erase the empty frame(s) either via the built in feature or by editing the XML file.
Removing the first empty subtitle "solves" the problem. But now the problem isn't actually solved: I use BDSup2Sub in AVCHDCoder via commandline. It is not possible to detect problems in playback in advance. And creating xml+png and doing frame analysis isn't a nice solution. Maybe you can add a fix? If first sub is empty --> remove frame.
0xdeadbeef
6th June 2010, 23:49
Hm, I understand that exporting to/importing from XML alone did not solve it?
Then again, I don't really get why an empty frame should work in the original stream, but not in the one exported by BDSup2Sub.
Have you tried to move the first frame to another time code (e.g. let it start at the 5th second and display it for 1 second).
If this doesn't help, the decoder in question obviously freaks out on how BDSup2Sub encodes an empty frame. Which is kinda weird in a number of ways.
I could maybe add something like an empty frame detection. Bad thing is, that I'd either need to decode all frames when a stream is loaded (which I currently don't) or I could only detect this during creation of the output stream, but then the frames would be deleted without giving the user a chance to fix/investigate it before.
Honestly, I'd prefer to find out what exactly the player in question doesn't like about how BDS2S encodes empty frames. So does this happen on a specific software/standalone player or on several players?
twazerty
7th June 2010, 01:38
Hm, I understand that exporting to/importing from XML alone did not solve it?
Then again, I don't really get why an empty frame should work in the original stream, but not in the one exported by BDSup2Sub.
Have you tried to move the first frame to another time code (e.g. let it start at the 5th second and display it for 1 second).
If this doesn't help, the decoder in question obviously freaks out on how BDSup2Sub encodes an empty frame. Which is kinda weird in a number of ways.
I could maybe add something like an empty frame detection. Bad thing is, that I'd either need to decode all frames when a stream is loaded (which I currently don't) or I could only detect this during creation of the output stream, but then the frames would be deleted without giving the user a chance to fix/investigate it before.
Honestly, I'd prefer to find out what exactly the player in question doesn't like about how BDS2S encodes empty frames. So does this happen on a specific software/standalone player or on several players?
I removed the frame with your GUI. Didn't try other things yet.
Myself I tried Arcsoft Total Media Theatre 3 and my user tried it on a stand-alone player and PowerDVD.
My user reported this: with PowerDVD he saw all subs in a fraction of a second. Like the timestamps are incorrect.
With TMT3 I see a sub but only at the end of the video.
You can test it too. Just grab a 1080p videofile and add both subs and mux them together with tsMuxer.
I'll do some more testing these days. I understand you want to know why it doesn't work. I'll help you with that.
You can make it optional: removal of empty frames.
jimdays2788
15th June 2010, 11:11
Suggestion: You software should extend (lengthen duration, not delay) all sub/idx subtitles in a movie. I could not find a method to do this when I looked at your software, or the documentation. For example, I would like to extend (lengthen duration) all subtitles in a movie by 0.3 second (and also automatically prevent overlapping, since if some some subtitles were extended, they would overlap with the next subtitle. In this case, those subtitles should only extend to the next subtitle.
Subtitle Workshop can easily do this with just a mouse click (edit>timings>time expander), but only on srt subtitles. I want to lengthen duration on all sub/idx subtitles in a movie.
As far as I know, there is no software that can do this (extend duration of sub/idx subtitles).
asarian
21st June 2010, 14:10
I'm trying to lower the forced subs on my Avatar Blu-Ray (Edit -> Move all Captions). Two issues:
1) Seems I can only set a positive Y offset (meaning: I can only move them up)
2) Even if I move them up, for test, they still remain at the exact same position.
I'm new to this program; so surely I misunderstood the process somehow. Can someone please tell me how to accomplish what I want?
Thanks.
Goldy
27th June 2010, 11:27
Hi, I was trying to find a simple and quick tool to convert '.sup' subtitles (DVD extracted with pgcdemux) to '.sub/.idx' to mux into a mkv container. But everytime I try the bdsup2sub to load the sup file, I get an error message like this: 'Offset 1091309618 out of bounds for file 'xxxxxxxx.sup'.
Maybe its a pgcdemux problem, or I'm doing something wrong?
Same problem for me. Any issue to fix that ?
The last empty frame causes the problem. But I can't remove it (open dialog with error).
Edit : It's ok, I found a way to remove it.
Skirge01
27th June 2010, 20:27
I'm having trouble getting this to run via double-clicking the jar file. Any time I try that I get a message of "Could not find the main class: C:\BDSup2Sub\BDSup2Sub.jar. Program will exit." If I place BDSup2Sub.jar in my java installation directory and open a command line, I can type "java -jar BDSup2Sub.jar" and it executes without issue. But, double-clicking the BDSup2Sub.jar file never works, nor does dropping it onto the java.exe or javaw.exe. I installed/reinstalled both the 32-bit and 64-bit JREs (Windows 7 Home Premium 64 bit), then tried installing them outside of C:\Program Files*, just to see if some security setting might be causing the issue. I also right-clicked the .jar and "unblock"ed it, since Windows said it came from another computer. I also edited the system paths for Windows to include the java directories and .jar extensions. Still nothing.
I've tried searching for the "could not find the main class" message, but have found nothing that seems to apply. All of the sites i found say that the manifest is wrong, but I'm quite certain I shouldn't have to be editing or creating that. This seems like a Windows issue, but I'm stumped.
Any suggestions? Thanks!
hoju3508
4th July 2010, 00:05
Is it necessary to change fps if my subtitle came from a 29.97fps DVD and I'm trying to use it with my 23.976fps Blu-ray?
:thanks:
stax76
4th July 2010, 06:02
Hi, on Win7 using system text size 150% (144 DPI, I have a 23" Full HD display) the application is hardly usable:
http://j.imagehost.org/0047/Unbenannt_4.png (http://j.imagehost.org/view/0047/Unbenannt_4)
jasonwc
14th July 2010, 00:38
Would it be possible to add an option to save move settings, so that one could set a default "move all" setting upon input of a subtitle? Currently, you must manually open the "Move all captions" option box, set your preferred setting, and then you can load subs with the "move all" checkbox. It would be easier if you could save the setting for future use.
For example, I would like to set a default setting of "Move outside bounds" for each subtitle I export.
Rack
18th July 2010, 20:30
Same problem for me. Any issue to fix that ?
The last empty frame causes the problem. But I can't remove it (open dialog with error).
Edit : It's ok, I found a way to remove it.
I'm having the same problem as well.
May I ask you how you managed to resolve this issue?
Regards,
deank
26th July 2010, 15:22
@0xdeadbeef:
Hi! I have a weird problem lately and I can't figure out what I'm doing wrong.
I'm creating xml+png, loading the xml to output SUP with BDsup2sub. The XML header is set to 23.976, BDsup2sup option set /fps:keep and the final sup gets wrong timecodes (like 24fps). The only way to get proper .SUP is to set the xml to 24 fps and then at the command line to parse /fps:23.976 - then I get it working properly.
//
And another question: does BDsup2sub process "Dropframe" xml tag?
laserfan
28th July 2010, 17:53
My spouse is somewhat hard-of-hearing, but I am not, so I like to massage subtitle tracks--if she needs them to understand the dialog, I want them to be as unobtrusive as possible e.g. get rid of the "Hearing Impaired" subs [CLEARS THROAT] [SCREAMING] [GUNSHOTS] etc. Well the other day I bought Inglorious Basterds BD (US version) and it must be the worst subtitle track in the history of subtitle tracks! This film has numerous, extended scenes with non-English dialog, and for these scenes has subtitles hard-encoded into the movie frame (not forced subs, lettering-in-the-video-frame). Well, the subtitle track ALSO has, for every one of these scenes, frequent [SPEAKING GERMAN] or [SPEAKING FRENCH] or [SPEAKING ITALIAN] appear constantly in the frame along with the hardsubs!! :eek:
Good grief, what a mess. But I was able with BDSup2Sub to quite easily step-through the subs and ALT-x (delete from export) all these subs, and other SDH titles, that clutter this film. Also used the Erase quite a bit while I was at it.
Great tool!!!
:thanks:
sneaker_ger
1st August 2010, 23:52
@0xdeadbeef:
Hi! I have a weird problem lately and I can't figure out what I'm doing wrong.
I'm creating xml+png, loading the xml to output SUP with BDsup2sub. The XML header is set to 23.976, BDsup2sup option set /fps:keep and the final sup gets wrong timecodes (like 24fps). The only way to get proper .SUP is to set the xml to 24 fps and then at the command line to parse /fps:23.976 - then I get it working properly.
Possibly a problem of drop vs. non-drop timecode notion.
DoctorM
2nd August 2010, 10:47
I've been using BDSup2Sub for doing full PAL DVD conversion to NTSC.
Correct me if I'm wrong, but I suspect there is a problem when resizing 720x480 (from 720x576) for DVD subs.
I think that subtitles are sized for the screen differently than video... so simply resizing from 576 to 480 distorts the aspect ratio of the subpictures.
I can't prove it, but I think I'm seeing that. Would it be more correct to reduce both the X and Y by 83% instead of just vertically?
DMD
14th August 2010, 10:52
Good day to all
I'm a crazy movie on Blu-ray, VAN HELSING.
Is the only film that I could not find the forced subtitles.
I tried using various tools, including tsMuxeR, once I extracted all the subtitles (4) in my language (ITA), and then I have analyzed BDSup2Sub.
3 files relate to special content and comments of the director, and one file refers to the full subtitles.
How to locate the file "Ghost"? :confused:
That this file exists, because when I play the movie, full decrypted with TMT3 forced subtitles are there and appears as the 5th selection.
Can you help or is it an anomaly?
THANKS
setarip_old
14th August 2010, 20:47
@DMD
Hi! I have analyzed BDSup2Sub. 3 files relate to special content and comments of the director, and one file refers to the full subtitles. And did you use BDSup2Sub to go through ALL of the subtitle streams, seeking any subtitles flagged as "forced"?
DMD
15th August 2010, 07:10
Yes! open them all and none contained forced (0 forced)
DoctorM
15th August 2010, 07:25
It seems like a silly question, but those subtitles aren't burned in are they?
DMD
15th August 2010, 07:56
These are all the subtitles demux with tsMuxeR
http://www.allfreeportal.com/imghost2/images/741560Screenshot 006.png (http://allfreeportal.com)
http://www.allfreeportal.com/imghost2/images/581931Screenshot 001.png (http://allfreeportal.com)
Then I tested them one by one with BDSup2Sub, as you can see nobody is forced :confused:
file 4608 (this is what the subtitle Full)
http://www.allfreeportal.com/imghost2/images/100186Screenshot 002.png (http://allfreeportal.com)
file 4609
http://www.allfreeportal.com/imghost2/images/791708Screenshot 003.png (http://allfreeportal.com)
file 4610
http://www.allfreeportal.com/imghost2/images/536001Screenshot 004.png (http://allfreeportal.com)
file 4611
http://www.allfreeportal.com/imghost2/images/327597Screenshot 005.png (http://allfreeportal.com)
Shows the disk TMT3, forced subtitles are regularly activated, and displaying the information of the player as they are fifth selection (ITA)
http://www.allfreeportal.com/imghost2/images/570731tmt3.png (http://allfreeportal.com)
lostclusters
23rd August 2010, 06:31
I have found another movie which does not show forced subs that has forced subs. Stargate Directors Cut is the movie that this utility does not show forced subs.
jmonier
23rd August 2010, 15:08
Occasionally, a movie will have a separate track for the "forced" subs rather than include them in a regular track and this track will NOT be flagged as forced. I know that "Gran Torino" is this way. For these, I just look for a track that is significantly shorter than the regular tracks.
hoju3508
23rd August 2010, 16:00
Would someone recommend a filter to use when converting from 720x480 to 1920x1080?
:thanks:
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.