Answers.Body: <p>I've create</p>
  <ul>
  <li>TITLE menu with 11 items of artists</li>
  <li>11 VMGM menus with items of songs</li>
  <li>99 TITLESET with menu and song</li>
  </ul>
  <p>Then insert commands</p>
  <p>TITLE menu:
  <strong>jump to vmgm menu ARTISTNO</strong></p>
  <p>VMGM menu of artist:
  <strong>jump to titleset TITLESET title 1</strong></p>
  <p>Titleset TITLESET title 1:
  <strong>g0=1; call vmgm menu ARTISTNO;</strong></p>
  <p>vmgm menu 1:
  (pre commands) <strong>if(g0==1){jump titleset 2 menu;} if(g0==2){jump titleset 3 menu;} if(g0==3){jump titleset 4 menu;} if(g0==4){jump titleset 5 menu;} if(g0==5){jump titleset 6 menu;} if(g0==6){jump titleset 7 menu;} if(g0==7){jump titleset 8 menu;} if(g0==8){jump titleset 9 menu;} (show menu)</strong></p>
  <p>titleset (root) 2 menu 1:
  <strong>jump title 1;</strong></p>
  <p>...</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-06-10T13:12:25.567Z
Answers.LastActivityDate: 2023-06-10T13:12:25.567Z
Answers.UserDisplayName: user1855805
Body: <p>I tried to make a DVD-Video of my favorite songs with a menu.</p>
  <pre><code>&lt;vmgm&gt;
  &lt;menus&gt;
    &lt;video format=&quot;pal&quot; aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;DE&quot;/&gt;
    &lt;subpicture lang=&quot;EN&quot;/&gt;
    &lt;!--************** MENU 1 **************--&gt;
    &lt;pgc entry=&quot;title&quot;&gt;
      &lt;button name=&quot;button01&quot;&gt;g0=0;jump titleset 1 menu;&lt;/button&gt;
      &lt;button name=&quot;button02&quot;&gt;g0=0;jump titleset 5 menu;&lt;/button&gt;
      &lt;button name=&quot;button03&quot;&gt;g0=0;jump titleset 9 menu;&lt;/button&gt;
      &lt;button name=&quot;button04&quot;&gt;g0=0;jump titleset 13 menu;&lt;/button&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp/dvd-tmp/menu0-0.mpg&quot; pause=&quot;inf&quot;/&gt;
      &lt;pre&gt;g2=101;if (g0 == 3) { g0 = 2; jump title 2; }if (g0 == 4) { g0 = 2; jump title 3; }if (g0 == 5) { g0 = 2; jump title 4; }if (g0 == 6) { g0 = 2; jump title 5; }if (g0 == 7) { g0 = 2; jump title 6; }if (g0 == 8) { g0 = 2; jump title 7; }if (g0 == 9) { g0 = 2; jump title 8; }if (g0 == 10) { g0 = 2; jump title 9; }if (g0 == 11) { g0 = 2; jump title 10; }if (g0 == 12) { g0 = 2; jump title 11; }if (g0 == 13) { g0 = 2; jump title 12; }if (g0 == 14) { g0 = 2; jump title 13; }if (g0 == 15) { g0 = 2; jump title 14; }if (g0 == 16) { g0 = 2; jump title 15; }if (g0 == 17) { g0 = 2; jump title 16; }&lt;/pre&gt;
    &lt;/pgc&gt;
  &lt;/menus&gt;
  &lt;/vmgm&gt;
  </code></pre>
  <p>So, we have a list of 4 artists. Then we assign a menu of 4 songs to each artist in titleset. And one more song in this titleset.</p>
  <pre><code>&lt;titleset&gt;
  &lt;menus&gt;
    &lt;video format=&quot;pal&quot; aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;subpicture lang=&quot;EN&quot;/&gt;
    &lt;!--************** MENU 1 **************--&gt;
    &lt;pgc entry=&quot;root&quot;&gt;
      &lt;button name=&quot;button01&quot;&gt;g1=button;g0=2;jump title 1;&lt;/button&gt;
      &lt;button name=&quot;button02&quot;&gt;g1=button;g0=2;jump titleset 2 title 1;&lt;/button&gt;
      &lt;button name=&quot;button03&quot;&gt;g1=button;g0=2;jump titleset 3 title 1;&lt;/button&gt;
      &lt;button name=&quot;button04&quot;&gt;g1=button;g0=2;jump titleset 4 title 1;&lt;/button&gt;
      &lt;button name=&quot;button00&quot;&gt;g1=button;g0=0;jump vmgm menu 1;&lt;/button&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp/dvd-tmp/menu1-0.mpg&quot; pause=&quot;inf&quot;/&gt;
      &lt;pre&gt;if (g2 &amp;amp; 0xFFF == 1 and g1 gt 0) button = g1; else button = 1024;if (g2 &amp;amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;&lt;/pre&gt;
    &lt;/pgc&gt;
  &lt;/menus&gt;
  &lt;titles&gt;
    &lt;video aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;!--************** TITLE 1 **************--&gt;
    &lt;pgc&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry001.vob&quot; chapters=&quot;0:00,0:30&quot;/&gt;
      &lt;post&gt;if (g0 gt 1) { g0 = 3; call vmgm menu entry title; }&lt;/post&gt;
    &lt;/pgc&gt;
  &lt;/titles&gt;
  &lt;/titleset&gt;
  </code></pre>
  <p>We place the remaining 3 artist's songs in separate sections below.</p>
  <pre><code>&lt;titleset&gt;
  &lt;menus&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;subpicture lang=&quot;EN&quot;/&gt;
    &lt;!--************** MENU 1 **************--&gt;
    &lt;pgc entry=&quot;root&quot;&gt;
      &lt;vob file=&quot;/usr/share/dvdstyler/data/empty_pal_ac3.mpg&quot;/&gt;
      &lt;pre&gt;if (g2 &amp;amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;&lt;/pre&gt;
    &lt;/pgc&gt;
  &lt;/menus&gt;
  &lt;titles&gt;
    &lt;video aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;!--************** TITLE 1 **************--&gt;
    &lt;pgc&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry002.vob&quot; chapters=&quot;0:00,0:30&quot;/&gt;
      &lt;post&gt;if (g0 gt 1) { g0 = 4; call vmgm menu entry title; }&lt;/post&gt;
    &lt;/pgc&gt;
  &lt;/titles&gt;
  &lt;/titleset&gt;
  &lt;titleset&gt;
  &lt;menus&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;subpicture lang=&quot;EN&quot;/&gt;
    &lt;!--************** MENU 1 **************--&gt;
    &lt;pgc entry=&quot;root&quot;&gt;
      &lt;vob file=&quot;/usr/share/dvdstyler/data/empty_pal_ac3.mpg&quot;/&gt;
      &lt;pre&gt;if (g2 &amp;amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;&lt;/pre&gt;
    &lt;/pgc&gt;
  &lt;/menus&gt;
  &lt;titles&gt;
    &lt;video aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;!--************** TITLE 1 **************--&gt;
    &lt;pgc&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry003.vob&quot; chapters=&quot;0:00,0:30&quot;/&gt;
      &lt;post&gt;if (g0 gt 1) { g0 = 5; call vmgm menu entry title; }&lt;/post&gt;
    &lt;/pgc&gt;
  &lt;/titles&gt;
  &lt;/titleset&gt;
  &lt;titleset&gt;
  &lt;menus&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;subpicture lang=&quot;EN&quot;/&gt;
    &lt;!--************** MENU 1 **************--&gt;
    &lt;pgc entry=&quot;root&quot;&gt;
      &lt;vob file=&quot;/usr/share/dvdstyler/data/empty_pal_ac3.mpg&quot;/&gt;
      &lt;pre&gt;if (g2 &amp;amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;&lt;/pre&gt;
    &lt;/pgc&gt;
  &lt;/menus&gt;
  &lt;titles&gt;
    &lt;video aspect=&quot;4:3&quot;/&gt;
    &lt;audio lang=&quot;EN&quot;/&gt;
    &lt;!--************** TITLE 1 **************--&gt;
    &lt;pgc&gt;
      &lt;vob file=&quot;/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry001.vob&quot; chapters=&quot;0:00,0:30&quot;/&gt;
      &lt;post&gt;if (g0 gt 1) { g0 = 6; call vmgm menu entry title; }g2|=0x8000; call menu entry root;&lt;/post&gt;
    &lt;/pgc&gt;
  &lt;/titles&gt;
  &lt;/titleset&gt;
  </code></pre>
  <p>We repeat the same for the remaining 3 artists. So we have a DVD with 16 songs. After adding an artist with 4 songs, we get an error. The same error if we will add a song for each artist. DVD file structure ends on 16-th item.</p>
  <pre><code>VIDEO_TS.BUP
  VIDEO_TS.IFO
  VIDEO_TS.VOB
  VTS_01_0.BUP
  VTS_01_0.IFO
  VTS_01_0.VOB
  VTS_01_1.VOB
  ...
  VTS_16_0.BUP
  VTS_16_0.IFO
  VTS_16_0.VOB
  VTS_16_1.VOB
  </code></pre>
  <p>How to make it fit 99 items?</p>
  
Tags: <dvd>
Title: dvdauthor ERR: Can only have 128 commands for pre, post, and cell commands
UserDisplayName: user1855805
ThreadText: # dvdauthor ERR: Can only have 128 commands for pre, post, and cell commands
  
  (Asked by: username_0 on 2023-05-19)
  
  I tried to make a DVD-Video of my favorite songs with a menu.
  
  ```
  <vmgm>
  <menus>
    <video format="pal" aspect="4:3"/>
    <audio lang="DE"/>
    <subpicture lang="EN"/>
    <!--************** MENU 1 **************-->
    <pgc entry="title">
      <button name="button01">g0=0;jump titleset 1 menu;</button>
      <button name="button02">g0=0;jump titleset 5 menu;</button>
      <button name="button03">g0=0;jump titleset 9 menu;</button>
      <button name="button04">g0=0;jump titleset 13 menu;</button>
      <vob file="/home/NTFS/DVD-VIDEO/tmp/dvd-tmp/menu0-0.mpg" pause="inf"/>
      <pre>g2=101;if (g0 == 3) { g0 = 2; jump title 2; }if (g0 == 4) { g0 = 2; jump title 3; }if (g0 == 5) { g0 = 2; jump title 4; }if (g0 == 6) { g0 = 2; jump title 5; }if (g0 == 7) { g0 = 2; jump title 6; }if (g0 == 8) { g0 = 2; jump title 7; }if (g0 == 9) { g0 = 2; jump title 8; }if (g0 == 10) { g0 = 2; jump title 9; }if (g0 == 11) { g0 = 2; jump title 10; }if (g0 == 12) { g0 = 2; jump title 11; }if (g0 == 13) { g0 = 2; jump title 12; }if (g0 == 14) { g0 = 2; jump title 13; }if (g0 == 15) { g0 = 2; jump title 14; }if (g0 == 16) { g0 = 2; jump title 15; }if (g0 == 17) { g0 = 2; jump title 16; }</pre>
    </pgc>
  </menus>
  </vmgm>
  
  ```
  
  So, we have a list of 4 artists. Then we assign a menu of 4 songs to each artist in titleset. And one more song in this titleset.
  
  ```
  <titleset>
  <menus>
    <video format="pal" aspect="4:3"/>
    <audio lang="EN"/>
    <subpicture lang="EN"/>
    <!--************** MENU 1 **************-->
    <pgc entry="root">
      <button name="button01">g1=button;g0=2;jump title 1;</button>
      <button name="button02">g1=button;g0=2;jump titleset 2 title 1;</button>
      <button name="button03">g1=button;g0=2;jump titleset 3 title 1;</button>
      <button name="button04">g1=button;g0=2;jump titleset 4 title 1;</button>
      <button name="button00">g1=button;g0=0;jump vmgm menu 1;</button>
      <vob file="/home/NTFS/DVD-VIDEO/tmp/dvd-tmp/menu1-0.mpg" pause="inf"/>
      <pre>if (g2 &amp; 0xFFF == 1 and g1 gt 0) button = g1; else button = 1024;if (g2 &amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;</pre>
    </pgc>
  </menus>
  <titles>
    <video aspect="4:3"/>
    <audio lang="EN"/>
    <!--************** TITLE 1 **************-->
    <pgc>
      <vob file="/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry001.vob" chapters="0:00,0:30"/>
      <post>if (g0 gt 1) { g0 = 3; call vmgm menu entry title; }</post>
    </pgc>
  </titles>
  </titleset>
  
  ```
  
  We place the remaining 3 artist's songs in separate sections below.
  
  ```
  <titleset>
  <menus>
    <audio lang="EN"/>
    <subpicture lang="EN"/>
    <!--************** MENU 1 **************-->
    <pgc entry="root">
      <vob file="/usr/share/dvdstyler/data/empty_pal_ac3.mpg"/>
      <pre>if (g2 &amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;</pre>
    </pgc>
  </menus>
  <titles>
    <video aspect="4:3"/>
    <audio lang="EN"/>
    <!--************** TITLE 1 **************-->
    <pgc>
      <vob file="/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry002.vob" chapters="0:00,0:30"/>
      <post>if (g0 gt 1) { g0 = 4; call vmgm menu entry title; }</post>
    </pgc>
  </titles>
  </titleset>
  <titleset>
  <menus>
    <audio lang="EN"/>
    <subpicture lang="EN"/>
    <!--************** MENU 1 **************-->
    <pgc entry="root">
      <vob file="/usr/share/dvdstyler/data/empty_pal_ac3.mpg"/>
      <pre>if (g2 &amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;</pre>
    </pgc>
  </menus>
  <titles>
    <video aspect="4:3"/>
    <audio lang="EN"/>
    <!--************** TITLE 1 **************-->
    <pgc>
      <vob file="/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry003.vob" chapters="0:00,0:30"/>
      <post>if (g0 gt 1) { g0 = 5; call vmgm menu entry title; }</post>
    </pgc>
  </titles>
  </titleset>
  <titleset>
  <menus>
    <audio lang="EN"/>
    <subpicture lang="EN"/>
    <!--************** MENU 1 **************-->
    <pgc entry="root">
      <vob file="/usr/share/dvdstyler/data/empty_pal_ac3.mpg"/>
      <pre>if (g2 &amp; 0x8000 !=0) {g2^=0x8000;if (g2==101) jump vmgm menu 1;}g2=1;jump vmgm menu;</pre>
    </pgc>
  </menus>
  <titles>
    <video aspect="4:3"/>
    <audio lang="EN"/>
    <!--************** TITLE 1 **************-->
    <pgc>
      <vob file="/home/NTFS/DVD-VIDEO/tmp//dvd-cache/entry001.vob" chapters="0:00,0:30"/>
      <post>if (g0 gt 1) { g0 = 6; call vmgm menu entry title; }g2|=0x8000; call menu entry root;</post>
    </pgc>
  </titles>
  </titleset>
  
  ```
  
  We repeat the same for the remaining 3 artists. So we have a DVD with 16 songs. After adding an artist with 4 songs, we get an error. The same error if we will add a song for each artist. DVD file structure ends on 16-th item.
  
  ```
  VIDEO_TS.BUP
  VIDEO_TS.IFO
  VIDEO_TS.VOB
  VTS_01_0.BUP
  VTS_01_0.IFO
  VTS_01_0.VOB
  VTS_01_1.VOB
  ...
  VTS_16_0.BUP
  VTS_16_0.IFO
  VTS_16_0.VOB
  VTS_16_1.VOB
  
  ```
  
  How to make it fit 99 items?
  
  **Tags:** dvd
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-06-10. Score: 0
  
  I've create
  
  * TITLE menu with 11 items of artists
  * 11 VMGM menus with items of songs
  * 99 TITLESET with menu and song
  
  Then insert commands
  
  TITLE menu:
  **jump to vmgm menu ARTISTNO**
  
  VMGM menu of artist:
  **jump to titleset TITLESET title 1**
  
  Titleset TITLESET title 1:
  **g0=1; call vmgm menu ARTISTNO;**
  
  vmgm menu 1:
  (pre commands) **if(g0==1){jump titleset 2 menu;} if(g0==2){jump titleset 3 menu;} if(g0==3){jump titleset 4 menu;} if(g0==4){jump titleset 5 menu;} if(g0==5){jump titleset 6 menu;} if(g0==6){jump titleset 7 menu;} if(g0==7){jump titleset 8 menu;} if(g0==8){jump titleset 9 menu;} (show menu)**
  
  titleset (root) 2 menu 1:
  **jump title 1;**
  
  ...
  
  
  ---
  
  