Skip to content

AviSynthPlus plugin

TianZerL edited this page May 25, 2020 · 13 revisions

Quick start

#Anime4KCPP only supports RGB24 input

FFVideoSource("G:\anime4k\P1-1.m4v").ConvertToRGB24().Anime4KCPP(GPUMode=true,zoomFactor=2).ConvertToYUV444()

#YUV444 is faster than YUV420 if it is converted from RGB24.

Install

Download the Anime4KCPP_AviSynthPlus_plugin package or build it from source, copy all the dll files to your plugins64+ folder of AviSynthPlus+, that's it!

Functions

listGPUs()

This function will list the available platform IDs and device IDs by throwing an error, you can use them to specify the GPU for processing.

Anime4KCPP(src, passes, pushColorCount, strengthColor, strengthGradient, zoomFactor, GPUMode, platformID, deviceID)

This is the main function of Anime4KCPP, please notice that only RGB24 input is supported.

parameters: description (type [=default])

  • passes: Passes for processing (int [=2])
  • pushColorCount: Limit the number of color pushes, make sure the edge won't be too thin (int [=2])
  • strengthColor: Strength for pushing color,range 0 to 1,higher for thinner (double [=0.3])
  • strengthGradient: Strength for pushing gradient,range 0 to 1,higher for sharper (double [=1])
  • zoomFactor: upscaling ratio for resizing (double [=1])
  • GPUMode: Enable GPU acceleration (bool [=false])
  • platformID, deviceID: For specifying the GPU (int [=0])
Clone this wiki locally