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 June 2012, 21:31   #1001  |  Link
SassBot
Guest
 
Posts: n/a
Yes, it does. Though, don't get too tied to the current options as things will change somewhat. The options are going to be changed to be more like Unix-style options and and there will be no more need to double quote escape anymore like the old Java version required if you used wildcards for input or output. The general form will be bdsup2sub++ [options] -o outfile infile. I'm also going to be splitting any options that currently take two parameters to separate options that take one parameter a piece as this will help simplify parameter checking. I should have more solid info on the final decision either later tonight or tomorrow.

Last edited by SassBot; 28th June 2012 at 21:34.
  Reply With Quote
Old 29th June 2012, 06:41   #1002  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,279
Quote:
I should have more solid info on the final decision either later tonight or tomorrow.
Nice Thanks for the info!

Cu Selur

Ps.: Are you planning to also compile Linux&Mac versions of 'bdsup2sub++' ?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 29th June 2012, 15:15   #1003  |  Link
SassBot
Guest
 
Posts: n/a
I have no Mac so I would be unable to compile for OS X at this time but if someone would like to do so that would be a great help. I am working to get it packaged and included into Debian Testing, though. I am waiting to finish up the new CLI options before I submit that for approval. Once I get that done, I can look at other distros. The problem is that with my using GCC 4.7.x it makes it a bit more difficult to support something other than pretty recent distros at least using online automated build systems. I looked into using OpenSUSE Build but I couldn't get it to work for any of the Debian or Ubuntu versions due to the GCC version dependency. I might be able to get it to compile a package for Fedora 17 though.
  Reply With Quote
Old 29th June 2012, 15:25   #1004  |  Link
SassBot
Guest
 
Posts: n/a
So here is the output of doing "--help". Let me know what you think about the options and please offer any suggestions on name changes that would be better.

Code:
Syntax:
bdsup2sub++ [options] -o outfile infile

Options:
 -h, --help             List options
 --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 inside screen ratio <x>.
 --move-in-offset x     Set +/- offset to move captions by.
 --move-out-ratio x     Move captions outside screen ratio <x>.
 --move-out-offset x    Set +/- offset to move captions by.
 --move-x x             Move captions horizontally. May be left,right,center.
 --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.
 --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.
 --fix-invisible        Fix zero alpha frame palette.
 --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 luma low/med threshold 0..255.
 --med-hi-thr x         Set luma 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'
Press <RETURN> to close this window...
To note, for r0lz's feature request the move-x option would also accept a value of "origin" to support moving from the original x position. I just didn't include it in the help text yet.

Last edited by SassBot; 29th June 2012 at 15:38.
  Reply With Quote
Old 29th June 2012, 15:44   #1005  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
Great!
so, to move all subpics to the left by 10 pixels, I should use "--move-x -10". Right?

BTW, it may be a good thing to add an option to ignore the INI file. Currently, all arguments must be specified in the command line if you need to overwrite the user's defaults. It's not easy. An option to use the hardcoded defaults would be nice.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 15:47   #1006  |  Link
SassBot
Guest
 
Posts: n/a
It would be "--move-x origin --move-x-offset -10". Ok, I can add an option to ignore that. Something like "--ignore-settings"?
  Reply With Quote
Old 29th June 2012, 15:50   #1007  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
Ah, OK!
Yes, --ignore-settings is fine.
Thanks!
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 15:53   #1008  |  Link
SassBot
Guest
 
Posts: n/a
Just remember you pass the same values as before it's just for ones that would normally be comma delimited I've split into two separate options to make it easier to validate the values since I don't need to do string splitting, etc. So this affects the fps, movin, movout, movex and scale options from the original version.
  Reply With Quote
Old 29th June 2012, 16:01   #1009  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
I've seen that. It's easier for me too! :-)
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 17:28   #1010  |  Link
SassBot
Guest
 
Posts: n/a
So whilst working on these commandline options, I've noticed that both through the GUI and through the CLI that the program applies a frame rate conversion to BD SUP or XML/PNG if you don't specify /fps:keep or set the target frame rate in the conversion settings dialog. Does this behavior make sense to anyone? It makes more sense to me that you would never apply any frame rate conversion unless specifically told to do so, yet it does the opposite for these formats.
  Reply With Quote
Old 29th June 2012, 17:31   #1011  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
I agree. /fps:keep should always be the default.
Perhaps you have a setting in your INI that forces the conversion?
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 17:47   #1012  |  Link
SassBot
Guest
 
Posts: n/a
No, it's just weird because if I run a file through without setting /fps:keep I get a different result from setting it. Same with the GUI. If I don't make sure the target fps matches the source FPS and check the convert FPS check box the subtitle timings change.
  Reply With Quote
Old 29th June 2012, 17:58   #1013  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
IMO, it's a bug.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 18:01   #1014  |  Link
SassBot
Guest
 
Posts: n/a
Yeah, whenever I don't specify /fps:keep the program always outputs to the console: "Target frame rate set to 25fps". So I'm definitely going to fix that.

I'm also thinking of switching the "ignore-settings" option to being "load-settings" so that you have to specifically tell it you want to use the INI settings rather than the other way around when using the CLI. Unless someone has a good reason to object.
  Reply With Quote
Old 29th June 2012, 18:13   #1015  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,072
Quote:
Originally Posted by SassBot View Post
Unless someone has a good reason to object.
Personally, no, as long as it is still loaded by default when the GUI is opened.
The problem is that the GUI is opened also when a single file argument is given. IMO, it should load the user settings in that case.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline   Reply With Quote
Old 29th June 2012, 18:14   #1016  |  Link
SassBot
Guest
 
Posts: n/a
Okay, I at least now see why it's doing this via the CLI now. The help text doesn't make this very clear but apparently as is you pretty much have to specify the resolution and target fps because otherwise it's going to always assume PAL resolution and thus set your target frame rate to 25fps. Now I still don't know why the GUI is shifting timing, though, but that can be fixed.

Quote:
Originally Posted by r0lZ View Post
Personally, no, as long as it is still loaded by default when the GUI is opened.
The problem is that the GUI is opened also when a single file argument is given. IMO, it should load the user settings in that case.
Yes, the code will be such that the settings file is only read in if the GUI is opened which would also cover the case you mention too.

Last edited by SassBot; 29th June 2012 at 18:19.
  Reply With Quote
Old 29th June 2012, 22:02   #1017  |  Link
SassBot
Guest
 
Posts: n/a
Ok, this should hopefully be the latest beta version until I push the 1.0.0 release. The CLI options parsing is finally done. Please bang on it to see if this switch over introduced any bugs that I might have missed. It also now supports the "move-x origin" option you wanted, r0lz.

As always, the download is here.

Below is the latest version of the help output with all the options.

Code:
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.
 --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.
 --fix-invisible        Fix zero alpha frame palette.
 --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'
Press <RETURN> to close this window...
  Reply With Quote
Old 29th June 2012, 22:12   #1018  |  Link
SassBot
Guest
 
Posts: n/a
Download has been updated. I had a logic bug on whether not to convert resolution which was causing the resolution parameter to be ignored.
  Reply With Quote
Old 30th June 2012, 00:38   #1019  |  Link
mood
Registered User
 
Join Date: May 2012
Posts: 66
Hi, SassBot...

can you fix the GUI too??, not only the CLI??

Can you make a change log for new versions or fix.

In gui, menu item exit not work.

The last version number is a same was a few days b4, please make a change log.

Thanks for your work in this great tool.
mood is offline   Reply With Quote
Old 30th June 2012, 02:12   #1020  |  Link
SassBot
Guest
 
Posts: n/a
Quote:
Originally Posted by mood View Post
Hi, SassBot...

can you fix the GUI too??, not only the CLI??
Such as?

Quote:
Originally Posted by mood View Post
Can you make a change log for new versions or fix.
I can when I push out the full release.

Quote:
Originally Posted by mood View Post
In gui, menu item exit not work.
Weird. I must have overlooked that and no one else noticed.

Quote:
Originally Posted by mood View Post
The last version number is a same was a few days b4, please make a change log.
No, the version I released today is bumped to beta 5. The one from a couple of days ago was beta 4. I only really bump the number when I feel like it warrants it since I'm rapidly fixing and changing things for the real release and bumping the number for a bunch of quick fixes is too tedious.

I'll be doing a more thorough changelog once it hits release.

Quote:
Originally Posted by mood View Post
Thanks for your work in this great tool.
You're welcome.
  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 18:42.


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