Package ws.schild.jave.filters
Class ScaleFilter
- java.lang.Object
-
- ws.schild.jave.filters.Filter
-
- ws.schild.jave.filters.ScaleFilter
-
- All Implemented Interfaces:
VideoFilter
public class ScaleFilter extends Filter
An implementation of the scale filter as found in the FFMPEG Documentation.
-
-
Constructor Summary
Constructors Constructor Description ScaleFilter()ScaleFilter(java.lang.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 Detail
-
ScaleFilter
public ScaleFilter()
-
ScaleFilter
public ScaleFilter(VideoSize toSize)
Scale the video to a particular size and maintain aspect ratio.- Parameters:
toSize- What size should the video be scaled to?
-
ScaleFilter
public ScaleFilter(java.lang.String scaleExpression)
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
public ScaleFilter(VideoSize toSize, ForceOriginalAspectRatio foar)
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?
-
-