dvdauthor 只能有 128 条前置、后置和单元命令

dvdauthor 只能有 128 条前置、后置和单元命令

我创建了 bash 脚本,将我的音频 CD 存档存档到带有菜单的 DVD 上。结果 dvdauthor.xml 包含艺术家列表的标题菜单和带有艺术家歌曲列表的 9 个菜单。共有 67 首歌曲。

<dvdauthor jumppad="0"><vmgm><menus><video format="pal" aspect="4:3"/>
  <pgc entry="title"><!-- MENU 1 LIST OF ARTIST -->
    <button name="button01">g0=button; g1=0; g10=0; g11=0; jump menu 2;</button>
...
    <button name="button08">g0=button; g1=0; g10=0; g11=0; jump menu 9;</button>
    <button name="shuffle">g0=0; g1=0; g10=1; g11=random(8); (...) if(g11==8) jump vmgm menu 9;</button>
    <pre>if(g11>0) g11=random(8); (...) if(g11==8) jump vmgm menu 9; g10=0; (...) if(g1>0 and g0==8192) jump vmgm menu 9; if(g0 gt 0) button=g0; else button=9216;</pre>
  </pgc>
  <pgc><!-- MENU 2 ARTIST 1  -->
    <button name="button01">g1=button; g10=0; jump title 1;</button>
    ...
  <pgc><!-- MENU 9 ARTIST 8 -->
...
    <button name="button06">g1=button; g10=0; jump title 66;</button>
    <button name="button07">g1=button; g10=0; jump title 67;</button>
    <button name="shuffle">g1=0; g10=10; g11=random(8); (...) if(g11==8) jump title 67;</button>
    <button name="artlist">g1=0; jump menu 1;</button>
    <pre>if(g10>0) g11=random(8); (...) if(g11==8) jump title 67; if(g0 == 8192 and g1 gt 0) button=g1; else button=9216; g1=0;</pre>
  </pgc></menus></vmgm>
<titleset><!-- TITLE 1 SONG 1 --><menus><pgc entry="root"><vob file="0.mpg"/></pgc></menus>
  <titles><video format="pal" aspect="4:3"/>
    <pgc><vob file="Song1.mpg" chapters="0:00,1:43,2:13,2:53,04:19.03"/>
      <pre>g11=0;</pre>
      <post>g11=2; if(g10==1)call vmgm menu 1; call vmgm menu 2;</post>
    </pgc>
  </titles>
</titleset>
 ...
<titleset><!-- TITLE 67 SONG 67 -->
<menus><pgc entry="root"><vob file="0.mpg"/></pgc></menus>
<titles><video format="pal" aspect="4:3"/>
  <pgc><vob file="Song67.mpg" chapters="0:00,1:03,2:38,03:56.44"/>
    <pre>g11=0;</pre>
    <post>g11=1; if(g10==1)call vmgm menu 1;if(g10==0) call vmgm menu 2; call vmgm menu 9;</post>
  </pgc>
</titles>

因此,标题中有 67 个“前”命令,菜单中有 9 个。标题中有 67 个“后”命令。总共有 143 个,超过 128 个。DVD 播放没有问题。但如果我再添加一个包含 7 首歌曲的菜单,就会出现“ERR:前、后和单元命令只能有 128 个命令。”

然后我重新编写并从所有标题中删除“pre”。然后我有 10 个菜单,标题中有“pre”和 74 个“post”。图块中没有“pre”。现在是 84,小于 128。但我收到相同的错误“ERR:只能有 128 个用于 pre、post 和 cell 命令的命令。”我有 74 个带歌曲的按钮、10 个“随机播放”按钮和 9 个“后退”按钮。一共有 93 个按钮。

“ PGC 的<pre><post>部分加起来最多可以包含 128 条 VM 指令”。如何计算指令?

补充笔记

我改变了

<button name="shuffle">g0=0; g1=0; g10=1; g11=random(8); (...) if(g11==8) jump vmgm menu 9;</button>

本身和 dvdauthor 接受额外的约 10 首歌曲

<button name="shuffle">g0=0; g1=0; g10=1; g11=random(8); jump vmgm menu 1;</button>

接下来我尝试修改所有 70 个标题集标题中的“pre”,但似乎没有效果。

<pre>g11=0;</pre> --> <pre>g11=0; g3=random($num);g4=random($num);g5=random($num);g6=random($num);g7=random($num);g8=random($num);g9=random($num);</pre>

我也尝试过在每个标题集菜单中跳转,但无法自动激活命令按钮。

最后说明

我编写了一个脚本,如果使用 2 个屏幕选择艺术家,它将接受 99 首歌曲。奇怪的是,在这种情况下,前/后的数量比一个艺术家选择屏幕的数量还多。以下是缩短的 davdauthor.xml

<dvdauthor jumppad="0">
  <vmgm>
    <menus><video format="pal" aspect="4:3"/>
      <pgc entry="title"><!-- MENU 1 DVD GLAM ROCK -->
        <button name="button01">g0=0; g1=button; g3=0; jump vmgm menu 2;</button>
        <button name="button02">g0=0; g1=button; g3=0; jump vmgm menu 3;</button>
        <button name="shuffle">g0=1; g1=0; g2=0; g3=random(5)+0; jump vmgm menu 1;</button>
        <button name="artlist">jump vmgm menu 4;</button>
        <vob file=".dvdauthor/01.mpg" pause="inf"/>
        <pre>if(g3==100)jump vmgm menu 4; if(g3>2) jump vmgm menu 3; if(g3>0) jump vmgm menu 2; g0=0; if(g2>0 and g1==1024) jump vmgm menu 2; if(g2>0 and g1==2048) jump vmgm menu 3; if(g1 gt 0) button=g1; else button=3072;</pre>
      </pgc>
      <pgc><!-- MENU 2 EUROPE -->
        <button name="button01">g0=0; g2=button; jump title 1;</button>
        <button name="button02">g0=0; g2=button; jump title 2;</button>
        <button name="shuffle">g2=0; g0=2; g3=random(2)+0; jump vmgm menu 2;</button>
        <button name="artlist">g2=0; jump vmgm menu 4;</button>
        <vob file=".dvdauthor/02.mpg" pause="inf"/>
        <pre> if(g3==1) jump title 1; if(g3==2) jump title 2; if(g1 == 1024 and g2 gt 0) button=g2; else button=3072; g2=0;</pre>
      </pgc>
      <pgc><!-- MENU 3 SUPERTRAMP & ROGER HODGSON -->
        <button name="button01">g0=0; g2=button; jump title 3;</button>
        <button name="button02">g0=0; g2=button; jump title 4;</button>
        <button name="button03">g0=0; g2=button; jump title 5;</button>
        <button name="shuffle">g2=0; g0=3; g3=random(3)+2; jump vmgm menu 3;</button>
        <button name="artlist">g2=0; jump vmgm menu 4;</button>
        <vob file=".dvdauthor/03.mpg" pause="inf"/>
        <pre> if(g3==3) jump title 3; if(g3==4) jump title 4; if(g3==5) jump title 5; if(g1 == 2048 and g2 gt 0) button=g2; else button=4096; g2=0;</pre>
      </pgc>
      <pgc><!-- MENU 4 GLAM ROCK -->
        <button name="button01">g0=0; g11=button; g3=100; jump vmgm menu 5;</button>
        <button name="button02">g0=0; g11=button; g3=100; jump vmgm menu 6;</button>
        <button name="shuffle">g0=1; g11=0; g12=0; g3=random(4)+5; jump vmgm menu 4;</button>
        <button name="artlist">jump vmgm menu 1;</button>
        <vob file=".dvdauthor/04.mpg" pause="inf"/>
        <pre>if(g3==100)g3=0; if(g3>7) jump vmgm menu 6; if(g3>5) jump vmgm menu 5; g0=0; if(g12>0 and g11==1024) jump vmgm menu 5; if(g12>0 and g11==2048) jump vmgm menu 6; if(g11 gt 0) button=g11; else button=3072;</pre>
      </pgc>
      <pgc><!-- MENU 5 T.REX (pop) -->
        <button name="button01">g0=0; g12=button; jump title 6;</button>
        <button name="button02">g0=0; g12=button; jump title 7;</button>
        <button name="shuffle">g12=0; g0=2; g3=random(2)+5; jump vmgm menu 5;</button>
        <button name="artlist">g12=0; jump vmgm menu 1;</button>
        <vob file=".dvdauthor/05.mpg" pause="inf"/>
        <pre> if(g3==6) jump title 6; if(g3==7) jump title 7; if(g11 == 1024 and g12 gt 0) button=g12; else button=3072; g12=0;</pre>
      </pgc>
      <pgc><!-- MENU 6 VA SONGS -->
        <button name="button01">g0=0; g12=button; jump title 8;</button>
        <button name="button02">g0=0; g12=button; jump title 9;</button>
        <button name="shuffle">g12=0; g0=3; g3=random(2)+7; jump vmgm menu 6;</button>
        <button name="artlist">g12=0; jump vmgm menu 1;</button>
        <vob file=".dvdauthor/06.mpg" pause="inf"/>
        <pre> if(g3==8) jump title 8; if(g3==9) jump title 9; if(g11 == 2048 and g12 gt 0) button=g12; else button=3072; g12=0;</pre>
      </pgc>
    </menus>
  </vmgm>
  <titleset><!-- TITLE 1 EUROPE/Europe-Catch That Plane -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="DVD GLAM ROCK/EUROPE/Europe-Catch That Plane.mpg" chapters="0:00,1:11,3:04,04:46.84"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=0;g4=random(5)+0;g5=random(2)+0;</pre>
        <post>g3=2; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 1;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 2 EUROPE/Europe-Children Of The Mind -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="DVD GLAM ROCK/EUROPE/Europe-Children Of The Mind.mpg" chapters="0:00,0:30,3:15,04:27.85"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=0;g4=random(5)+0;g5=random(2)+0;</pre>
        <post>g3=3; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 1;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 3 SUPERTRAMP & ROGER HODGSON/Supertramp-Breakfast in America -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="DVD GLAM ROCK/SUPERTRAMP &amp; ROGER HODGSON/Supertramp-Breakfast in America.mpg" chapters="0:00,1:27,02:36.32"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=0;g4=random(5)+0;g5=random(3)+2;</pre>
        <post>g3=4; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 1;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 4 SUPERTRAMP & ROGER HODGSON/Supertramp-Child of Vision -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="DVD GLAM ROCK/SUPERTRAMP &amp; ROGER HODGSON/Supertramp-Child of Vision.mpg" chapters="0:00,0:59,1:53,02:49.89"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=0;g4=random(5)+0;g5=random(3)+2;</pre>
        <post>g3=5; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 1;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 5 SUPERTRAMP & ROGER HODGSON/Roger Hodgson-Hai Hai -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="DVD GLAM ROCK/SUPERTRAMP &amp; ROGER HODGSON/Roger Hodgson-Hai Hai.mpg" chapters="0:00,1:40,2:16,2:43,3:19,3:46,05:31.20"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=0;g4=random(5)+0;g5=random(3)+2;</pre>
        <post>g3=1; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 1;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 6 T.REX (pop)/T.Rex-Jupiter Liar -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="GLAM ROCK/T.REX (pop)/T.Rex-Jupiter Liar.mpg" chapters="0:00,0:30,1:00,03:38.16"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=100;g4=random(4)+5;g5=random(2)+5;</pre>
        <post>g3=7; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 4;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 7 T.REX (pop)/T.Rex-Space Boss -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="GLAM ROCK/T.REX (pop)/T.Rex-Space Boss.mpg" chapters="0:00,0:30,1:00,02:44.96"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=100;g4=random(4)+5;g5=random(2)+5;</pre>
        <post>g3=8; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 4;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 8 VA SONGS/ELO-Four Little Diamonds -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="GLAM ROCK/VA SONGS/ELO-Four Little Diamonds.mpg" chapters="0:00,0:30,1:00,2:00,04:04.94"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=100;g4=random(4)+5;g5=random(2)+7;</pre>
        <post>g3=9; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 4;</post>
      </pgc>
    </titles>
  </titleset>
  <titleset><!-- TITLE 9 VA SONGS/Jeff Lynne-When The Night Comes -->
    <menus><pgc entry="root"><vob file=".dvdauthor/0.mpg"/></pgc></menus>
    <titles><video format="pal" aspect="4:3"/>
      <pgc><vob file="GLAM ROCK/VA SONGS/Jeff Lynne-When The Night Comes.mpg" chapters="0:00,0:30,1:00,03:12.16"/>
        <!-- g3-next titleset; g4-random partition; g5-random artist -->
        <pre>g3=100;g4=random(4)+5;g5=random(2)+7;</pre>
        <post>g3=6; if(g0==1)g3=g4; if(g0>1)g3=g5; call vmgm menu 4;</post>
      </pgc>
    </titles>
  </titleset>
</dvdauthor>

8.5G DVD 几乎可以容纳 6G DVD 的 VOB 和 2.5G flac。

AUDIO_TS
VIDEO_TS
VTS
VTS  ALICE  COOPER
VTS  ALICE  COOPER  (hits)
VTS  BILLY  IDOL
VTS  BON  JOVI
VTS  ELO  &  JEFF  LYNNE
VTS  EUROPE
VTS  FRANZ  FERDINAND  (pop)
VTS  FRANZ  FERDINAND  (songs)
VTS.SHUFFLE
VTS  SUPERTRAMP  &  ROGER  HODGSON
VTS  SWEET
VTS  T.REX  (pop)
VTS  URIAH  HEEP
WAV  ALICE  COOPER
WAV  ALICE  COOPER  (hits)
WAV  BILLY  IDOL
WAV  BON  JOVI
WAV  ELO  &  JEFF  LYNNE
WAV  EUROPE
WAV.FLAC
WAV  FRANZ  FERDINAND  (pop)
WAV  FRANZ  FERDINAND  (songs)
WAV.SHUFFLE
WAV  SUPERTRAMP  &  ROGER  HODGSON
WAV  SWEET
WAV  T.REX  (pop)
WAV  URIAH  HEEP

所有项目都是链接的,因此我们实际上在 8.5G DVD 上有 40G 首歌曲。

相关内容