Japanese
PROGRAMMER'S GUIDECD Builder Script Grammar
Back | ■
CD Builder Script Grammar Manual

Appendix A

CD Builder Script Grammar Quick Reference




 Disc  OutputFile.DSK
  Session { CDROM|SEMIXA }[OutputFileName]
   LeadIn  MODE1
   EndLeadIn
  [SystemArea  MSDOSFileName]
   Track  { CDDA|MODE1|MODE2 }
    Volume ISO9660  OutputFile.PVD
     PrimaryVolume 0:2:16
      [SystemIdentifier "identifier" ... ]
     EndPrimaryVolume
    EndVolume
   ┏File ISOFileName
   ┃ ┌BeginTimeS   RelativeTime  ;Minutes:Seconds:Frame or FAD value│Trigger        Position in file; relative time
   ┃ │EndTimeS     RelativeTime                                     │Eors           Position in file
   ┃ │BeginTimeE   RelativeTime                                     │
   ┃ │EndTimeE     RelativeTime                                     │
   ┃ │FileNo       File number; 1-255                               │MinLength      {Number of bytes | Number of sectors}    │
   ┃ │Pack                                                          │RecordingDate  Date;DD/MM/YY HH:MM:SS:1/100Second: GMT  │
   ┃ └SectorRate   0~65535; Automatically calculated when 0         │
   ┃ ┏FileSource   InputFileName
   ┃ ┃ ┌SubHeader                                     │ BeginTimeF         RelativeTime
   ┃ ┃ │Offset      Input position  Input length      │ EndTimeF           RelativeTime
   ┃ ┃ │BitRate     Bitrate [sequence number]         │ DataType           {FORM1 | FORM2}
   ┃ ┃ │UnitSize    unit size                         │ AutoEOR
   ┃ ┃ │GapSize     gap size                          │ CodingInformation  Coding information; number string
   ┃ ┃ │RealTime                                      │ SubSource          Sub source file name
   ┃ ┃ │                                              │ SubEmpty           Number of blocks
   ┃ ┃ └SourceType { MONO_A|MONO_B|MONO_C|STEREO_A|STEREO_B|STEREO_C|CDDA|ISO11172|VIDEO|DATA|MPEG_VIDEO }┘
   ┃ ┃EndFileSource
   ┃ ┃FileSource
   ┃ ┃EndFileSource
   ┃ ┗     :
   ┃ ┏MpegMultiplex [OutputFileName]
   ┃ ┃ ┌BeginTimeF   RelativeTime          │ RealTime
   ┃ ┃ └EndTimeF     RelativeTime          │ AutoEOR
   ┃ ┃  MpegStream  SourceFileName  { AUDIO | VIDEO | DATA }
   ┃ ┃   ┌BitRate   Bitrate [sequence number]
   ┃ ┃   │DataType    { FORM1 | FORM2 }
   ┃ ┃   └MpegFlush
   ┃ ┃  EndMpegStream
   ┃ ┃  MpegStream
   ┃ ┃  EndMpegStream
   ┃ ┃     :
   ┃ ┗EndMpegMultiplex
   ┃ ┏Channel channel number
   ┃ ┃ [Reallocation]
   ┃ ┃  FileSource
   ┃ ┃   ┌BitRate   bit rate
   ┃ ┃   │UnitSize  unit size
   ┃ ┃   └GapSize   gap size
   ┃ ┃  EndFileSource
   ┃ ┃     :
   ┃ ┃  MpegMultiplex
   ┃ ┃  EndMpegMultiplex
   ┃ ┗EndChannel
   ┗EndFile
   ┏Extent RelativeTime
   ┃ FileInterLeave   UnitSize GapSize
   ┃  File ISO9660FileName
   ┃       :
   ┃  EndFile
   ┃ EndFileInterLeave
   ┃ FileInterLeave  UnitSize GapSize
   ┃  File ISO9660FileName
   ┃       :
   ┃  EndFile
   ┃ EndFileInterLeave
   ┗EndExtent
   ┏Directory  DirectoryName
   ┃ File ISO9660FileName
   ┃ EndFile
   ┗EndDirectory
   EndTrack                                                                                                                    
   Track CDDA                 ; CDDA track
    Pause 150                ; pause 2 seconds
    FileSource INDEX1.DAT    ; Index 1 (X=01)
    EndFileSource
    FileSource INDEX2.DAT    ; Index 2 (X=02)
    EndFileSource
   EndTrack
   LeadOut  { CDDA|MODE1|MODE2 }                                                                                     
   [Empty block count]
   EndLeadOut
  EndSession
 EndDisc


Back | ■
PROGRAMMER'S GUIDECD Builder Script Grammar
Copyright SEGA ENTERPRISES, LTD. 1997