Creation of the method to add the filter

This commit is contained in:
Romain Biard 2017-01-11 10:06:17 -03:00
commit b3155f9622

View file

@ -36,4 +36,19 @@ class FrameFilters
return $this;
}
/**
* Fixes the display ratio of the output frame.
*
* In case the sample ratio and display ratio are different, image may be
* anamorphozed. This filter fixes this by specifying the output size.
*
* @return FrameFilters
*/
public function extractMultipleFrames($frameRate = ExtractMultipleFramesFilter::FRAMERATE_EVERY_2SEC, $destinationFolder = __DIR__)
{
$this->frame->addFilter(new ExtractMultipleFramesFilter($frameRate, $destinationFolder));
return $this;
}
}