Skip to content

AviSynth Script: SVP

Anime4000 edited this page Feb 9, 2019 · 6 revisions

High Quality Frame Interpolation

InterFrame by spirton not high quality enough, I create simple script that communicate directly SVP library. There are 3 JSON script for visual/gpu tweaking

SetMemoryMax(6000)

global threads=25

SetFilterMTMode("DEFAULT_MT_MODE", 2)
SetFilterMTMode("SVSuper", 1)
SetFilterMTMode("SVAnalyse", 1)
SetFilterMTMode("ffdshow_source", 3)
DirectShowSource("my imouto video.mkv")

ConvertToYV12()

global super_params = """
{
    scale: {
        up: 0
    },
    gpu: 1,
    rc: true
}
"""

global analyse_params = """
{
    main: {
        search: {
            coarse: {
                distance: -8,
                bad: {
                    sad: 2000,
                    range: 24
                }
            },
            type: 2
        }
    },
    refine: [{
        thsad: 250
    }]
}
"""

global smoothfps_params = """
{
    gpuid: 21,
    rate: {
        num: 120,
        den: 1,
        abs: true
    },
    algo: 13,
    mask: {
        area: 200
    },
    scene: {}
}
"""

input=last
super=SVSuper(input, super_params)
vectors=SVAnalyse(super, analyse_params, src=input)
smooth=SVSmoothFps(input, super, vectors, smoothfps_params, mt=threads)

smooth

Prefetch(threads)
  • save it as anyname.avs 😄
  • You can find more properties here
  • Please use Latest AviSynth+ If have installed SVP you can skip to download latest AviSynth+
  • This script will use GPU by default.

Known bug

  • If you using AMD Radeon Adrenalin driver, please use 64-bit decoder
Clone this wiki locally