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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 17th July 2012, 16:47   #1  |  Link
SassBot
Guest
 
Posts: n/a
BDSup2Sub++ - convert and tweak bitmap subtitle streams (VobSub,BD-SUP,BDN XML,HD-SUP

Moderator Note: As paradoxical has assumed responsibility for continued development of this tool, the discussion is moved to:

http://forum.doom9.org/showthread.php?p=1613303

and this thread is closed. Thank you, SassBot, for your work and thank you, paradoxical, for your willingness to assume responsibility.

----- [resume original SassBot posting]

So as to separate from the other BDSup2Sub thread, I am creating a separate thread for my port BDSup2Sub++. For anyone who hasn't been following this is a port of the original BDSup2Sub to C++/Qt that I did in hopes of reviving what was a stagnating project. It has all the same functionality as the original version with some additional fixes and enhancements (such as proper support for importing SUB/IDX with multiple languages). If you have any issues or enhancement requests please post them in this thread or here. The CLI syntax has been modified and is listed below.

Usage:
Code:
BDSup2Sub++ 1.0.0 0xdeadbeef, mjuhasz, Adam T.
Syntax:
bdsup2sub++ [options] -o outfile infile

Options:
 -h, --help             List options
 --load-settings        Set to load settings stored in INI file.
 --resolution x         Set resolution to 480, 576, 720 or 1080. Default: 576.
                        Supported values: keep, ntsc=480, pal=576, 1440x1080.
 --fps-source x         Synchronize source frame rate to <x>. Default: auto.
                        Supported values: 24p=23.976, 25p=25, 30p=29.967.
 --fps-target x         Convert the target frame rate to <x>. Default: keep.
                        Supported values: 24p=23.976, 25p=25, 30p=29.967.
 --delay x              Set delay in ms. Default: 0.0.
 --filter x             Set the filter to use for scaling. Default: bilinear.
                        Supported values: bilinear, triangle, bicubic, bell,
                        b-spline, hermite, lanczos3, mitchell.
 --palette-mode x       Palette mode: keep, create, dither. Default: create.
 --minimum-time x       Set the minimum display time in ms. Default: 500.
 --merge-time x         Set max time diff to merge subs in ms. Default: 200.
 --move-in-ratio x      Move captions from inside screen ratio <x>.
 --move-out-ratio x     Move captions from outside screen ratio <x>.
 --move-y-offset x      Set optional +/- offset to move captions by.
 --move-x x             Move captions horizontally from specified position.
                        Supported values: left, right, center, origin.
 --move-x-offset x      Set optional +/- offset to move captions by.
 --crop-y x             Crop the upper/lower n lines. Default: 0
 --alpha-crop x         Set the alpha cropping threshold. Default: 10
 --scale-x x            Scale captions horizontally by factor. Default 1.0.
 --scale-y x            Scale captions vertically by factor. Default 1.0.
 --no-export-palette    Do not export palette file.
 --export-palette       Export target palette in PGCEdit format.
 --forced-only          Export only forced subtitles.
 --force-all x          Set or clear the forced flag for all subpictures.
                        Supported values: set/clear.
 --swap                 Swap Cr/Cb components.
 --no-fix-invisible     Do not fix zero alpha frame palette.
 --fix-invisible        Fix zero alpha frame palette.
 --no-verbatim          Switch off verbatim console output mode.
 --verbatim             Switch on verbatim console output mode.

Options only for SUB/IDX or SUP/IFO as target:
 --alpha-thr x          Set alpha threshold 0..255. Default 80.
 --med-low-thr x        Set luminance low/med threshold 0..255.
 --med-hi-thr x         Set luminance med/hi threshold 0..255.
 --language x           Set language to <n>. Default: de (Vobsub Only).
 --palette-file x       Load palette file <n>. Overrides default palette.

Output:
 -o x, --output x       Specify output file.

Wildcard support:
Use "*" for any character and "?" for one character in the source name
Use exactly one "*" in the target file name.
Example:
bdsup2sub++ --resolution 720 --fps-target 25p -o dvd_*.sub 'movie* 1?.sup'
Current version is 1.0.0 (17/7/2012):
Download link: here.

Currently I only am providing Windows builds, but the source can be obtained here if you want to build yourself. If anyone can provide OS X builds that would be great since I do not have access to a Mac, though you will need at least GCC 4.7.0 or some other compiler with support for all the C++11 features I use.

For Linux support, I am currently working to get this uploaded into Debian Testing. For Arch users, check this out. I will also look into making packages for other distros as it is feasible due to the GCC version requirement.

Last edited by Guest; 28th January 2013 at 22:44.
 
Old 17th July 2012, 17:45   #2  |  Link
mood
Registered User
 
Join Date: May 2012
Posts: 84
Thanks SassBot...

You have done a great job with this awesome tool.
mood is offline  
Old 17th July 2012, 18:30   #3  |  Link
SassBot
Guest
 
Posts: n/a
So I refreshed the 1.0.0 with a fix for what r0lz reported. Redownload if you have already have done so. The link is still the same as in the first post.
 
Old 17th July 2012, 18:37   #4  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,357
Happy to see the birth of v1.0! :-)

BTW, I've found another little bug. For whatever reason, I have now a BDSup2Sub++.ini file in my Windows\system32 directory. Perhaps when I did some CLI tests the CD was system32. Anyway, the default ini should always be saved in the installation dir (or in %appdata%).
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline  
Old 17th July 2012, 18:38   #5  |  Link
SassBot
Guest
 
Posts: n/a
That's what happens. It's gets the directory of where the exe is running and saves it there.

I'm changing it so it uses %APPDATA% or on *nix platforms so that it saves to $HOME/.config. That'll be in the next version.

Last edited by SassBot; 17th July 2012 at 19:47.
 
Old 18th July 2012, 11:28   #6  |  Link
mini-moose
Registered User
 
Join Date: Oct 2007
Posts: 411
I think the download link is broken. It leads to 0 found on videohelp: "0 tool hits, Showing 0 to 0 tools"
mini-moose is offline  
Old 18th July 2012, 14:34   #7  |  Link
sl1pkn07
Pajas Mentales...
 
Join Date: Dec 2004
Location: Spanishtán
Posts: 448
https://github.com/downloads/amichae...up2sub++100.7z
sl1pkn07 is offline  
Old 18th July 2012, 14:52   #8  |  Link
SassBot
Guest
 
Posts: n/a
Quote:
Originally Posted by mini-moose View Post
I think the download link is broken. It leads to 0 found on videohelp: "0 tool hits, Showing 0 to 0 tools"
Yeah, link seems to be flaky. Sometimes works sometimes doesn't.
 
Old 19th July 2012, 00:17   #9  |  Link
mini-moose
Registered User
 
Join Date: Oct 2007
Posts: 411
Quote:
Originally Posted by SassBot View Post
Supported values: 30p=29.967.
you mean 30p=29.970 (30000/1001) ?

Also, I think actual 24fps is missing (24.000 vs 23.976).

Last edited by mini-moose; 19th July 2012 at 00:32.
mini-moose is offline  
Old 19th July 2012, 01:15   #10  |  Link
SassBot
Guest
 
Posts: n/a
Quote:
Originally Posted by mini-moose View Post
you mean 30p=29.970 (30000/1001) ?
Yeah, just seems to be a typo carried over from the Java version. Thanks for spotting that.

Quote:
Originally Posted by mini-moose View Post
Also, I think actual 24fps is missing (24.000 vs 23.976).
It's not missing. You just specify "24". 0xdeadbeef defined the '24p' as 24000/1001 and if you want 24.0 you just specify '24'. That's just from the code I absorbed. That list isn't meant to be the only values you can specify just a list of predefined shortcut values so you don't have to specify the rational values.

Last edited by SassBot; 19th July 2012 at 04:52.
 
Old 19th July 2012, 09:31   #11  |  Link
mini-moose
Registered User
 
Join Date: Oct 2007
Posts: 411
Quote:
Originally Posted by SassBot View Post
Thanks for spotting that.
It's not missing. You just specify "24".
great. yes, I looked at the gui and saw it has all the relevant fps choices. so the 24p/25p etc are just "shortcuts" to specifying the full number.
mini-moose is offline  
Old 24th July 2012, 07:25   #12  |  Link
mood
Registered User
 
Join Date: May 2012
Posts: 84
Hi, SassBot...

I found a bug in version 1.0.0.

When I edit idx/sub created BDSup2Sub++ and use "Edit DVD Frame Palette" to set black background in one line...

In my TV not appears black background on line that I have set, but the problem with randomly background come back in many lines of subtitle.

Like this:



Here is the idx/sub with the problem:
http://www.mediafire.com/?91q982ruzbq2qze

The bug of randomly background in many lines back again.

Note: I use the same image, because the problem is the same

Last edited by mood; 24th July 2012 at 07:40.
mood is offline  
Old 30th July 2012, 18:08   #13  |  Link
SassBot
Guest
 
Posts: n/a
Yeah, that's still on my list of things to nail down. I don't know why it came back. I'm busy with a few other projects at the moment, but I should begin new work by next week.
 
Old 21st August 2012, 06:59   #14  |  Link
qknet
Registered User
 
Join Date: Aug 2005
Posts: 23
Dear SassBot,

I appreciate it when you decided to provide a non-java version.

I had my first try with the C++ version (the most up-to-date one), and it failed to load xml file (this one is handled perfectly by the java version). It says "First subpicture has timestamp of -00:00:15:857. Please specify proper delay value to correct this."

A part of the xml file is as follows:

Code:
<Description>
<Name Title="Subtitle" Content=""/>
<Language Code="vie"/>
<Format VideoFormat="1080p" FrameRate="23.976" DropFrame="false"/>
<Events LastEventOutTC="00:08:18:03" FirstEventInTC="00:00:31:20"
ContentInTC="00:00:00:00" ContentOutTC="00:08:18:12" NumberofEvents="49" Type="Graphic"/>
</Description>
<Events>
<Event Forced="False" InTC="00:00:31:20" OutTC="00:00:37:09">
<Graphic Width="1920" Height="1080" X="0" Y="0">00000764.png</Graphic>
</Event>
<Event Forced="False" InTC="00:02:56:07" OutTC="00:02:59:03">
<Graphic Width="1920" Height="1080" X="0" Y="0">00004232.png</Graphic>
</Event>
<Event Forced="False" InTC="00:03:41:19" OutTC="00:03:47:22">
<Graphic Width="1920" Height="1080" X="0" Y="0">00005324.png</Graphic>
</Event>
<Event Forced="False" InTC="00:03:56:13" OutTC="00:03:58:07">
<Graphic Width="1920" Height="1080" X="0" Y="0">00005678.png</Graphic>
</Event>
<Event Forced="False" InTC="00:04:02:13" OutTC="00:04:06:00">
<Graphic Width="1920" Height="1080" X="0" Y="0">00005822.png</Graphic>
</Event>
qknet is offline  
Old 21st August 2012, 15:26   #15  |  Link
SassBot
Guest
 
Posts: n/a
Post the file and I'll look at it.
 
Old 22nd August 2012, 03:21   #16  |  Link
qknet
Registered User
 
Join Date: Aug 2005
Posts: 23
Quote:
Originally Posted by SassBot View Post
Post the file and I'll look at it.
Here you go. https://dl.dropbox.com/u/19135597/temp.rar

And, can you support idx/sub at 1080p?
qknet is offline  
Old 22nd August 2012, 17:44   #17  |  Link
SassBot
Guest
 
Posts: n/a
What do you mean? You can export Vobsub at 1080p. There is nothing additional to support.
 
Old 24th August 2012, 12:00   #18  |  Link
mini-moose
Registered User
 
Join Date: Oct 2007
Posts: 411
app crash

the app crashes on a sup I tried to convert to vobsubs. It's a rather weird one. the old bdsup2sub handles it with tons of
fixing.

it can be found here:

http://www.mediafire.com/?zj86cr232ijlvfw
mini-moose is offline  
Old 24th August 2012, 16:45   #19  |  Link
SassBot
Guest
 
Posts: n/a
Thanks. Will look into it. Been a bit busy with some other stuff (mostly getting distracted by watching Burn Notice and gaming) but I promise to start working on this again real soon. I have definitely not abandoned it.
 
Old 24th August 2012, 16:49   #20  |  Link
SassBot
Guest
 
Posts: n/a
BTW qknet can you repost your file? The link isn't working.
 
Closed Thread

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 19:47.


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