VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Aug 2006
    Location
    Estonia
    Search Comp PM
    I have a little problem again. I'm making a very simple DVD project with one movie, audio and subtitle stream. I've also have created basic menu with three buttons: "Watch movie", "Subtitle 1" and "No subtitle". What i want is that "Subtitle 1" will be activated when user press "Watch movie" button (or "Subtitle 1" button), but not activated when user press "No subtitle" button. When i checked autostart box in subtitle options "Subtitle 1" is always shown...even when user chooses not to activate subtitles ("No subtitle" button).

    Here is dvdauthor xml file:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <dvdauthor dest="d:\DVD\DVD">
    <vmgm>
        <menus>
           
        <video format="ntsc"></video>
          <pgc entry="title">
           <pre> { if (g1 eq 0) g1=1; button=g1*1024; } </pre>
            <vob file="d:\DVD\Temp\MMMenu.mpg" pause="0"/>
            <button name="MMB1">jump titleset 1 menu;</button>
            <post>jump titleset 1 menu;</post>
          </pgc>
        </menus>
    </vmgm>
    <titleset>
        <menus>
           
        <video format="ntsc"></video>
          <pgc entry="root">
            <pre> { subtitle=64; button=1024; } </pre>
            <vob file="d:\DVD\Temp\TS1Menu.mpg" pause="inf"/>
            <button name="TS1B1">if (g1 eq 0) {subtitle=64;resume;} else {subtitle=64;jump menu 1;}</button>
            <button name="TS1B2">if (g1 eq 0) {subtitle=0;resume;} else {subtitle=0;jump menu 1;}</button>
            <button name="TS1B0">jump title 1 chapter 1;</button>
          </pgc>
        </menus>
        <titles>
          <audio lang="EN" />
          <subpicture lang="ET" />
          <pgc>
           <pre> { g1=0; } </pre>
            <vob file="d:\DVD\Temp\VTS_01_PGC_01_1 - 0xE0 - Video - MPEG-2 - 720x480 (NTSC) - 16~9 - Letterboxed_SUB1.mpg" chapters="00:00:00.000,some skipped,03:08:42.000"/>
            <post>call menu;</post>
          </pgc>
        </titles>
      </titleset>
    </dvdauthor>
    Quote Quote  
  2. Two tips:

    1. Is seems to be better to set subtitle=62 to 'really' switch subs off.
    2. I would use only 2 buttons on the titlesetmenu:
    - Watch movie with subtitles
    - Watch movie without subtitles

    The corresponding actions would be:
    Watch movie with subtitles: subtitle=64; jump title 1 chapter 1;
    Watch movie without subtitles: subtitle=62; jump title 1 chapter 1;

    The problems is probably, that the action: 'if (g1 eq 0) {subtitle=64;resume;} else {subtitle=64;jump menu 1;}' should be used only for a dedicated subtitle menu, not for a 'normal' titlesetmenu.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!