Is there a semi-intelligent fill filter? I thought I had it all down with MSU's logo remover but instead of extrapolating from the existing picture into the black space, it extrapolated from black space into the picture and blurred so it looks worse.
Since it's only 3 pixels on every side except bottom, the quality of the filler doesn't matter that much as long as it does it right.
+ Reply to Thread
Results 1 to 6 of 6
Thread: Filling blanks caused by Stab()
Stab itself can be made to fill. It uses Depan and from the Depan doc:
Parameters of DePan:
mirror - fill empty borders with mirrored from frame edge pixels (instead of black):
0 - no mirror (default);
1 - top;
2 - bottom;
4 - left;
8 - right;
sum any of above - combination (15 - all ).
So, near the bottom of the Stab.avs I edited it to:
FillMargins is a simple Avisynth filter that fills the four margins of a video
clip with the outer pixels of the unfilled portion. It takes integer 4 parms
specifying the size of the left, top, right, and bottom margins. These may be
any value and do not have to be any particular multiple.
should do it
These won't do. There should be a bi-directional frame compensation. I never thought only 3 (even 2) pixels would make a noticeable difference. Observe the top of the moon.
I guess I will have to crop, but at least I figured out that only the top and left side need cropping. Why is this? Does a video never wobble downward as well as upward?
Well I've pulled an alternative trick out of my sleeve. The top and left borders have no real reason to be blacked out by stab so I replaced them with the borders of the unstabbed original.
s=avisource("C:\vid.avi").stab().crop(2,2,0,0) e=avisource("C:\vid.avi") top=e.crop(2,0,0,-538) left=e.crop(0,0,-958,0) f=stackvertical(top,s) stackhorizontal(left,f)
That approach might work for this shot, but it might look bad in other sections