Package ws.schild.jave.filters
Class ZoomPanFilter
java.lang.Object
ws.schild.jave.filters.Filter
ws.schild.jave.filters.ZoomPanFilter
- All Implemented Interfaces:
VideoFilter
-
Constructor Summary
ConstructorsConstructorDescriptionZoomPanFilter(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. -
Method Summary
Methods inherited from class ws.schild.jave.filters.Filter
addInputLabel, addNamedArgument, addOrderedArgument, addOutputLabel, escapingPath, getExpression, setQuoteCharacter
-
Constructor Details
-
ZoomPanFilter
public ZoomPanFilter() -
ZoomPanFilter
A "top to bottom" zoom and pan of an image/video using the zoompan filter.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
PadFilteris used to pad the source image/video to the same aspect ratio asouptputSize- Parameters:
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.
-
ZoomPanFilter
public ZoomPanFilter(Integer durationFrames, VideoSize outputSize, String zoomExpression, String xExpression, String yExpression) A simple usage of the zoompan filter.- Parameters:
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.
-