public class ZoomPanFilter extends Filter
| Constructor and Description |
|---|
ZoomPanFilter() |
ZoomPanFilter(Integer durationFrames,
VideoSize outputSize,
String zoomExpression,
String xExpression,
String yExpression)
A simple usage of the zoompan
filter.
|
ZoomPanFilter(Integer durationFrames,
VideoSize inputSize,
VideoSize outputSize)
A "top to bottom" zoom and pan of an image/video using the zoompan filter.
|
addInputLabel, addNamedArgument, addOrderedArgument, addOutputLabel, getExpressionpublic ZoomPanFilter()
public ZoomPanFilter(Integer durationFrames, VideoSize inputSize, VideoSize outputSize)
This instance of zoompan will animate gently using a sigmoid function. The first third of the video is focused on the beginning of the image, the last third is focused on the bottom part of the image, and the middle section will animate gracefully between the two.
It is expected that the input video is of the same aspect ratio as the output video. If
zooming in to a video of a different size, try using the PadFilter is used to pad the
source image/video to the same aspect ratio as ouptputSize
durationFrames - The number of frames to emit for this zoompan filter. Default FPS is 25.inputSize - The size of the original image/video this filter is zooming around in.outputSize - The size of the resulting video after the zoompan filter is applied.public ZoomPanFilter(Integer durationFrames, VideoSize outputSize, String zoomExpression, String xExpression, String yExpression)
durationFrames - The number of frames to emit for this zoompan filter. Default FPS is 25.outputSize - The size of the resulting video after the zoompan filter is applied.zoomExpression - An
expression that represents the current zoom level.xExpression - An
expression that represents the current x location.yExpression - An
expression that represents the current y location.Copyright © 2020. All rights reserved.