Update of the README
This commit is contained in:
parent
bbe94784c2
commit
52d32ec70b
1 changed files with 17 additions and 1 deletions
18
README.md
18
README.md
|
|
@ -221,12 +221,28 @@ Resizes a video to a given size.
|
|||
$video->filters()->resize($dimension, $mode, $useStandards);
|
||||
```
|
||||
|
||||
The resize filter takes three parameters :
|
||||
The resize filter takes three parameters:
|
||||
|
||||
- `$dimension`, an instance of `FFMpeg\Coordinate\Dimension`
|
||||
- `$mode`, one of the constants `FFMpeg\Filters\Video\ResizeFilter::RESIZEMODE_*` constants
|
||||
- `$useStandards`, a boolean to force the use of the nearest aspect ratio standard.
|
||||
|
||||
If you want a video in a non-standard ratio, you can use the padding filter to resize your video in the desired size, and wrap it into black bars.
|
||||
|
||||
```php
|
||||
$video->filters()->pad($dimension);
|
||||
```
|
||||
|
||||
The pad filter takes one parameter:
|
||||
|
||||
- `$dimension`, an instance of `FFMpeg\Coordinate\Dimension`
|
||||
|
||||
Don't forget to save it afterwards.
|
||||
|
||||
```php
|
||||
$video->save(new FFMpeg\Format\Video\X264(), $new_file);
|
||||
```
|
||||
|
||||
###### Watermark
|
||||
|
||||
Watermark a video with a given image.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue