1.2. Creating a title

1.2.1. One chapter, one source

This forms the most basic DVD. THe DVD player will start playing the movie when the disc is inserted and will stop at the end.

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video.mpg" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

1.2.2. Two chapters, two sources

Adding a second chapter is quite simple if it is in a separate file.

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video1.mpg" />
                <vob file="video2.mpg" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

1.2.3. One chapter, two sources

DVDAuthor normally creates one chapter per file. This can be overridden using chapters="foo". The parameter is a comma separated list of timestamps of the form [[HH:]MM:]SS.

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video1.mpg" chapters="0" />
                <vob file="video2.mpg" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

1.2.4. Two chapters, one source

This will create a movie with two chapters, one at the beginning (which is always required) and one five minutes into the video.

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video1.mpg" chapters="0,5:00" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

1.2.5. Looping

Having <post>commands will alter what happens when playback reaches the end of your title. You can repeat the current title by jumping to the first chapter.

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video1.mpg" />
                <post>
                    jump chapter 1;
                </post>
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

1.2.6. Pausing

Having pause="foo" will cause playback to pause for either the specified number of seconds or indefinitely (inf). This can be used either at the end of the title (by supplying it as an attribute to pgc or at the end of a particular source, as an attribute to vob. The following will pause indefinitely at the end of the title:

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc pause="inf">
                <vob file="video1.mpg" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>

while the following will pause for 5 seconds after the first chapter:

<dvdauthor>
    <vmgm />
    <titleset>
        <titles>
            <pgc>
                <vob file="video1.mpg" pause="5" />
                <vob file="video2.mpg" />
            </pgc>
        </titles>
    </titleset>
</dvdauthor>