Prty::File::Video - Informationen über Video-Datei
Prty::Hash
$vid = $class->new($file,@opt);
Instantiiere ein Video-Datei-Objekt und liefere eine Referenz auf dieses Objekt zurück.
Gib das ffprobe-Kommando auf STDOUT aus.
$file = $vid->file;
Liefere den Dateinamen (Pfad) der Video-Datei.
$width = $vid->width;
Liefere die Breite des Video in Pixeln, z.B. 1920.
$height = $vid->height;
Liefere die Höhe des Video in Pixeln, z.B. 1080.
($width,$height) = $vid->size;
Liefere die Breite und Höhe des Video in Pixeln, z.B. (1920,1080).
$aspectRatio = $vid->aspectRatio;
Liefere das Seitenverhältnis des Video, z.B. '16:9'.
$bitrate = $vid->bitrate;
Liefere die Bitrate des Video in Kilobit (kb/s), z.B. 30213.
$duration = $vid->duration;
Liefere die Dauer des Video in Sekunden (millisekundengenau), z.B. 8.417.
$frames = $vid->frames;
Liefere die Anzahl der Frames des Video, z.B. 101.
$vid->analyzeFile;
Analysiere die Video-Datei mit ffprobe und weise die ermittelten Eigenschaften an die Attribute des Objektes zu.
1.103
Frank Seitz, http://fseitz.de/
Copyright (C) 2017 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Prty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prty
CPAN shell
perl -MCPAN -e shell install Prty
For more information on module installation, please visit the detailed CPAN module installation guide.