Package ws.schild.jave.filters
Class ScaleFilter
java.lang.Object
ws.schild.jave.filters.Filter
ws.schild.jave.filters.ScaleFilter
- All Implemented Interfaces:
VideoFilter
An implementation of the scale filter as found in the FFMPEG Documentation.
-
Constructor Summary
ConstructorsConstructorDescriptionScaleFilter(String scaleExpression) Scale the video to a particular size and maintain aspect ratio.ScaleFilter(VideoSize toSize) Scale the video to a particular size and maintain aspect ratio.ScaleFilter(VideoSize toSize, ForceOriginalAspectRatio foar) Scale the video to a particular size and maintain aspect ratio. -
Method Summary
Methods inherited from class ws.schild.jave.filters.Filter
addInputLabel, addNamedArgument, addOrderedArgument, addOutputLabel, escapingPath, getExpression, setQuoteCharacter
-
Constructor Details
-
ScaleFilter
public ScaleFilter() -
ScaleFilter
Scale the video to a particular size and maintain aspect ratio.- Parameters:
toSize- What size should the video be scaled to?
-
ScaleFilter
Scale the video to a particular size and maintain aspect ratio.- Parameters:
scaleExpression- What size should the video be scaled to? Can be an expression like "trunc(iw/2)*2:trunc(ih/2)*2"
-
ScaleFilter
Scale the video to a particular size and maintain aspect ratio.- Parameters:
toSize- What size should the video be scaled to?foar- Should the video be increased or decreased to size?
-