fix #547
This commit is contained in:
parent
1f81e5f0f8
commit
ed22de7eb1
1 changed files with 12 additions and 2 deletions
14
README.md
14
README.md
|
|
@ -1,4 +1,4 @@
|
||||||
# PHP FFmpeg
|
# php-ffmpeg
|
||||||
|
|
||||||
[](http://travis-ci.org/PHP-FFMpeg/PHP-FFMpeg)
|
[](http://travis-ci.org/PHP-FFMpeg/PHP-FFMpeg)
|
||||||
|
|
||||||
|
|
@ -144,7 +144,7 @@ $frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(42));
|
||||||
$frame->save('image.jpg');
|
$frame->save('image.jpg');
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to extract multiple images from your video, you can use the following filter:
|
If you want to extract multiple images from the video, you can use the following filter:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$video
|
$video
|
||||||
|
|
@ -155,6 +155,16 @@ $video
|
||||||
$video
|
$video
|
||||||
->save(new FFMpeg\Format\Video\X264(), '/path/to/new/file');
|
->save(new FFMpeg\Format\Video\X264(), '/path/to/new/file');
|
||||||
```
|
```
|
||||||
|
By default, this will save the frames as `jpg` images.
|
||||||
|
|
||||||
|
You are able to override this using `setFrameFileType` to save the frames in another format:
|
||||||
|
```php
|
||||||
|
$frameFileType = 'jpg'; // either 'jpg', 'jpeg' or 'png'
|
||||||
|
$filter = new ExtractMultipleFramesFilter($frameRate, $destinationFolder);
|
||||||
|
$filter->setFrameFileType($frameFileType);
|
||||||
|
|
||||||
|
$video->addFilter($filter);
|
||||||
|
```
|
||||||
|
|
||||||
##### Clip
|
##### Clip
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue