DVD::Read::Dvd::File - DVD file access using libdvdread


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

Index


Code Index:

NAME

Top

DVD::Read::Dvd::File - DVD file access using libdvdread

SYNOPSIS

Top

  use DVD::Read::Dvd;
  my $dvd = DVD::Read::Dvd->new('/dev/cdrom');
  my file = DVD::Read::Dvd::File->new($dvd, 1, "VOB");

DESCRIPTION

Top

This module allow to get information from Video DVD using by using the dvdread library.

CONSTANTS

Top

BLOCK_SIZE

Return the logical DVD block size

FUNCTIONS

Top

new($dvd, $num, $type)

Open a file from the DVD.

$dvd is a DVD::Read::Dvd object over the dvd device
$num is the file or title number to open
$type is the file type to open:

IFO VIDEO_TS.IFO or VTS_XX_0.IFO (title)
BUP VIDEO_TS.BUP or VTS_XX_0.BUP (title)
VOB VTS_XX_[1-9].VOB (title). All files in the title set are opened and read as a single file.

size

Return the file size in blocks

readblock($offset, $count)

Read a $count block(s) from the file at block offset $offset.

In scalar context, return the read data.

In array context return the count of blocks read and read data.

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

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::File;

use 5.010000;
use strict;
use warnings;

our $VERSION = '0.04';

use DVD::Read::Dvd;

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

1;

__END__