Simplify example

This commit is contained in:
grosroro 2012-05-31 16:10:16 +02:00
commit f73d94fd74

View file

@ -12,16 +12,13 @@ Read The Documentation at http://readthedocs.org/docs/ffmpeg-php/ !
```php ```php
<?php <?php
$WebMFormat = new Format\Video\WebM(); $x264 = new X264();
$x264Format = new Format\Video\X264();
$OggFormat = new Format\Video\Ogg();
$x264->setDimensions(320, 240); $x264->setDimensions(320, 240);
$ffmpeg->open('Video.mpeg') $ffmpeg->open('Video.mpeg')
->encode($WebMFormat, 'file.webm') ->encode($new WebM(), 'file.webm')
->encode($x264Format, 'file.mp4') ->encode($x264, 'file.mp4')
->encode($OggFormat, 'file.ogv') ->encode($new Ogg(), 'file.ogv')
->close(); ->close();
``` ```