PROGRAMMER'S GUIDECD builder script grammar supplementary explanation
Back | ■
CD Builder Script Grammar Supplementary Explanation


5. Script description example

Here is an example of how to determine the disk configuration with a script. The exact notation of the output file name used for the parameters is defined in the published manual. Here, for example, if it is an output file name, it simply means that the output file name is described.

<< opt indicates that it is optional, {|} indicates an option, and; after that indicates an annotation.


● Sample script for CD-ROM (MODE1 + CD-DA) disc
Disc output file name Session CDROM <output file name> opt
LeadIn MODE1
EndLeadIn
;
<SystemArea MSDOS file name> opt
;
Track MODE1
    Volume ISO9660 Output file name PrimaryVolume 0: 2: 16
              <PVD definition line> opt; ‥‥‥ (1)
    EndPrimaryVolume
    <SupplementaryVolume Relative time> opt
              <SVD definition line> opt; ‥‥‥ (2)
    <EndSupplementaryVolume> opt
    <BootRecord relative time> opt
              <Boot record definition line> opt; ‥‥‥ (3)
    <EndBootRecord> opt
    End Volume
;
    File ISO9660 File name <Output file name> opt
              <File definition line> opt; ‥‥‥ (4)
    FileSource Input file name <File source definition line> opt; ‥‥‥ (5)
    EndFileSource
    EndFile
    ;
    File ~ EndFile
    ;
    PostGap 75
EndTrack
;
Track CDDA
    Pause 150
    FileSource Input file name <File source definition line> opt; ‥‥‥ (5)
    EndFileSource
EndTrack
;
Track ~ EndTrack
;
;
LeadOut CDDA
Empty 300
EndLeadOut
EndSession
EndDisc


● CD-ROM XA (MODE1 + MODE2 + CD-DA) disc sample script
Disc output file name Session SEMIXA <output file name> opt
LeadIn MODE1
EndLeadIn
;
<SystemArea MSDOS file name> opt
;
Track MODE1
    Volume ISO9660 Output file name PrimaryVolume 0: 2: 16
              <PVD definition line> opt; ‥‥‥ (1)
    EndPrimaryVolume
    <SupplementaryVolume Relative time> opt
              <SVD definition line> Opt; ‥‥‥ (2)
    <EndSupplementaryVolume> opt
    <BootRecord relative time> opt
              <Boot record definition line> opt; ‥‥‥ (3)
    <EndBootRecord> opt
    End Volume
;
    FileISO9660 File name <Output file name> opt
              <File definition line> opt; ‥‥‥ (4)
    File Source Input file name <File source definition line> opt; ‥‥‥ (5)
    EndFileSource
    EndFile
    ;
    File ~ EndFile
    ;
    PostGap 75
EndTrack
;
Track MODE2
    PreGap 150
    File ISO9660 File name <Output file name> opt
Example of channel interleaving using SectorRate line SectorRate <positive integer> opt; Required when defining MPEG MpegMultiplex <output file name> opt
          <RealTime> opt; When DATA is specified in the MpegStream line MpegStream source file name {AUDIO | VIDEO | DATA}
          BitRate Bit rate <Sequence number> opt
          <DataType {FORM1 | FORM2}> opt; When <MpegFlush> opt DATA is specified in the MpegStream line EndMpegStream
          MpegStream source file name {AUDIO | VIDEO | DATA}
              :
          EndMpegStream
    EndMpegMultiplex
    EndFile

    File ISO9660 File name <Output file name> opt
Example of channel interleaving using UnitSize line and GapSize line Channel channel number FileSource Input file name UnitSize Unitsize GapSize Gap size:
          EndFileSource
    EndChannel
    Channel Channel number FileSource Input file name UnitSize Unit size GapSize Gap size:
          EndFileSource
    EndChannel
    EndFile
    Extent <relative time> opt
          FileInterleave Unit size Gap size File ISO9660 File name <Output file name> opt
          FileSource Input file name EndFileSource
          EndFile
          EndFileInterleave
          FileInterleave Unit size Gap size File ISO9660 File name <Output file name> opt
          FileSource Input file name EndFileSource
          EndFile
          EndFileInterleave
    EndExtent
    Directory Directory name <directory attribute definition> opt
          Directory Directory name File ISO9660 File name <Output file name> opt
          FileSource Input file name EndFileSource
          EndFile
          EndDirectory
    EndDirectory
PostGap 75
EndTrack
;
Track CDDA
    Pause 150
    FileSource Input file name <File source definition line> opt; ‥‥‥ (5)
    EndFileSource
EndTrack
;
Track ~ EndTrack
;
LeadOut CDDA
Empty 300
EndLeadOut
EndSession
EndDisc


(1) .PVD definition line

<SystemIdentifier A identifier> opt
<VolumeIdentifier D identifier> opt
<LogicalBlockSize number of blocks> opt
<OptionalLPath> opt
<OptionalMPath> opt
<VolumeSetIdentifier D identifier> opt
<PublisherIdentifier A identifier> opt
<DataPreparerIdentifier A identifier> opt
<ApplicationIdentifier A identifier> opt
<CopyrightFileIdentifier D + Identifier> opt
<AbstractFileIdentifier D + Identifier> opt
<BibliographicFileIdentifier D + Identifier> opt
<VolumeCreationDate Date> opt
<VolumeModificationDate Date> opt
<VolumeExpirationDate Date> opt
<VolumeEffectiveDate Date> opt
<ApplicationUse MS-DOS file name> opt


(2) .SVD definition line

<SystemIdentifier A identifier> opt
<VolumeIdentifier D identifier> opt
<LogicalBlockSize number of blocks> opt
<Escape Sequences Kanji code> opt
<OptionalLPath> opt
<OptionalMPath> opt
<VolumeSetIdentifier D identifier> opt
<PublisherIdentifier A identifier> opt
<DataPreparerIdentifier A identifier> opt
<ApplicationIdentifier A identifier> opt
<CopyrightFileIdentifier D + Identifier> opt
<AbstractFileIdentifier D + Identifier> opt
<BibliographicFileIdentifier D + Identifier> opt
<VolumeCreationDate Date> opt
<VolumeModificationDate Date> opt
<VolumeExpirationDate Date> opt
<VolumeEffectiveDate Date> opt
<ApplicationUse MS-DOS file name> opt


(3). Boot record definition line

<BootSystemIdentifier A identifier> opt
<BootIdentifier A identifier> opt


(4). File definition line

<BeginTimeS relative time> opt
<EndTimeS relative time> opt
<Attributes {HIDDEN | NOHIDDEN} {RECORD | NOTRECORD}> opt
<RecordingDate Date> opt
<MinLength {number of bytes | number of sectors}> opt
<Trigger relative time> opt
<Eors relative time> opt
<Pack> opt
<SectorRate {Positive number}> opt
<FileNo file number> opt; 1 to 255
<BeginTimeE {relative time | +}> opt
<EndTimeE {relative time |-}> opt
<SameName directory name file name> opt
<SysOwnerID number string> opt
<SysReadAttributes {OWNER | NOTOWNER} {GROUP | NOTGROUP}
{WORLD | NOTWORLD} > opt
<SysExecuteAttributes {OWNER | NOTOWNER} {GROUP | NOTGROUP}
{WORLD | NOTWORLD} > opt


(5). File source definition line

<SubHeader> opt
<Offset input position input length> opt
<BitRate Bitrate <Sequence number> opt> opt
<UnitSize Unit size> opt
<GapSize Gap size> opt
<RealTime> opt
<BeginTimeF {relative time | +}> opt
<EndTimeF {relative time |-}> opt
<DataType {FORM1 | FORM2}> opt
<AutoEOR> opt
<CodingInformation Coding information> opt
<SourceType {MONO_A | MONO_B | MONO_C | STEREO_A | STEREO_B |
STEREO_C | CDDA | AUDIO | ISO11172 | MPEG_VIDEO |
VIDEO | DATA} > opt
Valid only when MODE2 is specified in the Track line <SubSource file name> opt
<Number of SubEmpty blocks> opt


Back | ■
PROGRAMMER'S GUIDECD builder script grammar supplementary explanation
Copyright SEGA ENTERPRISES, LTD ,. 1997