Last active
March 25, 2026 00:28
-
-
Save KCCat/1b3a7b7f085a066af3719859f88ded02 to your computer and use it in GitHub Desktop.
mpv-mvtools.vpy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import vapoursynth as vs | |
| core = vs.get_core(threads=32) | |
| clip = video_in | |
| vfps = int(container_fps*1e8) | |
| vden = 1e8 | |
| if not (container_fps > 59): | |
| clip = core.std.AssumeFPS(clip, fpsnum=vfps, fpsden=vden) | |
| sup = core.mv.Super(clip, pel=2, sharp=2, rfilter=4,hpad=32,vpad=32,levels=0) | |
| bvec = core.mv.Analyse(sup,blksize=32,overlap=16, | |
| levels=0,isb=True, | |
| search=3,searchparam=0,pelsearch=3, | |
| badrange=-1,badsad=10000, | |
| pzero=110 | |
| ) | |
| fvec = core.mv.Analyse(sup,blksize=32,overlap=16, | |
| levels=0,isb=False, | |
| search=3,searchparam=0,pelsearch=3, | |
| badrange=-1,badsad=10000, | |
| pzero=110 | |
| ) | |
| #clip = core.mv.FlowFPS(clip,sup,bvec,fvec,num=int(vfps*round(60/container_fps,2)),den=vden,mask=1,ml=1e8,thscd1=400,thscd2=130) | |
| clip = core.mv.BlockFPS(clip,sup,bvec,fvec,num=int(vfps*round(60/container_fps,2)),den=vden,mode=2,ml=1e8,thscd1=400,thscd2=130) | |
| clip.set_output() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment