2012-04-13 12:12:24 +02:00
|
|
|
#PHP FFmpeg
|
|
|
|
|
|
|
|
|
|
[](http://travis-ci.org/alchemy-fr/PHP-FFmpeg)
|
|
|
|
|
|
2012-05-11 00:36:57 +02:00
|
|
|
An Object Oriented library to convert video/audio files with AVConv / FFmpeg.
|
2012-04-13 14:16:50 +02:00
|
|
|
|
2012-05-31 16:07:30 +02:00
|
|
|
##Documentation
|
|
|
|
|
|
2012-04-13 18:19:08 +02:00
|
|
|
Read The Documentation at http://readthedocs.org/docs/ffmpeg-php/ !
|
2012-05-31 16:07:30 +02:00
|
|
|
|
|
|
|
|
##Usage Example
|
|
|
|
|
|
|
|
|
|
```php
|
2012-05-31 16:09:01 +02:00
|
|
|
<?php
|
2012-05-31 16:07:30 +02:00
|
|
|
$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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|