Documentation:Modules/crop: Difference between revisions

From VideoLAN Wiki
Jump to navigation Jump to search
m +{{Module}}, +Category:Video Filters
m Markup options that were on this page
Line 1: Line 1:
{{Module|name=Crop|type=Video filter|description=Remove borders of the video and replace them with black borders}}
{{Module|name=Crop|type=Video filter|description=Remove borders of the video and replace them with black borders}}
Crop video filter
 
Remove borders of the video and replace them by black borders
== Options ==
      --crop-geometry=<string>  Crop geometry (pixels)
=== Crop video filter ===
      --autocrop, --no-autocrop  Automatic cropping (default disabled)
{{Option
      --autocrop-ratio-max=<integer [0 .. 15000]>
|name=crop-geometry
                                Ratio max (x 1000)
|value=string
      --crop-ratio=<integer [0 .. 15000]>
|description=Crop geometry (pixels)
                                Manual ratio
}}
      --autocrop-time=<integer>  Number of images for change
{{Option
      --autocrop-diff=<integer>  Number of lines for change
|name=autocrop
      --autocrop-non-black-pixels=<integer>
|value=boolean
                                Number of non black pixels
|description=Automatic cropping
      --autocrop-skip-percent=<integer [0 .. 100]>
|default=disabled
                                Skip percentage (%)
}}
      --autocrop-luminance-threshold=<integer [0 .. 128]>
{{Option
                                Luminance threshold
|name=autocrop-ratio-max
Video scaling filter
|value=integer
  Crop:
|min=0
      --croppadd-croptop=<integer [0 .. 2147483647]>
|max=15000
                                Pixels to crop from top
|description=Ratio max (&times; 1000)
      --croppadd-cropbottom=<integer [0 .. 2147483647]>
}}
                                Pixels to crop from bottom
{{Option
      --croppadd-cropleft=<integer [0 .. 2147483647]>
|name=crop-ratio
                                Pixels to crop from left
|value=integer
      --croppadd-cropright=<integer [0 .. 2147483647]>
|min=0
                                Pixels to crop from right
|max=15000
  Padd:
|description=Manual ratio
      --croppadd-paddtop=<integer [0 .. 2147483647]>
}}
                                Pixels to padd to top
{{Option
      --croppadd-paddbottom=<integer [0 .. 2147483647]>
|name=autocrop-time
                                Pixels to padd to bottom
|value=integer
      --croppadd-paddleft=<integer [0 .. 2147483647]>
|description=Number of images for change
                                Pixels to padd to left
}}
      --croppadd-paddright=<integer [0 .. 2147483647]>
{{Option
                                Pixels to padd to right
|name=autocrop-diff
|value=integer
|description=Number of lines for change
}}
{{Option
|name=autocrop-non-black-pixels
|value=integer
|description=Number of non black pixels
}}
{{Option
|name=autocrop-skip-percent
|value=integer
|min=0
|max=100
|description=Skip percentage (%)
}}
{{Option
|name=autocrop-luminance-threshold
|value=integer
|min=0
|max=128
|description=Luminance threshold
}}
 
=== Video scaling filter ===
==== Crop ====
{{Option
|name=croppadd-croptop
|value=integer
|min=0
|max=2147483647
|description=Pixels to crop from top
}}
{{Option
|name=croppadd-cropbottom
|value=integer
|min=0
|max=2147483647
|description=Pixels to crop from bottom
}}
{{Option
|name=croppadd-cropleft
|value=integer
|min=0
|max=2147483647
|description=Pixels to crop from left
}}
{{Option
|name=croppadd-cropright
|value=integer
|min=0
|max=2147483647
|description=Pixels to crop from right
}}
==== Padd ====
{{Option
|name=croppadd-paddtop
|value=integer
|min=0
|max=2147483647
|description=Pixels to add to top
}}
{{Option
|name=croppadd-paddbottom
|value=integer
|min=0
|max=2147483647
|description=Pixels to add to bottom
}}
{{Option
|name=croppadd-paddleft
|value=integer
|min=0
|max=2147483647
|description=Pixels to add to left
}}
{{Option
|name=croppadd-paddright
|value=integer
|min=0
|max=2147483647
|description=Pixels to add to right
}}


[[Category:Video Filters]]
[[Category:Video Filters]]

Revision as of 05:13, 10 March 2019

Module: Crop
Type Video filter
First VLC version -
Last VLC version -
Operating system(s) all
Description Remove borders of the video and replace them with black borders
Shortcut(s) -

Options

Crop video filter

  • crop-geometry <string> : Crop geometry (pixels)
  • autocrop <boolean> : Automatic cropping default value: disabled
  • autocrop-ratio-max <integer [0 .. 15000]> : Ratio max (× 1000)
  • crop-ratio <integer [0 .. 15000]> : Manual ratio
  • autocrop-time <integer> : Number of images for change
  • autocrop-diff <integer> : Number of lines for change
  • autocrop-non-black-pixels <integer> : Number of non black pixels
  • autocrop-skip-percent <integer [0 .. 100]> : Skip percentage (%)
  • autocrop-luminance-threshold <integer [0 .. 128]> : Luminance threshold

Video scaling filter

Crop

  • croppadd-croptop <integer [0 .. 2147483647]> : Pixels to crop from top
  • croppadd-cropbottom <integer [0 .. 2147483647]> : Pixels to crop from bottom
  • croppadd-cropleft <integer [0 .. 2147483647]> : Pixels to crop from left
  • croppadd-cropright <integer [0 .. 2147483647]> : Pixels to crop from right

Padd

  • croppadd-paddtop <integer [0 .. 2147483647]> : Pixels to add to top
  • croppadd-paddbottom <integer [0 .. 2147483647]> : Pixels to add to bottom
  • croppadd-paddleft <integer [0 .. 2147483647]> : Pixels to add to left
  • croppadd-paddright <integer [0 .. 2147483647]> : Pixels to add to right