From ba17ad273a3a91d79cce1189d1e55463e1db38b5 Mon Sep 17 00:00:00 2001 From: Romain Biard Date: Wed, 11 Jan 2017 12:13:59 -0300 Subject: [PATCH] We update the README with this new filter --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 3f7cc1f..c204cd8 100644 --- a/README.md +++ b/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`