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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > General > Subtitles

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th September 2012, 23:41   #201  |  Link
OptimusX
Registered User
 
Join Date: Apr 2007
Posts: 20
The SUP output is awesome. Good work. You may not know it, but this program is becoming a standard in fansub applications for avchd and bd output.
OptimusX is offline   Reply With Quote
Old 17th January 2013, 01:21   #202  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
Quote:
Originally Posted by FILLIFY View Post
easyavs2bdnxml
GUI supports last avs2bdnxml v2.05.
Original Chinese version's here http://bbs.siluhd.com/thread-385883-1-1.html
English/Russian version (with authored interface) is here http://www.adrive.com/public/n7BQPV/...nxml-0.3.4.zip
would you mind re-hosting this GUI?
the link for the Russian/English version does not work, maybe link is corrupted or file removed.
djmasturbeat is offline   Reply With Quote
Old 17th January 2013, 14:17   #203  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
Quote:
Originally Posted by OptimusX View Post
The SUP output is awesome. Good work.
Wow, I somehow missed that there are new posts in this thread. It's great to hear that it seems to be working well!

Too bad about the dead link for the GUI frontend.

Last edited by ps auxw; 28th November 2013 at 00:34.
ps auxw is offline   Reply With Quote
Old 20th January 2013, 20:21   #204  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
okay, so I am trying this out but I am not the most adept at cli, so please advise what I am doing wrong.
I suspect it is something to do with
-t
I am not sure what we should be inputting for trackname.

I simplified dir path and filenames for myself as much as I can for easy cli call, but still get an error.
here is my cli and error
Code:
C:\Users\jonathan>C:\Users\jonathan>""C:\avs2bdnxml\avs2bdnxml.exe" avs2bdnxml -t PYCAL -l eng -v 1080i -f 30 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
The filename, directory name, or volume label syntax is incorrect.
i also tried removing the -t but no love

Code:
C:\Users\jonathan>C:\Users\jonathan>""C:\avs2bdnxml\avs2bdnxml.exe" avs2bdnxml -l eng -v 1080i -f 30 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
The filename, directory name, or volume label syntax is incorrect.
here is my avs for the ass, btw:
Code:
LoadPlugin("C:\MeGUI\tools\dgavcindex\DGAVCDecode.dll")
AVCSource("C:\LUPIN_RETURN_OF_PYCAL_CUSTOM\LUPIN_RETURN_OF_PYCAL\00002_1_01.dga")
LoadPlugin("C:\MeGUI\tools\avisynth_plugin\vsfilter.dll")
MaskSub("C:\avs2bdnxml\PYCAL_BD_SUBS.ass",1920,1080,29.970,85575)
#FlipVertical()

all the folders and paths do exist, as do the files I call (*.ass, *.avs)


thanks for any help for a noob.

Last edited by djmasturbeat; 20th January 2013 at 20:47.
djmasturbeat is offline   Reply With Quote
Old 20th January 2013, 21:11   #205  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
Quote:
Originally Posted by djmasturbeat View Post
Code:
C:\Users\jonathan>C:\Users\jonathan>""C:\avs2bdnxml\avs2bdnxml.exe" avs2bdnxml -t PYCAL -l eng -v 1080i -f 30 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
The filename, directory name, or volume label syntax is incorrect.
i also tried removing the -t but no love

Code:
C:\Users\jonathan>C:\Users\jonathan>""C:\avs2bdnxml\avs2bdnxml.exe" avs2bdnxml -l eng -v 1080i -f 30 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
The filename, directory name, or volume label syntax is incorrect.
Okay, I see multiple problems, and only one of them is an actual avs2bdnxml usage problem. "-f 30" is not supported, hopefully "-f 29.97" will work for you? You specified 29.970 in your AVS after all. If you really need 30fps, since calculation is done with non-drop frame timecodes, you could try replacing the frame rate in the resulting XML file, if it is actually supported, but I don't think this should be necessary.

As for the track name, it's just a string that is written to the XML file, like "Colored English subtitles" or whatever.

For the rest, you apparently have the prompt "C:\Users\jonathan>" copied into your command line. You also have an extra quote (") at afterwards. Additionally, there shouldn't be an "avs2bdnxml" after you already specified the path to the executable. Try the following:
Code:
"C:\avs2bdnxml\avs2bdnxml.exe" -t PYCAL -l eng -v 1080i -f 29.97 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
If you do not feel comfortable with the command line, you can also copy this into a batch file (e.g. "runavs2bdnxml.bat") and double click that.

For your AVS, since you are directly specifying the frame size, number of frames etc. in the MaskSub call, you can throw out the parts about loading the video, since MaskSub doesn't use it anyway:
Code:
LoadPlugin("C:\MeGUI\tools\avisynth_plugin\vsfilter.dll")
MaskSub("C:\avs2bdnxml\PYCAL_BD_SUBS.ass",1920,1080,29.970,85575)

Last edited by ps auxw; 20th January 2013 at 21:16.
ps auxw is offline   Reply With Quote
Old 20th January 2013, 21:34   #206  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
thanks for the fast reply
I had entered 30 fps b/c in the first page it was mentioned it worked better to use that then to edit the xml output and put 29.97 back in.

http://forum.doom9.org/showthread.php?p=1313944#post1313944

that said, when I use 30 I get an error

Is all this no longer needed for input to Scenarist? Or if it is needed, do I need to change it somewhere else (like the avs script) to work? Then I would edit the XML back to 29.97 for scenarist?


Other than that, thanks for the suggested cli call, it works with 29.97, I just need to be sure this won't botch input in scenarist, or go out of sync.

thanks again.
Code:
C:\Users\jonathan>"C:\avs2bdnxml\avs2bdnxml.exe" -t PYCAL -l eng -v 1080i -f 30 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\PYCAL\PYCAL.xml" "C:\avs2bdnxml\PYCAL.avs"
Error: Invalid framerate (30).

Last edited by djmasturbeat; 20th January 2013 at 21:37.
djmasturbeat is offline   Reply With Quote
Old 20th January 2013, 21:40   #207  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
In the beginning there were some bugs in the timecode calculation code, but they have long been fixed. Using 29.97 should be perfectly fine now.

Last edited by ps auxw; 20th January 2013 at 21:43.
ps auxw is offline   Reply With Quote
Old 20th January 2013, 21:45   #208  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
ok
awesome
thanks so much for this great software =)
it really is getting to be known as quite the tool for enthusiasts to render subs for subbed blu-rays.
djmasturbeat is offline   Reply With Quote
Old 20th January 2013, 21:49   #209  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
You're welcome. I'm glad it's useful.
ps auxw is offline   Reply With Quote
Old 20th January 2013, 22:17   #210  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
if scenarist parser rejected this xml, is this possibly because of my *.ass subtitle script, more than likely?
If it is in my script, is there a way I need to tell avs2bdnxml where to split an epoch for a screen with text in several places, or should this be automatic?
If this isn't my issue, I will have to look in other places in the *.ass.

also...okay, sorry for the ignorance here, am I supposed to have actual png files too?
b/c I only have an xml output in the output folder.

thanks again.

Last edited by djmasturbeat; 20th January 2013 at 22:20.
djmasturbeat is offline   Reply With Quote
Old 20th January 2013, 23:10   #211  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
Quote:
Originally Posted by djmasturbeat View Post
also...okay, sorry for the ignorance here, am I supposed to have actual png files too?
b/c I only have an xml output in the output folder.

thanks again.
It won't work without the PNG files. Without them, Scenarist can't import, because there's nothing there. Check if they ended up in another folder, like the place you ran avs2bdnxml from or the avs2bdnxml folder. I should probably make it place the files in the same place as the XML file so this kind of thing doesn't happen...
ps auxw is offline   Reply With Quote
Old 20th January 2013, 23:15   #212  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
ok, i found them.
since i ran cli from my username account (rather than cd first to C: or rather than using elevated command) it ended up in that main user directory terminal c:\users\myusername\*.png

yeah, probably a good idea to force default to same dir as the xml and then add ability to change it if desired.


thanks again.

Last edited by djmasturbeat; 20th January 2013 at 23:28.
djmasturbeat is offline   Reply With Quote
Old 3rd February 2013, 15:14   #213  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
avs2bdnxml works great. However I have been experiencing a strange issue with avs2bdnxml (2.05), which creates a flicker. It has happened really since my first project.
I am curious if anyone else has observed such a thing, or if anyone has suggestions what might be causing this on my end... or if this may be a bug, or what?

I will try to make this as clear as I can.
If need-be, ps auxw, I can send you copies of the files: ass, avs, cli, xml+png for a few projects.
Any with an inline effect-hacked xml, will also contain the original output from avs2bdnxml (both have the same issue, detailed as follows).


I will render my .ass files with the newest build of avs2bdnxml, and there is almost always one line that mysteriously is doubled/duplicated.
It manifests itself in 2 forms:
1) 2 instances will appear in the same Epoch, with 2 Display Sets within that Epoch
2) It will show up as 2 consecutive Epochs
In either case, the repeated instance of this single line will always have a small gap in the times between these 2 occurrences.

I *can* fix it in ScenaristBD inside the PES editor (by removing the second instance, whether a new Epoch or new Display Set, and extending the ending time for the first instance to match the ending time of the second instance I remove).
*But* in order to fix it, I have to first fully mux the Blu-ray (time and PC-intensive), then watch the full movie first, really scrutinizing every line. This is sort of a big deal. This could become a compounded bigger issue when I will be adding multiple subtitles (which I have planned), all requiring watching the movie in those sub language, paying close attention to every line.

Usually the duplicated instance is happening near the start of a script, in the very first or second Epoch.
But not always.

The first time I noticed it, I thought at first it may have something to do with a preceding line (A Title) using a fade-in inline effect hacked into the xml. But whether I import in the original xml or the altered one, the result is the same. Then it happened on the very first subtitle in my most recent job, too.

for example the first lines are as such:
Code:
Dialogue: 0,0:01:24.64,0:01:26.73,Default,,0,0,0,,The year After Colony 195.
Dialogue: 0,0:01:27.68,0:01:30.87,Default,,0,0,0,,A group of Colony citizens\Nhostile toward the Alliance...
Dialogue: 0,0:01:30.95,0:01:34.64,Default,,0,0,0,,...sent young men to Earth\Non five Gundams.
after importing into scenarist and muxing and then watching I must track down multiple instances of lines inside the PES editor.

here is how this appears in Scenarist PES editor:



here is another example from a different project, these screens I took a week, week and a half ago or so. These ones show in the same Epoch on 2 Display Sets, whereas the example above was 2 instances split across 2 Epochs:



the xml file shows that this happens prior to importing to ScenaristBD:
Code:
<Event Forced="False" InTC="00:01:24:14" OutTC="00:01:24:15">
<Graphic Width="671" Height="59" X="625" Y="978">00002030_0.png</Graphic>
</Event>
<Event Forced="False" InTC="00:01:24:17" OutTC="00:01:26:16">
<Graphic Width="671" Height="59" X="625" Y="978">00002033_0.png</Graphic>
</Event>
the avs:
Code:
LoadPlugin("C:\MeGUI\tools\avisynth_plugin\vsfilter.dll")
MaskSub("C:\avs2bdnxml\Waltz_v3.ass",1920,1080,23.976,129984)
#FlipVertical()
my cli to run avs2bdnxml:
Code:
"C:\avs2bdnxml\avs2bdnxml.exe" -t Waltz -l eng -v 1080p -f 23.976 -a1 -p1 -b1 -u0 -m3 -o "C:\avs2bdnxml\Waltz_v3.xml" "C:\avs2bdnxml\Waltz_v3.avs"

thanks for any input, and thanks again for this great software.

Last edited by djmasturbeat; 3rd February 2013 at 15:32. Reason: stuffies
djmasturbeat is offline   Reply With Quote
Old 3rd February 2013, 15:52   #214  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
This sounds like a really strange problem. I see nothing in your command line, or the quoted ASS or AVS that should lead to such a small pause, especially since line splitting isn't even abled. Could you frame step through the output of your AVS and make sure that the problem isn't on that side (e.g. the subtitle somehow doesn't get rendered for a frame during that line)? Do you have a way of testing whether it happens with SUP output? Either way, please send me one set of ASS+AVS+XML+PNG files for a project where this occurred and I'll look into it.
ps auxw is offline   Reply With Quote
Old 3rd February 2013, 16:12   #215  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
I have framestepped through the avs posted above, using avspmod, and noticed nothing like this on the .ass/.avs side.
In the Gundam example, the first sub line

Dialogue: 0,0:01:24.64,0:01:26.73,Default,,0,0,0,,The year After Colony 195.


in avspmod shows consistently from frame 2030 through 2079, with zero missing frames. No more subs till 2103, which is the next actual subtitle line proper:

Dialogue: 0,0:01:27.68,0:01:30.87,Default,,0,0,0,,A group of Colony citizens\Nhostile toward the Alliance...

Then all is okay after that.

I will send a pm to you after I post this, with links to the examples above.

The Lupin Pycal Ending scripts are really short, the Gundam Wing Endless Waltz is a full Movie, but only first line is affected. The main movie for Pycal was affected... but I forget which Epoch, so I left it out, but all 3 of the Pycal Endings were affected in the same way, which is where I first noticed this.


edit:
sup rendering... well, I would have to demux and remux the BD in other tools than Scenarist.

But this will cause other issues. I have had someone confirm to me that tsmuxer will not support time conflicts (overlapping subs and different subs changing at different times) as well as split epochs, even if contained in sups output from your software (this is the fault of the authoring tools, not your software). I use all these "time conflicts" and split epochs regularly, and Scenarist handles it fine, and so does avs2bdnxml.

But, for example these lines would not work in a sup imported to tsmuxer at all:
Code:
Dialogue: 0,0:51:08.26,0:51:12.94,Endless Waltz SE ED Lyrics Bold - Romanji,,0,0,0,,itoshisa wo inori ni kaete
Dialogue: 0,0:51:08.26,0:51:12.94,Endless Waltz SE ED Lyrics Bold - English,,0,0,0,,{\c&&H8BDAFF&&}I change this longing to prayers for you
Dialogue: 0,0:51:12.84,0:51:13.48,Default,,0,0,0,,It's here.
Dialogue: 0,0:51:13.07,0:51:17.84,Endless Waltz SE ED Lyrics Bold - Romanji,,0,0,0,,kono kodou wo tsutaetai yo
Dialogue: 0,0:51:13.07,0:51:17.84,Endless Waltz SE ED Lyrics Bold - English,,0,0,0,,{\c&&H8BDAFF&&}If only you could hear this heartbeat of mine
and of course Scenarist does not accept sup, it has its own proprietary version of sup, PES(+MUI).

I think the sup feature is nice for your software, but it appears that the shortcomings in some of the authoring tools will still require people to remove overlapping and time conflicting subs.

I can't even begin to guess how tsmuxer and others handle fade effects and alpha and turning subs on x/y axis with frz*** inside the ass. I can do all this in .ass and avs2bdnxml handles it perfectly, and scenarist is okay with it, to a degree (too much and I will get buffer underruns in audio and video, even if the 4 MB buffer -- auto update ticked -- shows nowhere near capacity in PES editor).

tl;dr, I don't think this would be an appropriate test for my subs, rendering to sup, since it would incur numerous other issues due to the authoring software needed to load a sup, rather than xml+png. It would not be a good litmus test, imo.

Last edited by djmasturbeat; 3rd February 2013 at 16:34.
djmasturbeat is offline   Reply With Quote
Old 12th February 2013, 02:09   #216  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
This is very strange. I have tested all three of your lupin samples and could not reproduce the duplicate line stutter issue. The only reason that I could imagine is some weird heisenbug in the inline assembly parts (or some other, annoying memory corrupting bug). Could you please test whether this build without inline assembly works correctly for you? It is probably a bit slower though.

Quote:
Originally Posted by djmasturbeat View Post
But, for example these lines would not work in a sup imported to tsmuxer at all:
Code:
Dialogue: 0,0:51:08.26,0:51:12.94,Endless Waltz SE ED Lyrics Bold - Romanji,,0,0,0,,itoshisa wo inori ni kaete
Dialogue: 0,0:51:08.26,0:51:12.94,Endless Waltz SE ED Lyrics Bold - English,,0,0,0,,{\c&&H8BDAFF&&}I change this longing to prayers for you
Dialogue: 0,0:51:12.84,0:51:13.48,Default,,0,0,0,,It's here.
Dialogue: 0,0:51:13.07,0:51:17.84,Endless Waltz SE ED Lyrics Bold - Romanji,,0,0,0,,kono kodou wo tsutaetai yo
Dialogue: 0,0:51:13.07,0:51:17.84,Endless Waltz SE ED Lyrics Bold - English,,0,0,0,,{\c&&H8BDAFF&&}If only you could hear this heartbeat of mine
In what way do these lines not work?

Quote:
and of course Scenarist does not accept sup, it has its own proprietary version of sup, PES(+MUI).
I believe there was some way for Scenarist to import PGS files by going through some sort of converter that is included with it. I could be remembering wrong though.

Last edited by ps auxw; 12th February 2013 at 02:12.
ps auxw is offline   Reply With Quote
Old 12th February 2013, 06:24   #217  |  Link
djmasturbeat
Registered User
 
Join Date: Oct 2008
Posts: 89
Quote:
Originally Posted by ps auxw View Post
This is very strange. I have tested all three of your lupin samples and could not reproduce the duplicate line stutter issue. The only reason that I could imagine is some weird heisenbug in the inline assembly parts (or some other, annoying memory corrupting bug). Could you please test whether this build without inline assembly works correctly for you? It is probably a bit slower though.
a friend also tested the same things I sent you, and had none of the issues I did. He made sure to test with the latest build also.
weird.
I will try this other alt.build when I have time.
I have no idea what a heisenbug is tho, btw :whistle:

have to remember to google that later (going to bed now).


Quote:
Originally Posted by ps auxw View Post
In what way do these lines not work?
from my understamding tsmuxer doesn't handle the overlapping subs and split epochs. I have not personally tested a sup or xml+png like this in tsmuxer, tbh. works great with scenarist and your tool, tho =)


Quote:
Originally Posted by ps auxw View Post
I believe there was some way for Scenarist to import PGS files by going through some sort of converter that is included with it. I could be remembering wrong though.
there is a MUI generator, but I am pretty certain no .sup input as an ES. it takes the xml+png, renders them and creates its own proprietary sup-like file, PES, along with the MUI file. the PES(+MUI) can be imported later like a sup is in other tools.
if anyone knows a way for scenarist (BD or SD) to import a .sup, please tell me.

i will try to report back soon.


thanks for your sincere dedication.
djmasturbeat is offline   Reply With Quote
Old 12th February 2013, 15:21   #218  |  Link
paradoxical
Guest
 
Posts: n/a
Quote:
Originally Posted by djmasturbeat View Post
I have no idea what a heisenbug is tho, btw :whistle:
It's just a pun on Heisenberg Uncertainty Principle.
  Reply With Quote
Old 12th February 2013, 17:54   #219  |  Link
ps auxw
Registered User
 
Join Date: Apr 2009
Posts: 102
Quote:
Originally Posted by djmasturbeat View Post
a friend also tested the same things I sent you, and had none of the issues I did. He made sure to test with the latest build also.
weird.
I will try this other alt.build when I have time.
That really sounds strange. I did my tests using AviSynth 2.5.8 with VSFilter 1.0.1.5 (some 2008 Gabest build, apparently). If you use different versions and the new test build doesn't change anything, you could try matching the versions for these components.

Quote:
from my understamding tsmuxer doesn't handle the overlapping subs and split epochs. I have not personally tested a sup or xml+png like this in tsmuxer, tbh. works great with scenarist and your tool, tho =)
There shouldn't really be any overlapping things in those subtitles when looking at it from after the avs2bdnxml processing step, as they just get merged.

Quote:
there is a MUI generator, but I am pretty certain no .sup input as an ES. it takes the xml+png, renders them and creates its own proprietary sup-like file, PES, along with the MUI file. the PES(+MUI) can be imported later like a sup is in other tools.
if anyone knows a way for scenarist (BD or SD) to import a .sup, please tell me.
I think I misremembered after all. I can't find any documentation pointing that way.

Quote:
Originally Posted by paradoxical View Post
It's just a pun on Heisenberg Uncertainty Principle.
Specifically a heisenbug is one of those annoying bugs that disappear or change under observation.
ps auxw is offline   Reply With Quote
Old 25th March 2013, 06:03   #220  |  Link
LambdaDriver
Registered User
 
Join Date: May 2012
Posts: 5
I've got a problem with avs2bdnxml in cmd line, following the tutorials and templates but whenever i try to run it i get "Only a Single input file is allowed."

my AVS script:
AVCSource("C:\Users\Graham\Working Files\3 - BD SUBBING\3 - REAuthored\00002_1_01.dga")
MaskSub("C:\Users\Graham\Working Files\3 - BD SUBBING\1 - Program Stuff\avs2bdnxml-2.05\avs2bdnxml-2.05\subs.ass",1920,1080,23.976,35160)

My avs2bdnxml comand
avs2bdnxml -t Undefined -l eng -v 1080p -f 23.976 -a1 -p1 –b1 –u0 -m3 -o ep1subs.xml ep1.avs

not sure whats going on
LambdaDriver 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:19.


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