DVDBuilder for C++  3.4
DVD Authoring Software Development Kit
<command> Element

Description

Defines a Virtual Machine (VM) command.

<command>
<opcode></opcode>
</command>
Child Elements
Element Description
<opcode> Specifies the Virtual Machine (VM) command opcode.

Example

The following example shows a DVD that has title menu, root menu and three titles. The title menu is a dummy one. It simply redirects to the root menu. The root menu supports playing each clip individually and returns back or playing all clips in sequence.

<?xml version='1.0' encoding='utf-8'?>
<dvd version='2.3' xmlns='http://www.primosoftware.com/dvdbuilder/2.3'>
<videoManager>
<firstPlayCommands>
<command>
<!-- JumpSS VTSM (vts 1, tt 1, menu ROOT), 30 06 00 01 01 83 00 00 -->
<opcode>[0x30][0x06][0x0][0x01][0x01][0x83][0x0][0x0]</opcode>
</command>
</firstPlayCommands>
<menus>
<menu id='1' entry='title'>
<preCommands>
<command>
<!-- JumpSS VTSM (vts 1, tt 1, menu ROOT), 30 06 00 01 01 83 00 00 -->
<opcode>[0x30][0x06][0x0][0x01][0x01][0x83][0x0][0x0]</opcode>
</command>
</preCommands>
<background file='menu\title_menu.mpg' />
</menu>
</menus>
</videoManager>
<!-- GPRM11 -> Play All Mode (True=1, False=0) -->
<titleSet>
<titles>
<title id='100' chapters='00:00:00;'>
<videoObject file='../movies/3/columbiatristardvd_pal.mpg' />
<postCommands>
<command>
<!-- if (GPRM11 == 1) Goto 3, 00 a1 00 0b 00 01 00 03 -->
<opcode>[0x00][0xa1][0x00][0x0b][0x00][0x01][0x00][0x03]</opcode>
</command>
<command>
<!-- CallSS VTSM (menu ROOT, rsm_cell 1), 30 08 00 00 01 83 00 00 -->
<opcode>[0x30][0x08][0x00][0x00][0x01][0x83][0x00][0x00]</opcode>
</command>
<command>
<!-- JumpVTS_PTT (tt 2, ptt 1), 30 05 00 01 00 02 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x02][0x00][0x00]</opcode>
</command>
</postCommands>
</title>
<title id='101' chapters='00:00:00;'>
<videoObject file='../movies/4/dreamworksanim_pal.mpg' />
<postCommands>
<command>
<!-- if (GPRM11 == 1) Goto 3, 00 a1 00 0b 00 01 00 03 -->
<opcode>[0x00][0xa1][0x00][0x0b][0x00][0x01][0x00][0x03]</opcode>
</command>
<command>
<!-- CallSS VTSM (menu ROOT, rsm_cell 1), 30 08 00 00 01 83 00 00 -->
<opcode>[0x30][0x08][0x00][0x00][0x01][0x83][0x00][0x00]</opcode>
</command>
<command>
<!-- JumpVTS_PTT (tt 3, ptt 1), 30 05 00 01 00 03 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x03][0x00][0x00]</opcode>
</command>
</postCommands>
</title>
<title id='102' chapters='00:00:00;'>
<videoObject file='../movies/3/columbiatristardvd_pal.mpg' />
<postCommands>
<command>
<!-- CallSS VTSM (menu ROOT, rsm_cell 1), 30 08 00 00 01 83 00 00 -->
<opcode>[0x30][0x08][0x00][0x00][0x01][0x83][0x00][0x00]</opcode>
</command>
</postCommands>
</title>
</titles>
<menus>
<menu id='2' entry='root'>
<preCommands>
<command>
<!-- GPRM11 = 0, 71 00 00 0b 00 00 00 00 -->
<opcode>[0x71][0x00][0x00][0x0b][0x00][0x00][0x00][0x00]</opcode>
</command>
</preCommands>
<postCommands>
<command>
<opcode>[0x20][0x04][0x0][0x0][0x0][0x0][0x0][0x01]</opcode>
<!-- LinkPGCN 1, 20 04 00 00 00 00 00 01 -->
</command>
</postCommands>
<!-- Play Title 1 button -->
<button left='107' top='96' width='166' height='35'>
<command>
<!-- (Jump_VTS_PTT) Jump to Chapter, 30 05 00 01 00 01 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x01][0x00][0x00]</opcode>
</command>
</button>
<!-- Play Title 2 button -->
<button left='107' top='155' width='170' height='37'>
<command>
<!-- (Jump_VTS_PTT) Jump to Chapter, 30 05 00 01 00 02 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x02][0x00][0x00]</opcode>
</command>
</button>
<!-- Play Title 3 button -->
<button left='107' top='216' width='171' height='36'>
<command>
<!-- (Jump_VTS_PTT) Jump to Chapter, 30 05 00 01 00 03 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x03][0x00][0x00]</opcode>
</command>
</button>
<!-- Play All button -->
<button left='107' top='401' width='112' height='36'>
<command>
<!-- LinkPGCN 2, 20 04 00 00 00 00 00 02 -->
<opcode>[0x20][0x04][0x0][0x0][0x0][0x0][0x0][0x02]</opcode>
</command>
</button>
<mask file='menu\root_menu_mask.bmp' patternColor='#000000' backgroundColor='#FFFFFF' emphasisColor1='#000001' emphasisColor2='#000002' />
<display emphasis2Contrast='0' emphasis1Contrast='0' backgroundContrast='0' patternContrast='0' emphasis2Color='#000000' emphasis1Color='#000000' patternColor='#000000' />
<action emphasis2Contrast='0' emphasis1Contrast='0' backgroundContrast='0' patternContrast='7' emphasis2Color='#000000' emphasis1Color='#000000' backgroundColor='#000000' patternColor='#0000FF' />
<selection emphasis2Contrast='0' emphasis1Contrast='0' backgroundContrast='0' patternContrast='7' emphasis2Color='#000000' emphasis1Color='#000000' backgroundColor='#000000' patternColor='#FF0000' />
<background file='menu\root_menu.mpg' />
</menu>
<!-- Play All Dummy menu -->
<menu id='101'>
<preCommands>
<command>
<!-- GPRM11 = 1, 71 00 00 0b 00 01 00 00 -->
<opcode>[0x71][0x00][0x00][0x0b][0x00][0x01][0x00][0x00]</opcode>
</command>
<command>
<!-- (Jump_VTS_PTT) Jump to Chapter, 30 05 00 01 00 01 00 00 -->
<opcode>[0x30][0x05][0x00][0x01][0x00][0x01][0x00][0x00]</opcode>
</command>
</preCommands>
</menu>
</menus>
</titleSet>
</dvd>