This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

stab() with zero range
#2
Hmm,.. I wonder why.

With range=1 Hybrid uses:
clip = stabilize.Stab(clp=clip,mirror=0)
with range=0 Hybrid uses:
clip = stabilize.Stab(clp=clip,range=0,mirror=0)
This is correct, since the default for range is 1.
def Stab(clp, range=1, dxmax=4, dymax=4, mirror=0):
  if not isinstance(clp, vs.VideoNode):
    raise TypeError('Stab: This is not a clip')

  temp = AverageFrames(clp, weights=[1] * 15, scenechange=25 / 255)
  if hasattr(core,'zsmooth'):
    inter = core.std.Interleave([core.zsmooth.Repair(temp, AverageFrames(clp, weights=[1] * 3, scenechange=25 / 255), 1), clp])
  else:
    inter = core.std.Interleave([core.rgvs.Repair(temp, AverageFrames(clp, weights=[1] * 3, scenechange=25 / 255), 1), clp])
  mdata = core.depan.DePanEstimate(inter, range=range, trust=0, dxmax=dxmax, dymax=dymax)
  last = core.depan.DePan(inter, data=mdata, offset=-1, mirror=mirror)
  return last[::2]
Also, range is not changed and send to depan.DePanEstimate, which
depan.DePanEstimate(clip clip[, int range=0, float trust=4.0, int winx, int winy, int wleft=-1, int wtop=-1, int dxmax=winx/4, int dymax=winy/4, float zoommax=1.0, float stab=1.0, float pixaspect=1.0])
...
range: Number of previous (and also next) frames (fields) near requested frame to estimate motion.
see: https://github.com/Vapoursynth-Plugins-G...file#usage
should differ assuming the motion does change between the frames,...

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
stab() with zero range - by Graven - 04.08.2025, 06:22
RE: stab() with zero range - by Selur - 04.08.2025, 20:36

Forum Jump:


Users browsing this thread: 2 Guest(s)