The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DVD::Read::Dvd::Ifo::Vmg - Access to DVD VMG file using libdvdread

SYNOPSIS

  use DVD::Read::Dvd;
  use DVD::Read::Dvd::Ifo::Vmg;
  my $dvd = DVD::Read::Dvd->new('/dev/cdrom');
  my $vmg = DVD::Read::Dvd::Ifo::Vmg->new($dvd);
  ...

DESCRIPTION

This module provide a low level access DVD IFO files using libdvdread for the Vmg information.

This module allow you to get video titles informations step by step like it is done by libdvdread.

Notice functions provided by module are really basics, then you really need to understand the dvd information to use it.

GENERICS FUNCTIONS

new($dvd, $id)

Return a new DVD::Read::Dvd::Ifo::Vmg from $dvd.

$dvd should be DVD::Read::Dvd object.

vmg_identifier

Return the vmg_identifier

titles_count

Return the count of titles on the DVD

title_angles_count($title)

Get the angle count for title number $title

title_chapters_count($title)

Return the count of chapters for title number $title

title_nr($title)

Return the internal title id for title number $title.

The VGM provide the ordered list of title on DVD, which is usually different of the physical order.

Here a real example to get title 1:

    my $vgm = DVD::Read::Dvd::Ifo($dvd, 0);
    my $titlenr = $vgm->title_nr(1);
    $chapter_count = $vgm->title_chapters_count($titlenr);
    my vts = DVD::Read::Dvd::Ifo($dvd, $titlenr);

    ...

title_ttn($title)

Return the title track number for title number $title.

Eg: the video number inside the video number 'title_nr'.

CAVEAT

Most of C code come from mplayer and transcode (tcprobe).

Thanks authors of these modules to provide it as free software.

As this software are under another license, and this module reuse code from it, the Perl license is maybe not appropriate.

Just mail me if this is a problem.

SEE ALSO

DVD::Read::Dvd =item DVD::Read::Dvd::Ifo =item DVD::Read::Dvd::Ifo::Vts

AUTHOR

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Olivier Thauvin

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

The libdvdread is under the GPL Licence.