Merge branch 'master' of https://github.com/guimeira/PHP-FFmpeg into guimeira-master

This commit is contained in:
Romain Neutron 2013-11-08 12:23:59 +01:00
commit 7e66785b5d
3 changed files with 100 additions and 0 deletions

13
README.md Normal file → Executable file
View file

@ -175,6 +175,19 @@ filters solves this issue.
$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
`FFMpeg\Media\Audio` can be transcoded, ie : change codec, isolate audio or