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 16th April 2009, 08:29   #241  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
0xdeadbeef: I want to let you know that sendspace auto deletes files if they haven't been downloaded in 30 days. I recently found this out and got kind of burned by it.

Also did the command line change you recently did affect the convert to 720p subs from context menu I was trying to work out?
I spent a little time on it since the update but not a lot and somehow I broke default open application, probably CCleaner and now I can't seem to get it back.

Also while not a common situation do you know why this sup split with tsmuxer throws an error?

Last edited by turbojet; 16th April 2009 at 09:37.
turbojet is offline   Reply With Quote
Old 16th April 2009, 17:17   #242  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by turbojet View Post
0xdeadbeef: I want to let you know that sendspace auto deletes files if they haven't been downloaded in 30 days. I recently found this out and got kind of burned by it.
I guess I can live with that and I's suspect that every one-click-hoster will delete files after a while.

Quote:
Originally Posted by turbojet View Post
Also did the command line change you recently did affect the convert to 720p subs from context menu I was trying to work out?
I spent a little time on it since the update but not a lot and somehow I broke default open application, probably CCleaner and now I can't seem to get it back.
I'm not quite sure if I understand the question. I added the wildcard in the target name (only) as suggested some versions ago.

Quote:
Originally Posted by turbojet View Post
Also while not a common situation do you know why this sup split with tsmuxer throws an error?
Well, this stream start amidst an epoch. Indeed, it starts with a "NORMAL" PCS section, which is clearly invalid. Then again, I added another check to prevent the crash. Still, only 2 frames can be decoded from this sample. The first frame is incomplete and therefore lost.
0xdeadbeef is offline   Reply With Quote
Old 17th April 2009, 06:52   #243  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
I meant does the cli changes you made doing anything to help out something like:
HKEY_CLASSES_ROOT\.sup\shell\Convert to 720p\command]
@="C:\\Program Files\\Java\\jre6\\bin\\java.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar\" %1 %1-720p.sup /res:720"

This is what no longer works for me but I think it's something with my system:
[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="C:\\Program Files\\java\\jre6\\bin\\javaw.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar \"%1\""

A check would be nice as you never know when it may popup in a real scenario. I see suprip and eac3to don't like the stream either.
turbojet is offline   Reply With Quote
Old 17th April 2009, 10:20   #244  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by turbojet View Post
I meant does the cli changes you made doing anything to help out something like:
[HKEY_CLASSES_ROOT\.sup\shell\Convert to 720p\command]
@="C:\\Program Files\\Java\\jre6\\bin\\java.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar\" %1 %1-720p.sup /res:720"
Yes, as I said I added support for a wildcard in the target some versions ago.
I just tried the following on my system:
Code:
[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="E:\\dev\\java\\jre_6_0\\bin\\javaw.exe -jar d:\\src\\java\\BDSup2Sub\\BDSup2Sub.jar \"'%1' '*-720p.sup' /res:720\""
Works perfectly for me. Adjusted to your system, it should look something like this:
Code:
[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="C:\\Program Files\\java\\jre6\\bin\\javaw.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar\" \"'%1' '*-720p.sup' /res:720\""


Quote:
Originally Posted by turbojet View Post
This is what no longer works for me but I think it's something with my system:
[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="C:\\Program Files\\java\\jre6\\bin\\javaw.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar \"%1\""
There's one double quote missing. It should be
Code:
[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="C:\\Program Files\\java\\jre6\\bin\\javaw.exe -jar \"F:\\TOOLS\\Sub Tools\\BDSup2Sub.jar\" \"%1\""
0xdeadbeef is offline   Reply With Quote
Old 17th April 2009, 10:41   #245  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
Thanks.
My registry is messed up or something, I can't get 'Convert to 720p' to show even if I put in HKEY_CLASSES_ROOT\* nor can I get it to associate guess it's time for a windows reinstall.
turbojet is offline   Reply With Quote
Old 17th April 2009, 10:57   #246  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Hm, I can't really believe it's a windows issue.
Here's my complete test reg file for reference:

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.sup]
@="SUP BD/HD-DVD caption stream"

[HKEY_CLASSES_ROOT\.sup\shell]

[HKEY_CLASSES_ROOT\.sup\shell\open]

[HKEY_CLASSES_ROOT\.sup\shell\open\command]
@="E:\\dev\\java\\jre_6_0\\bin\\javaw.exe -jar d:\\src\\java\\BDSup2Sub\\BDSup2Sub.jar \"%1\""

[HKEY_CLASSES_ROOT\.sup\shell\Convert to 720p]

[HKEY_CLASSES_ROOT\.sup\shell\Convert to 720p\command]
@="E:\\dev\\java\\jre_6_0\\bin\\javaw.exe -jar d:\\src\\java\\BDSup2Sub\\BDSup2Sub.jar \"'%1' '*-720p.sup' /res:720\""
Please note that my BDSup2Sub path doesn't contain spaces, so it doesn't need to be enclosed in double quotes.

If I import the above reg file and right click on a SUP, I can either open it or select "Convert to 720p". Both options work.
0xdeadbeef is offline   Reply With Quote
Old 17th April 2009, 11:26   #247  |  Link
turbojet
Registered User
 
Join Date: May 2008
Posts: 1,840
I was able to fix the registry, there was HKEY_CLASSES_ROOT\sup auto_file\shell\open\command calling fastexplorer %1 which no longer exists. I deleted the sup auto_file key and now the .reg you gave me works great with 'convert to 720p' and 'open'

Thanks again
turbojet is offline   Reply With Quote
Old 18th April 2009, 11:51   #248  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
18.04.2009 3.2.0 -> 3.3.0
  • Changed: added support for importing/exporting Sony BDN XML/PNG format (used by Sonic Scenarist).
    Images are automatically cropped on import.
  • Changed: new command line option "/fps:keep" uses source frame rate as target frame rate (for BD-SUP and XML)
  • Fixed: a little inaccuracy in (all) the scaling algorithms led to suboptimal results.
    The result of bilinear scaling is now very, very close to a reference implementation.
  • Fixed: conversion dialog fps comboboxes showed "29.967" instead of "29.97" for NTSC frame rates.
  • Fixed: crash when BD-SUP starts with invalid epoch.
0xdeadbeef is offline   Reply With Quote
Old 18th April 2009, 16:09   #249  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
18.04.2009 3.3.0 -> 3.3.1
  • Fixed: using XML as input didn't work from command line if also a target was given.
  • Fixed: output resolution given via command line did not influence selection in GUI.
0xdeadbeef is offline   Reply With Quote
Old 18th April 2009, 17:23   #250  |  Link
mrr19121970
Registered User
 
Join Date: Mar 2008
Posts: 305
nice tool. i tried to to convert the subs from HD-DVD Atonement and it worked as described.

I've integrated a call into Clown_BD to your util.

It would be nicer to have a 'quiet' mode that didn't write so much to the console (at least not a new line every time) and perhaps a /log=file.txt type option on the CLI.
mrr19121970 is offline   Reply With Quote
Old 18th April 2009, 17:32   #251  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Output still has "vertical jaggies" when converting to 720x480.
laserfan is offline   Reply With Quote
Old 18th April 2009, 17:51   #252  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
It would be a miracle if the reduction of resolution wouldn't result in any drawbacks. We're talking of 1080 vs. 480 lines here or reduction to a 6th of the pixels.
Of course there are more complex filters that could improve the quality a little. Yet most of the complex resize filters are either aimed at upscaling or at photographic images. Palettized text with transparency and antialiasing in the source picture is not the typical scenario. Indeed filters like Bicubic Interpolation or Lanczos3 either have no benefit in this case or create artifacts like ringing.
0xdeadbeef is offline   Reply With Quote
Old 18th April 2009, 19:18   #253  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by mrr19121970 View Post
nice tool. i tried to to convert the subs from HD-DVD Atonement and it worked as described.
Nice to hear.

Quote:
Originally Posted by mrr19121970 View Post
I've integrated a call into Clown_BD to your util.
A pretty sweet tool as well. If I hadn't decided to use EAC3TO directly from the console at some point, this would be my next choice.

Quote:
Originally Posted by mrr19121970 View Post
It would be nicer to have a 'quiet' mode that didn't write so much to the console (at least not a new line every time) and perhaps a /log=file.txt type option on the CLI.
Why don't you just pipe the output to a file? And if you call Java via "javaw" no console window is opened at all.
0xdeadbeef is offline   Reply With Quote
Old 18th April 2009, 19:29   #254  |  Link
mrr19121970
Registered User
 
Join Date: Mar 2008
Posts: 305
Quote:
Originally Posted by 0xdeadbeef View Post
Why don't you just pipe the output to a file?

that's what I'm doing now, but my preferred method is to attach to the console (to show realtime progress). in atonement i got over 11K lines in the log, and this blew up the getconsole dll call.

here is a snapshot
Code:

Decoding frame 937/948 at offset 0x00c5c6a0
Decoding frame 938/948 at offset 0x00c5d004
Decoding frame 939/948 at offset 0x00c62742
Decoding frame 940/948 at offset 0x00c65d26
Decoding frame 941/948 at offset 0x00c68382
Decoding frame 942/948 at offset 0x00c6b41e
Decoding frame 943/948 at offset 0x00c6d754
Decoding frame 944/948 at offset 0x00c72c54
Decoding frame 945/948 at offset 0x00c79f70
Decoding frame 946/948 at offset 0x00c7dac8
Decoding frame 947/948 at offset 0x00c7fd62
Decoding frame 948/948 at offset 0x00c82364

Converting SUP(BD)

#1
DCSQ start    ofs: 0x000011ad  (00:00:59.393)
DCSQ stop     ofs: 0x000015ce  (00:01:01.589)
#2
DCSQ start    ofs: 0x0000558c  (00:01:49.109)
DCSQ stop     ofs: 0x000059ad  (00:01:50.543)
#3
DCSQ start    ofs: 0x000096aa  (00:02:15.969)
DCSQ start    ofs: 0x000096b1  (00:02:15.969)
WARNING: DCSQ start ignored due to missing DCSQ stop
WARNING: Found faded alpha buffer -> alpha buffer skipped
WARNING: DCSQ stop missing.
the messages in red are good for the progress, and belong to the console, but not every message a new line.

I don't know JAVA, but I'm sure it's similar to this c# example

Code:
Console.SetCursorPosition(0,Console.CursorTop-1);
Console.WriteLine("Blah Blah");
the rest is good for a logfile
mrr19121970 is offline   Reply With Quote
Old 18th April 2009, 19:49   #255  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Quote:
Originally Posted by mrr19121970 View Post
the messages in red are good for the progress, and belong to the console, but not every message a new line.

I don't know JAVA, but I'm sure it's similar to this c# example

Code:
Console.SetCursorPosition(0,Console.CursorTop-1);
Console.WriteLine("Blah Blah");
the rest is good for a logfile
Unfortunately, there is no native support for terminal console output in Java. If there was, I would use it of course. However, the standard output is just a stream without the possibility to set the cursor position. Libraries like JCurses simulate a text terminal console in a graphic window, but this wouldn't help here. The only other way would be the use of a native code library. But this is a no-go for me.
If you want to show progress, why don't you pipe the console output to a file and periodically scan that file for changes. You could even filter these changes and create your own progress/status information from it.
0xdeadbeef is offline   Reply With Quote
Old 18th April 2009, 23:07   #256  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
18.04.2009 3.3.1 -> 3.3.2
  • Fixed: exported PNGs had changed palette order (so palette entry 255 was not guaranteed to be transparent)
0xdeadbeef is offline   Reply With Quote
Old 19th April 2009, 20:28   #257  |  Link
laserfan
Aging Video Hobbyist
 
Join Date: Dec 2004
Location: Off the Map
Posts: 2,461
Quote:
Originally Posted by 0xdeadbeef View Post
It would be a miracle if the reduction of resolution wouldn't result in any drawbacks. We're talking of 1080 vs. 480 lines here or reduction to a 6th of the pixels.
Of course--but as I posted in the other thread, BDSupEdit looks alot better (except for GZZ's red tinge).
laserfan is offline   Reply With Quote
Old 19th April 2009, 21:38   #258  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
While I still think that for rescaling to 720p - which is probably the most common use case for scaling, more complex filters don't yield much better results, I agree that there's potential for scaling SUPs to PAL or NTSC. Not so much for VobSub though, as there are too few colors.
Still, the next version will offer various filters.
0xdeadbeef is offline   Reply With Quote
Old 19th April 2009, 23:45   #259  |  Link
0xdeadbeef
Author of BDSup2Sub
 
Join Date: Jun 2003
Posts: 478
Ok, here we go:

19.04.2009 3.3.2 -> 3.4.0
  • Changed: added miscellaneous scaling filter modes (amongst others: Bicubic, Lanczos3 and Mitchell)
  • Changed: improved quantizer to leave no multiple entries in the palette
  • Changed: rewrote PNG importer to use palette of image if that is possible
  • Fixed: added semaphore to synchronize GUI threads decoding captions (fixes crashes when quickly jumping through captions)
0xdeadbeef is offline   Reply With Quote
Old 20th April 2009, 04:32   #260  |  Link
kikker
Registered User
 
Join Date: Feb 2007
Posts: 195
Thanks for your work on this project! Would you ever consider possibly implementing the capability to merge several SUPs into one IDX/SUB? As I'm sure you're well aware, VSRip rips the various sub streams from a DVD rip into one vobsub, and it would be very handy if yours did this as well, provided there was a way to have more than one SUP file as source of course. Thanks...
kikker is offline   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 13:49.


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