add filter to the VideoFilters
This commit is contained in:
parent
1d462b9eb3
commit
6507d1d021
1 changed files with 16 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
namespace FFMpeg\Filters\Video;
|
||||
|
||||
use FFMpeg\Coordinate\Point;
|
||||
use FFMpeg\Media\Video;
|
||||
use FFMpeg\Coordinate\TimeCode;
|
||||
use FFMpeg\Coordinate\Dimension;
|
||||
|
|
@ -104,6 +105,21 @@ class VideoFilters extends AudioFilters
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Crops the video
|
||||
*
|
||||
* @param Point $point
|
||||
* @param Dimension $dimension
|
||||
*
|
||||
* @return VideoFilters
|
||||
*/
|
||||
public function crop(Point $point, Dimension $dimension)
|
||||
{
|
||||
$this->media->addFilter(new CropFilter($point, $dimension));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $imagePath
|
||||
* @param array $coordinates
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue