Add usage exmaple and License

This commit is contained in:
grosroro 2012-05-31 16:07:30 +02:00
commit 07bf88d315

View file

@ -4,4 +4,30 @@
An Object Oriented library to convert video/audio files with AVConv / FFmpeg. An Object Oriented library to convert video/audio files with AVConv / FFmpeg.
##Documentation
Read The Documentation at http://readthedocs.org/docs/ffmpeg-php/ ! Read The Documentation at http://readthedocs.org/docs/ffmpeg-php/ !
##Usage Example
```php
$WebMFormat = new Format\Video\WebM();
$x264Format = new Format\Video\X264();
$OggFormat = new Format\Video\Ogg();
$x264->setDimensions(320, 240);
$ffmpeg->open('Video.mpeg')
->encode($WebMFormat, 'file.webm')
->encode($x264Format, 'file.mp4')
->encode($OggFormat, 'file.ogv')
->close();
```
##License
This project is licensed under the [MIT license](http://opensource.org/licenses/MIT).