brightfish / media_analyzer
Analyze video,audio,image files (with ffmpeg)
2.3.0
2023-06-20 08:36 UTC
Requires
- php: ^7.4|^8.0
- ext-json: *
- ext-simplexml: *
- illuminate/support: ^7|^8.15|^9.0|^10.0
- sabre/cache: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^9.0
- vimeo/psalm: ^4.1
This package is auto-updated.
Last update: 2024-09-09 10:20:36 UTC
README
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.