Skip to content

Instantly share code, notes, and snippets.

View wiwaz's full-sized avatar
🥤
fizz

wiwaz

🥤
fizz
View GitHub Profile
import vapoursynth as vs
from havsfunc import Gauss, DitherLumaRebuild
import vsutil
core = vs.core
# Blur image and soften edges to assist in motion matching of edge blocks. Blocks are matched by SAD (sum of absolute differences between blocks), but even
# a slight change in an edge from frame to frame will give a high SAD due to the higher contrast of edges
def qtgmc_prefilter(clip: vs.VideoNode, SrchClipPP: int = 1, **dlrargs) -> vs.VideoNode: