Skip to content

VapourSynth plugin

TianZer edited this page Aug 1, 2025 · 16 revisions

Quick start

import vapoursynth as vs
core = vs.core 
src = core.lsmas.LWLibavSource(source=r"D:\temp\p1-1.m4v")
src = core.anime4kcpp.ACUpscale(src, factor=2.0, processor="opencl", device = 0)
src.set_output()

Install

Download the Anime4KCPP-Filter-AVS-VS package or build it from source, copy the dll file to your vapoursynth64/plugins, that's it!

Functions

core.anime4kcpp.ACInfoList()

This is a help function that will return a string list of the available processors with its devices.

core.anime4kcpp.ACUpscale(clip, factor, processor, device, model)

This is the upscaling function.

parameters: description (type [=default])

  • clip: vnode
  • factor: factor for upscaling (float [=2.0])
  • processor: processor for upscaling (string [="cpu"])
  • device: device index for processor (int [=0])
  • model: model name (string [="acnet-hdn0"])

Supported color format

  • Gray8
  • Gray16
  • GrayS
  • YUV444P8
  • YUV444P16
  • YUV444PS
  • YUV422P8
  • YUV422P16
  • YUV422PS
  • YUV420P8
  • YUV420P16
  • YUV420PS

Clone this wiki locally