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


DVD-Read documentation Contained in the DVD-Read distribution.

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

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

Top

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

Top

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

AUTHOR

Top

Olivier Thauvin <nanardon@nanardon.zarb.org>

COPYRIGHT AND LICENSE

Top


DVD-Read documentation Contained in the DVD-Read distribution.
package DVD::Read::Dvd::Ifo::Vmg;

use 5.010000;
use strict;
use warnings;

our $VERSION = '0.04';

require XSLoader;
XSLoader::load('DVD::Read', $VERSION);
use DVD::Read::Dvd::Ifo;

sub new {
    my ($class, $dvd) = @_;
    my $vts = DVD::Read::Dvd::Ifo->new($dvd, 0);
    bless($vts, $class);
}

1;

__END__