Update README
This commit is contained in:
parent
e92fc312cd
commit
5a9d4a0f04
1 changed files with 26 additions and 3 deletions
27
README.md
27
README.md
|
|
@ -75,8 +75,17 @@ $ffmpeg = FFMpeg\FFMpeg::create(array(
|
|||
|
||||
### Manipulate media
|
||||
|
||||
`FFMpeg\FFMpeg` creates media based on file paths. To open a file path, use the
|
||||
`FFMpeg\FFMpeg::open` method.
|
||||
`FFMpeg\FFMpeg` creates media based on URIs. URIs could be either a pointer to a
|
||||
local filesystem resource, an HTTP resource or any resource supported by FFmpeg.
|
||||
|
||||
**Note** : To list all supported resource type of your FFmpeg build, use the
|
||||
`-protocols` command :
|
||||
|
||||
```
|
||||
ffmpeg -protocols
|
||||
```
|
||||
|
||||
To open a resource, use the `FFMpeg\FFMpeg::open` method.
|
||||
|
||||
```php
|
||||
$ffmpeg->open('video.mpeg');
|
||||
|
|
@ -145,6 +154,20 @@ $video
|
|||
->synchronize();
|
||||
```
|
||||
|
||||
###### Rotate
|
||||
|
||||
Rotates a video to a given angle.
|
||||
|
||||
```php
|
||||
$video->filters()->rotate($angle);
|
||||
```
|
||||
|
||||
The `$angle` parameter must be one of the following constants :
|
||||
|
||||
- `FFMpeg\Filters\Video\RotateFilter::ROTATE_90` : 90° clockwise
|
||||
- `FFMpeg\Filters\Video\RotateFilter::ROTATE_180` : 180°
|
||||
- `FFMpeg\Filters\Video\RotateFilter::ROTATE_270` : 90° counterclockwise
|
||||
|
||||
###### Resize
|
||||
|
||||
Resizes a video to a given size.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue