From 07bf88d31574d9dd1ca66504a92007c426823457 Mon Sep 17 00:00:00 2001 From: grosroro Date: Thu, 31 May 2012 16:07:30 +0200 Subject: [PATCH] Add usage exmaple and License --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 3707dac..ff0798a 100644 --- a/README.md +++ b/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). + + + +