help-vcdimager
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[VCDImager] ...answers to XML questions...


From: Herbert Valerio Riedel
Subject: [VCDImager] ...answers to XML questions...
Date: Thu, 3 May 2001 00:05:24 +0200 (CEST)

hello,

On Wed, 2 May 2001, Christoph Scheurer wrote:
>> http://www.hvrlab.org/pub/vcdimager/contribs/
> Thanks, I had a look at it. It seems like that can do exactly what I was
> interested in.

> I have a question about the future XML frontend. Is the idea to have
> it parse an XML file with roughly the same content as now the config
> file of the PBC-hack?
more than that...

> And would it be then up to the person who is designing the (S)VCD to
> write the XML file by hand, or do you plan on having a tool that
> generates the XML file interactively?
yes and yes :-)

the neat thing is, syntax checking can be done by validating the .xml
file... and I'm sure someone will come with a GUI, once vcdimager-xml is
there, to create such an XML description in a graphical way...
I'll write one myself if I get the time for it, but anyone is free to
write one in the language and toolkit (s)he wants to...

> And one more question: for the XML parsing, are you going to use the
> gnome XML library?
I'm using libxml2 for the actual development...

> I am just curious,

well, to give you an idea, here's an example xml description...
(it's still a draft -- so it's not final yet!)
(the dtd can be found in cvs)

<?xml version="1.0" ?>
<!DOCTYPE videocd PUBLIC "-//GNU//DTD VideoCD//EN" "videocd.dtd">
<videocd class="vcd" version="2.0" 
xmlns="http://www.gnu.org/software/vcdimager/1.0/";>
  <info>
    <album-description>My_Album</album-description>
    <volume-count>1</volume-count>
    <volume-number>1</volume-number>
    <restriction>0</restriction>
  </info>

  <pvd>
    <volume-id>VideoCDLabel</volume-id>
    <system-id>CD-RTOS CD-BRIDGE</system-id>
    <application-id>CDI/CDI_VCD.APP;1</application-id>
    <preparer-id>GNU VCDImager</preparer-id>
    <publisher-id>some commandline nerd</publisher-id>
  </pvd>

  <filesystem>
    <folder>
      <name>CDI</name>
      <file src="/usr/share/cdi/cdi_vcd.app">
        <name>CDI_VCD.APP</name>
      </file>
      <file src="/usr/share/cdi/cdi_vcd.cfg">
        <name>CDI_VCD.CFG</name>
      </file>
      <file src="/usr/share/cdi/cdi_text.fnt">
        <name>CDI_TEST.FNT</name>
      </file>
      <file src="/usr/share/cdi/cdi_imag.rtf" format="mixed">
        <name>CDI_IMAG.RTF</name>
      </file>
    </folder>

    <folder>
      <name>VMP</name>
      <folder>
        <name>SVCDJ</name>
      </folder>
    </folder>
  </filesystem>

  <items>
    <mpeg-item id="splash" src="/home/hvr/vcd_tmp/stills/splash.mpg" />
    <mpeg-item id="menu" src="/home/hvr/vcd_tmp/stills/menu1.mpg" />
  </items>

  <tracks>
    <mpeg-track id="track1" src="/home/hvr/vcd_tmp/samples/VCDPALSample.mpg">
      <entry id="entry1">0</entry>
      <entry id="entry2">10</entry>
      <entry id="entry3">20</entry>
    </mpeg-track>
    <mpeg-track id="track2" src="/home/hvr/vcd_tmp/samples/VCDNTSCSample.mpg">
      <entry id="entry4">0</entry>
      <entry id="entry5">10</entry>
      <entry id="entry6">20</entry>
    </mpeg-track>
  </tracks>

  <pbc>
    <selection id="splash-sel" ref="splash">
      <next ref="menu-sel" />
      <default ref="menu-sel" />
      <timeout ref="menu-sel" />
      <wait>30</wait>
    </selection>
    <selection id="menu-sel" ref="menu">
      <bsn>1</bsn>
      <default ref="all-plist" />
      <item ref="entry1" />
      <item ref="entry2" />
      <item ref="entry3" />
      <item ref="entry4" />
      <item ref="entry5" />
      <item ref="entry6" />
    </selection>
    <playlist id="all-plist">
      <return ref="menu-sel" />
      <wait>5</wait>
      <autowait>0</autowait>
      <item ref="track1" />
      <item ref="track2" />
    </playlist>
  </pbc>
</videocd>

greetings,
-- 
Herbert Valerio Riedel      /     Finger address@hidden for GnuPG Public Key
GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748  5F65 4981 E064 883F 4142





reply via email to

[Prev in Thread] Current Thread [Next in Thread]