NAME
Media::MediaInfoLib - Perl interface to the MediaInfoLib
SYNOPSIS
use Media::MediaInfoLib qw(STREAM_VIDEO);
my $info = Media::MediaInfoLib->open('/path/to/file.mp4');
print $info->get(STREAM_VIDEO, 0, 'BitRate'), "\n";
print $info->inform, "\n";
DESCRIPTION
Media::MediaInfoLib module provides an interface to the MediaInfoLib.
METHODS
Media::MediaInfoLib->open($filename_or_content)
Open the file (Scalar) or content (ScalarRef).
$info->inform()
Get all details about a file in one string.
$info->get($stream_kind, $stream_number, $parameter [,$info_kind = INFO_TEXT, $search_kind = INFO_NAME])
Get a piece of information about a file.
$info->option($option [,$value = ""])
Configure or get information about MediaInfoLib.
$info->option_static($option [,$value = ""])
Configure or get information about MediaInfoLib.
$info->count_get($stream_kind [,$stream_number = -1])
Count of streams of a stream kind, or count of piece of information in this stream.
CONSTANTS
STREAM_GENERAL
STREAM_VIDEO
STREAM_AUDIO
STREAM_TEXT
STREAM_OTHER
STREAM_IMAGE
STREAM_MENU
INFO_NAME
INFO_TEXT
INFO_MEASURE
INFO_OPTIONS
INFO_NAME_TEXT
INFO_MEASURE_TEXT
INFO_INFO
INFO_HOWTO
INFO_DOMAIN
SEE ALSO
https://github.com/MediaArea/MediaInfoLib
LICENSE
Copyright (C) Jiro Nishiguchi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
Jiro Nishiguchi <jiro@cpan.org>