This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

64
vendor/php-mp4box/php-mp4box/README.md vendored Normal file
View File

@@ -0,0 +1,64 @@
#PHP MP4Box
[![Build Status](https://secure.travis-ci.org/alchemy-fr/PHP-MP4Box.png?branch=master)](http://travis-ci.org/alchemy-fr/PHP-MP4Box)
PHP driver for MP4Box
## API usage
To instantiate MP4Box driver, the easiest way is :
```php
$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.
```php
$mp4box = MP4Box\MP4Box::create(array(
'timeout' => 42,
'mp4box.bonaries' => '/path/to/custom/binary',
), $logger);
```
To process a mp4 file, use the `process` method :
```php
$mp4box->process('video.mp4');
```
If you do not want to process file in place, you can write the output in another
file :
```php
$mp4box->process('video.mp4', 'output.mp4');
```
## Silex Service Provider :
A [Silex](silex.sensiolabs.org) Service Provider is available, all parameters
are optionals :
```php
$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
MIT licensed