Skip to content

AutoCrop

Infiziert90 edited this page Apr 19, 2017 · 3 revisions

Command:

acrop.AutoCrop(clip, range, top, bottom, left, right, color, color_second)

Optional:

range, top, bottom, left, right, color, color_second

Defaults:

range = 4
top = range
bottom = range
left = range
right = range
color = {0,123,123}
color_second = {21,133,133}

All values for color and color_second are on the 8-bit scale and will be scaled internally depending on the input clip's bitdepth

Process:

AutoCrop will remove all pixels rows with values between color and color_second. This process is repeated for every frame. Output is a clip with varying dimensions.

Example:

clip = core.ffms2.Source(clip_with_borders) 
clip = core.acrop.AutoCrop(clip, range=10, color=[25,135,135], color_second=[35,145,145])  
clip = core.resize.Spline36(clip, 1920, 1080)  

Clone this wiki locally