Log in

View Full Version : AutoCrop for VS


Infiziert90
20th April 2017, 17:22
Hi,

I wrote a little auto crop plugin that allows you to crop stuff without knowing the crop parameters.
This is especially useful for videos with varying border sizes that need different crop parameters for every scene.
Please note that the filter output will not have a constant size and may need to be resized.

Release (https://github.com/Infiziert90/vapoursynth-autocrop/releases)

README.md (https://github.com/Infiziert90/vapoursynth-autocrop/blob/master/README.md)

"Wiki" (https://github.com/Infiziert90/vapoursynth-autocrop/wiki)

Still Work in Progress, but it should run without problems for 8-16 Bit and 4:2:0 + 4:4:4 subsampling.

ChaosKing
2nd May 2017, 22:54
I tried it with an old DVD with crazy boder sizes sometimes 30px (wtf). It seems to work, but it always leaves some borders, so it's never really completely cropped. sometimes ~4px are left sometimes ~2px.
But I guess this is also because the border is not "sharp" but fades out into black

http://imgur.com/a/HAynx

kolak
5th May 2017, 10:56
Rise black level. Parts of these borders won't be probably pure black at all.

Infiziert90
9th May 2017, 12:26
Hmm ... did you change the default color+color_second?

ps. Can you upload a picture from the original scene?

ChaosKing
9th May 2017, 12:59
yes, I tried that with different values. But I don't know what color format this is. I tried RGB values from photoshop color picker.

Infiziert90
9th May 2017, 13:09
YUV ... you can get that color values from vapoursynth editor with color picker

ChaosKing
9th May 2017, 13:34
Thx, but I still see some borders. And the cropping is not stable especially on camera pans and zooms.
Here is a cut from my source https://www.dropbox.com/s/evw6gs2senzsq6o/ken.mkv?dl=1