2017 © Pedro Peláez
 

library php-mp4box

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

image

php-mp4box/php-mp4box

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

  • Wednesday, April 25, 2018
  • by romain
  • Repository
  • 3 Watchers
  • 13 Stars
  • 93,406 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 9 Versions
  • 3 % Grown

The README.md

PHP MP4Box

Build Status, (*1)

PHP driver for MP4Box, (*2)

API usage

To instantiate MP4Box driver, the easiest way is :, (*3)

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

You can customize your driver by passing a Psr\Log\LoggerInterface or configuration options., (*4)

Available options are :, (*5)

  • 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 :, (*6)

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

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

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

Silex Service Provider :

A Silex Service Provider is available, all parameters are optionals :, (*8)

$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, (*9)

Bitdeli Badge, (*10)

The Versions

25/04 2018

dev-SILEX2

dev-SILEX2

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

  Sources   Download

MIT

The Requires

 

The Development Requires

mp4box gpac

25/04 2018

4.1.0

4.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

mp4box gpac

15/08 2013

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

mp4box gpac

25/06 2013

0.3.0

0.3.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

mp4box gpac

27/04 2013

0.2.2

0.2.2.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

mp4box gpac

24/04 2013

0.2.1

0.2.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2013

0.2.0

0.2.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

11/02 2013

0.1.1

0.1.1.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

21/12 2012

0.1.0

0.1.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires