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 Details

    • 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(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?