Skip to content

Instantly share code, notes, and snippets.

@optix2000
Last active August 7, 2016 05:39
Show Gist options
  • Save optix2000/83b4a09dc4f8131affa59087a28a19b2 to your computer and use it in GitHub Desktop.
Save optix2000/83b4a09dc4f8131affa59087a28a19b2 to your computer and use it in GitHub Desktop.
SVP
SetMemoryMax(1024) # Legacy from AviSynth days. To stop AviSynth from hemorrhaging memory.
AddAutoloadDir("C:\Program Files (x86)\AviSynth+\plugins+") # Cuz I didn't actually install AviSynth
SetFilterMTMode("DEFAULT_MT_MODE", 1) # Default mode 1. Apparently it now plays nice with SVP
SetFilterMTMode("ffdshow_source", 3) # Source has to be mode 3
ffdshow_source() # Source
super=SVSuper("{gpu:1}") # Use GPU
# Small 32x32 blocks (for 1080p) with additional refine to 4x4. no penalty for zero vectors (trying to get rid of artifacts with text on screen)
vectors=SVAnalyse(super,"
{
block:{w:32, h:32, overlap:2},
refine:[{thsad:600}]
}
")
SVSmoothFps(super, vectors, "
{
gpu:1,
num:60,
den:1,
algo:23,
cubic:1,
mask:{cover: 100, area:85},
scene:{
mode: 0,
blend:true,
limits:{
m1:1500,
m2:2000,
scene:5000
}
}
}
", mt=8)
Prefetch(8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment