Class ScaleFilter

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