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. |
|
|
Thread Tools | Search this Thread | Display Modes |
17th July 2012, 15:47 | #1 | Link |
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' 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. |
17th July 2012, 17:37 | #4 | Link |
PgcEdit daemon
Join Date: Jul 2003
Posts: 7,483
|
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 |
17th July 2012, 17:38 | #5 | Link |
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 18:47. |
19th July 2012, 00:15 | #10 | Link |
Guest
Posts: n/a
|
Yeah, just seems to be a typo carried over from the Java version. Thanks for spotting that.
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 03:52. |
24th July 2012, 06:25 | #12 | Link |
Registered User
Join Date: May 2012
Posts: 96
|
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 06:40. |
21st August 2012, 05:59 | #14 | Link |
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> |
24th August 2012, 11:00 | #18 | Link |
Registered User
Join Date: Oct 2007
Posts: 385
|
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|