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`