Re: Why doesn't this script work?

Elio Blanca <[email protected]>
Newsgroups gmane.comp.multimedia.dvdauthor.user
Message-ID <[email protected]>
Thank you all, guys.
Things still don't work as I would like but I learned a lot!

> Ah, maybe that is coming from using two <menus> tags?
Yeah, you are right! After reducing duplicate tags to just a single <menu> tag, dvdauthor wasn't 
confused anymore and referencing menus was successful.

> ERR:  Button command is too complex to fit in one instruction, and allgprm==true."
And both of you are right here, disabling allgprm made errors disappear.

> I think you might need to spumux it with something
Done, I spu-muxed a single black pixel but... still this trick doesn't work.

Until now, (I put the brief intro in vmgm) my result is a not-working dvd.
When inserting the disc in my stand-alone player the brief clip is skipped, menus are both skipped - 
I mean I see NOTHING AT ALL -, but title 1 is played, title 2 is played, then the main menu is 
played. Hey, what's happening?
(further, vlc behaviour is different but I mainly keep the stand-alone player as reference)

Let's try another way...
> fpc: g2 = 1; jump to titleset 1 menu entry root
> titleset 1 menu entry root: if (g2 == 1) jump title 2;
> title 2 pre: g2 = 0
> title 2 post: call menu entry root

Hey! Why don't doing:
fpc: jump to title2
title 2: show clip
title 2 post: call menu entry root
?
Is this the same?

Anyway, a flag is a smart trick!
I like this, I just gave it a try and... dvdauthor doesn't compile. It stops at line 21:
                  jump title 2;
This line is used within a few statements and dvdauthor likes it, but not here. The report:
ERR:  Titles already defined
Don't know what it means, I will try different ways tomorrow.
Got tired, good night!

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users
disco3.xml (text/xml, 2.4 KB)
<dvdauthor dest="./directory_output_prova1/">
<!-- allgprm="yes" -->
   <vmgm>
      <fpc>
      {
      	g0=1;  <!-- lingua audio 0=eng, 1=ita -->
      	g1=0;  <!-- sottotitoli eng on/off  -->
      	g2=1;
        jump menu entry root;
      }
      </fpc>
  </vmgm>

   <titleset>
      <menus lang="it">
         <video format="pal" aspect="16:9" />
         <audio format="ac3" samplerate="48khz" />
         <pgc entry="root">
            <pre>
               {if (g2==1)
                 jump title 2;
               button = 2k;}
            </pre>
            <vob file="Main_menu.m2v" pause="inf" />
            <button name="1"> jump menu 2; </button>
            <button name="2"> jump title 1; </button>
         </pgc>
<!--      </menus>
      <menus lang="it">
         <video format="pal" aspect="16:9" />
         <audio format="ac3" samplerate="48khz" /> -->
         <pgc>
            <vob file="Lang_menu.vob" pause="inf" />
            <button name="1">
            	{g0=0;
            	jump menu 2;}
            </button>
            <button name="2">
            	{g0=1;
            	jump menu 2;}
            </button>
            <button name="3">
            	{g1=1;
            	jump menu 2;}
            </button>
            <button name="4">
            	{g1=0;
            	jump menu 2;}
            </button>
            <button name="5"> jump menu 1; </button>
         </pgc>
      </menus>

      <titles>
         <video format="pal" aspect="16:9" />
         <audio format="ac3" lang="en" />
         <audio format="ac3" lang="it" />
         <subpicture lang="en" />
         <pgc>
            <pre>
            {   s1=g0;
            	if (g1==0) s2=0;
            	else s2=64;}
            </pre>
            <vob file="Main_movie.m2v">
            </vob>
            <post>
            { if (g0==0) call menu entry root; 
              jump title 2; }
            </post>
         </pgc>

         <pgc>
            <vob file="clip_to_be_shown_if_audio_track_is_0x01.m2v" />
            <post> call menu entry root; </post>
         </pgc>

      </titles>
      <titles>
         <video format="pal" aspect="16:9" />
         <audio format="ac3"/>
         <pgc>
            <pre>
              {g2=0;
              s1=0;}
            </pre>
            <vob file="clip_to_be_shown_just_once_at_disc_insertion.m2v" pause="2" />
            <post> call menu entry root; </post>
         </pgc>
      </titles>
   </titleset>
</dvdauthor>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.