Add usage exmaple and License
This commit is contained in:
parent
710c02829d
commit
07bf88d315
1 changed files with 26 additions and 0 deletions
26
README.md
26
README.md
|
|
@ -4,4 +4,30 @@
|
|||
|
||||
An Object Oriented library to convert video/audio files with AVConv / FFmpeg.
|
||||
|
||||
##Documentation
|
||||
|
||||
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).
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue