Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.57 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.57 KB

Analyze video,audio,image files (with ffmpeg)

Github: GitHub tag Tests Psalm Styling

Packagist: Packagist Version Packagist Downloads

Analyze video,audio,image files (with ffmpeg)

created on 2020-11-13 by p.forret@brightfish.be

Installation

You can install the package via composer:

composer require brightfish/media_analyzer

Usage

use Brightfish\MediaAnalyzer\Analyzer;

$obj = new Analyzer();
// or
$obj = new Analyzer("/usr/bin/ffprobe", $logger, $cache);

$obj->meta("video.mp4");
echo $obj->video->fps; 
echo $obj->audio->sample_rate;
echo $obj->container->duration;

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.