Olivier Thauvin
and 1 contributors

NAME

DVD::Read::Title - Fetch information from DVD video.

SYNOPSIS

  use DVD::Read::Title;
  my $title = DVD::Read::Title->new('/dev/cdrom', 1);
  print $title->video_format_txt . "\n";

DESCRIPTION

Fetch information from DVD video title.

FUNCTIONS

new($dvd, $title)

Return a new DVD::Read::Title object for $dvd and title number $title.

$dvd can be either a string for IFO location, or a DVD::Read object.

chapter_first_sector($chapter)

Return the first sector for chapter number $chapter

chapter_last_sector($chapter)

Return the last sector for chapter number $chapter

chapter_offset($chapter)

Return the chapter offset from the start of title in millisecond

length

The length in millisecond of this title.

chapters_count

Return the chapters count for this title

title_nr

Return the real title number physically on dvd.

extract($out, $progress)

Copy video data for the wall title into $out where:

$out is either a file path or an open file handle

$progress, if set, is a function reference accepting four args: the current cells count read and total cells count to read, the current block read for the cell, the total block for current cell. This allow you to show the current read progress.

extract_chapter($chapter, $out, $progress)

Copy video data for chapter $chapter into $out where:

$out is either a file path or an open file handle

$chapter either the chapter number to extract or an array of chapters to extract.

$progress, if set, is a function reference acception four args: the current chapter count read, the count of chapter to read, the current block count read in for current chapter, the count of block to read for the current chapter. This allow you to give a progression status.

AUTOLOADED FUNCTIONS

All functions from DVD::Read::Dvd::IFO module starting by 'vts_' are available (without 'vts_' prefix).

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::Read::Dvd::Ifo

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.