https://github.com/brightfish-be/media_analyzer
Analyze image, video, audio files (PHP7/8)
https://github.com/brightfish-be/media_analyzer
audio ffmpeg ffprobe media video
Last synced: about 1 year ago
JSON representation
Analyze image, video, audio files (PHP7/8)
- Host: GitHub
- URL: https://github.com/brightfish-be/media_analyzer
- Owner: brightfish-be
- License: mit
- Created: 2021-02-22T14:25:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T12:02:10.000Z (over 1 year ago)
- Last Synced: 2025-03-24T20:12:26.761Z (over 1 year ago)
- Topics: audio, ffmpeg, ffprobe, media, video
- Language: PHP
- Homepage: https://packagist.org/packages/brightfish/media_analyzer
- Size: 45.2 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Analyze video,audio,image files (with ffmpeg)
Github:




Packagist:
[](https://packagist.org/packages/brightfish-be/media_analyzer)
[](https://packagist.org/packages/brightfish-be/media_analyzer)
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:
```bash
composer require brightfish/media_analyzer
```
## Usage
``` php
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
``` bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Credits
- [Peter Forret](https://github.com/cinemapub)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.