PHPackages                             brightfish/media\_analyzer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. brightfish/media\_analyzer

ActiveLibrary[Image &amp; Media](/categories/media)

brightfish/media\_analyzer
==========================

Analyze video,audio,image files (with ffmpeg)

2.3.2(1y ago)285MITPHPPHP ^8.0

Since Feb 22Pushed 1y ago2 watchersCompare

[ Source](https://github.com/brightfish-be/media_analyzer)[ Packagist](https://packagist.org/packages/brightfish/media_analyzer)[ Docs](https://github.com/brightfish-be/media_analyzer)[ RSS](/packages/brightfish-media-analyzer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (12)Used By (0)

Analyze video,audio,image files (with ffmpeg)
=============================================

[](#analyze-videoaudioimage-files-with-ffmpeg)

Github: [![GitHub tag](https://camo.githubusercontent.com/2b41b3789129f67989f551ee4e3741d04e78e7276e4577697c602dcd2c1ab521/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f627269676874666973682d62652f6d656469615f616e616c797a6572)](https://camo.githubusercontent.com/2b41b3789129f67989f551ee4e3741d04e78e7276e4577697c602dcd2c1ab521/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f627269676874666973682d62652f6d656469615f616e616c797a6572)[![Tests](https://github.com/brightfish-be/media_analyzer/workflows/Run%20Tests/badge.svg)](https://github.com/brightfish-be/media_analyzer/workflows/Run%20Tests/badge.svg)[![Psalm](https://github.com/brightfish-be/media_analyzer/workflows/Detect%20Psalm%20warnings/badge.svg)](https://github.com/brightfish-be/media_analyzer/workflows/Detect%20Psalm%20warnings/badge.svg)[![Styling](https://github.com/brightfish-be/media_analyzer/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/brightfish-be/media_analyzer/workflows/Check%20&%20fix%20styling/badge.svg)

Packagist: [![Packagist Version](https://camo.githubusercontent.com/b1d61d8549a6af02de7027d7fdf9847badab3cd670a229e4d8504d2ab7989bdf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f627269676874666973682f6d656469615f616e616c797a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brightfish-be/media_analyzer)[![Packagist Downloads](https://camo.githubusercontent.com/caa48ca38e7905298d21b263768d7779218a754e0325a715df43a592eb2090d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f627269676874666973682f6d656469615f616e616c797a65722e7376673f7374796c653d666c61742d737175617265)](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
------------

[](#installation)

You can install the package via composer:

```
composer require brightfish/media_analyzer
```

Usage
-----

[](#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
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Peter Forret](https://github.com/cinemapub)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~146 days

Recently: every ~118 days

Total

10

Last Release

591d ago

PHP version history (3 changes)2.1.0PHP ^7.4

2.2.0PHP ^7.4|^8.0

2.3.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/337ba8a7b95f42ae856defba4b85180291c8d12c33eb99011ccb9d58294e2be7?d=identicon)[brightfish](/maintainers/brightfish)

---

Top Contributors

[![cinemapub](https://avatars.githubusercontent.com/u/1841829?v=4)](https://github.com/cinemapub "cinemapub (43 commits)")[![pforret](https://avatars.githubusercontent.com/u/474312?v=4)](https://github.com/pforret "pforret (30 commits)")[![pecuchet](https://avatars.githubusercontent.com/u/10818207?v=4)](https://github.com/pecuchet "pecuchet (18 commits)")

---

Tags

audioffmpegffprobemediavideoaudiovideomediabrightfishcinemapubmedia\_analyzer

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brightfish-media-analyzer/health.svg)

```
[![Health](https://phpackages.com/badges/brightfish-media-analyzer/health.svg)](https://phpackages.com/packages/brightfish-media-analyzer)
```

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k21.7M165](/packages/php-ffmpeg-php-ffmpeg)[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.2k1](/packages/happyworm-jplayer)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[dereuromark/media-embed

A PHP library to deal with all those media services around, parsing their URLs and embedding their audio/video content in websites.

182530.3k11](/packages/dereuromark-media-embed)[codescale/ffmpeg-php

PHP wrapper for FFmpeg application

495270.5k1](/packages/codescale-ffmpeg-php)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
