We update the README with this new filter
This commit is contained in:
parent
c90f26724c
commit
ba17ad273a
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -145,6 +145,18 @@ $frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(42));
|
|||
$frame->save('image.jpg');
|
||||
```
|
||||
|
||||
If you want to extract multiple images from your video, you can use the following filter:
|
||||
|
||||
```php
|
||||
$video
|
||||
->filters()
|
||||
->extractMultipleFrames(FFMpeg\Filters\Video\ExtractMultipleFramesFilter::FRAMERATE_EVERY_10SEC, . '/path/to/destination/folder/')
|
||||
->synchronize();
|
||||
|
||||
$video
|
||||
->save(new FFMpeg\Format\Video\X264(), '/path/to/new/file');
|
||||
```
|
||||
|
||||
##### Generate a waveform
|
||||
|
||||
You can generate a waveform of an audio file using the `FFMpeg\Media\Audio::waveform`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue