ffmpeg-mappable-media/README.md
Romain Neutron 32cdeb7d48 Update usage
2012-09-03 14:55:18 +02:00

1.1 KiB

#PHP FFmpeg

Build Status

An Object Oriented library to convert video/audio files with AVConv / FFmpeg.

Check another amazing repo : PHP FFMpeg extras, you will find lots of Audio/Video formats there.

##Documentation

Read The Documentation at Read The Docs !

##API Browser

Browse the API

##Usage Example

$x264 = new X264();
$x264->setDimensions(320, 240);

$ffmpeg->open('Video.mpeg')
    ->encode($new WebM(), 'file.webm')
    ->encode($x264, 'file.mp4')
    ->encode($new Ogg(), 'file.ogv')
    ->close();

##Using with Silex Microframework

use FFMpeg\SilexServiceProvider;
use Silex\Application;

$app = new Application();
$app->register(new FFMpegServiceProvider());

##License

This project is licensed under the MIT license.