Simplify example
This commit is contained in:
parent
45c9415144
commit
f73d94fd74
1 changed files with 4 additions and 7 deletions
11
README.md
11
README.md
|
|
@ -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();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue