Added ClipFilter to the README
This commit is contained in:
parent
3fb918a7e2
commit
cdeed25ada
1 changed files with 13 additions and 0 deletions
13
README.md
Normal file → Executable file
13
README.md
Normal file → Executable file
|
|
@ -167,6 +167,19 @@ filters solves this issue.
|
||||||
$video->filters()->synchronize();
|
$video->filters()->synchronize();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Clip
|
||||||
|
|
||||||
|
Cuts the video at a desired point.
|
||||||
|
|
||||||
|
```php
|
||||||
|
$video->filters()->clip(FFMpeg\Coordinate\TimeCode::fromSeconds(30), FFMpeg\Coordinate\TimeCode::fromSeconds(15));
|
||||||
|
```
|
||||||
|
|
||||||
|
The clip filter takes two parameters:
|
||||||
|
|
||||||
|
- `$start`, an instance of `FFMpeg\Coordinate\TimeCode`, specifies the start point of the clip
|
||||||
|
- `$duration`, optional, an instance of `FFMpeg\Coordinate\TimeCode`, specifies the duration of the clip
|
||||||
|
|
||||||
#### Audio
|
#### Audio
|
||||||
|
|
||||||
`FFMpeg\Media\Audio` can be transcoded, ie : change codec, isolate audio or
|
`FFMpeg\Media\Audio` can be transcoded, ie : change codec, isolate audio or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue