dubhater / vapoursynth-mvtools

Motion compensation and stuff
181 stars 27 forks source link

FlowBlur: Padding distortion when using pelclip #32

Closed ghost closed 6 years ago

ghost commented 6 years ago

My script:

c = core.ffms2.Source(r'input.mp4') pel = core.resize.Bilinear(c, 1280, 720)

s = core.mv.Super(c, 16, 16, rfilter=3, pelclip=pel) bv = core.mv.Analyse(s, isb=True, blksize=16, plevel=2, dct=5) fv = core.mv.Analyse(s, blksize=16, plevel=2, dct=5) c = core.mv.FlowBlur(c, s, bv, fv)

Output:

virtualdub64_2018-06-19_15-21-05

There is green distortion on the edges when using pelclip and FlowBlur (Zimg and nnedi3cl produce the same artifacts). The workaround is to disable padding. BlockFPS and FlowFPS are also affected by this.

Is this a bug or is there something about Zimg/nnedi3cl or MVTools I do not know about? This also happens on Pinterf's MVTools. Thanks

dubhater commented 6 years ago

Thanks for reporting. It was a bug I introduced in this version of MVTools. I'm not sure how Pinterf's version could have the same problem.