PHPackages                             php-mp4box/php-mp4box - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-mp4box/php-mp4box

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-mp4box/php-mp4box
=====================

PHP MP4Box, an Object Oriented library for easy file conversion with MP4 Box

4.1.0(8y ago)16217.3k↓33.3%6[1 issues](https://github.com/alchemy-fr/PHP-MP4Box/issues)1MITPHPPHP ~7.0

Since Dec 21Pushed 8y ago3 watchersCompare

[ Source](https://github.com/alchemy-fr/PHP-MP4Box)[ Packagist](https://packagist.org/packages/php-mp4box/php-mp4box)[ RSS](/packages/php-mp4box-php-mp4box/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (9)Used By (1)

\#PHP MP4Box

[![Build Status](https://camo.githubusercontent.com/9c7a7b57d790510f7be0166f3578b244722f7ebee161e77d7716d00a6921a07e/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f616c6368656d792d66722f5048502d4d5034426f782e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/alchemy-fr/PHP-MP4Box)

PHP driver for MP4Box

API usage
---------

[](#api-usage)

To instantiate MP4Box driver, the easiest way is :

```
$mp4box = MP4Box\MP4Box::create();
```

You can customize your driver by passing a `Psr\Log\LoggerInterface` or configuration options.

Available options are :

- timeout : the timeout for the underlying process
- mp4box.binaries : the path (or an array of paths) to custom binary.

```
$mp4box = MP4Box\MP4Box::create(array(
    'timeout'         => 42,
    'mp4box.bonaries' => '/path/to/custom/binary',
), $logger);
```

To process a mp4 file, use the `process` method :

```
$mp4box->process('video.mp4');
```

If you do not want to process file in place, you can write the output in another file :

```
$mp4box->process('video.mp4', 'output.mp4');
```

Silex Service Provider :
------------------------

[](#silex-service-provider-)

A [Silex](silex.sensiolabs.org) Service Provider is available, all parameters are optionals :

```
$app = new Silex\Application();
$app->register(new MP4Box\MP4BoxServiceProvider(), array(
    'mp4box.configuration' => array(
        'mp4box.binaries' => '/path/to/custom/binary',
        'timeout'         => 42,
    ),
    'mp4box.logger'  => $app->share(function () {
        return $app['monolog']; // use Monolog service provider
    }),
));
```

License
-------

[](#license)

MIT licensed

[![Bitdeli Badge](https://camo.githubusercontent.com/c5474431a81d6a5a22782581fab7c495999f3bbb6391bd143fe21d142b1071e3/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f616c6368656d792d66722f7068702d6d7034626f782f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.9% of commits — single point of failure

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 ~325 days

Recently: every ~456 days

Total

7

Last Release

2945d ago

Major Versions

0.3.0 → 4.1.02018-04-25

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

4.1.0PHP ~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c264f69af4c60cb9cc98a522b4663f4b6a2708629cabc14409478ab6fc35348?d=identicon)[romain](/maintainers/romain)

---

Top Contributors

[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (47 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

mp4boxgpac

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-mp4box-php-mp4box/health.svg)

```
[![Health](https://phpackages.com/badges/php-mp4box-php-mp4box/health.svg)](https://phpackages.com/packages/php-mp4box-php-mp4box)
```

###  Alternatives

[php-unoconv/php-unoconv

Unoconv PHP, an Object Oriented library for easy file conversion with LibreOffice's unoconv

77345.9k2](/packages/php-unoconv-php-unoconv)[mrjgreen/config

Config component based on laravel's

2411.0k1](/packages/mrjgreen-config)

PHPackages © 2026

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