Skip to content

AviSynthPlus plugin

TianZer edited this page Feb 3, 2021 · 13 revisions

Quick start

#Anime4KCPP supports RGB24 and YUV 8bit(YUV444, YUV422, YUV420 for ACNet, YUV444 for Anime4K09) input

FFVideoSource("Your video path").Anime4KCPP(GPUMode = true, zoomFactor = 2, ACNet = true, HDN = true, HDNLevel = 1)

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(passes, pushColorCount, strengthColor, strengthGradient, zoomFactor, ACNet, GPUMode, GPGPUModel, HDN, HDNLevel, OpenCLQueueNum, OpenCLParallelIO, platformID, deviceID)  

Anime4KCPP2(src, passes, pushColorCount, strengthColor, strengthGradient, zoomFactor, ACNet, GPUMode, GPGPUModel, HDN, HDNLevel, OpenCLQueueNum, OpenCLParallelIO, platformID, deviceID)

The main function of Anime4KCPP, please notice that Anime4KCPP and Anime4KCPP2 supports RGB24 and YUV(8bit and 16bit integer, 32bit float)(YUV444, YUV422, YUV420 for ACNet, YUV444 for Anime4K09) input.
Anime4KCPP2 must point out the input clip for "src" parameter, see #51

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])
  • ACNet: Enable ACNet (bool [=false])
  • GPUMode: Enable GPU acceleration (bool [=false])
  • GPGPUModel: OpenCL or CUDA (string [="opencl"])
  • HDN: Enable HDN mode for ACNet (bool [=false])
  • HDNLevel: Set HDN level, higher for better denoising but may cause blur, range 1 to 3 (int [=1])
  • OpenCLQueueNum: Number of OpenCL queue, may affect performance, especially for NVIDIA graphics card (int [=4])
  • OpenCLParallelIO: Use a separate OpenCL queue to handle IO, may affect performance, especially for AMD graphics card (int [=false])
  • platformID, deviceID: For specifying the GPU (int [=0])

Supported color format

Supported color format:

  • "ACNet=0" :
    • Gray8
    • Gray16
    • GrayS
    • RGB24
    • YUV444P8
    • YUV444P16
    • YUV444PS
  • "ACNet=1":
    • Gray8
    • Gray16
    • GrayS
    • RGB24
    • YUV444P8
    • YUV444P16
    • YUV444PS
    • YUV422P8
    • YUV422P16
    • YUV422PS
    • YUV420P8
    • YUV420P16
    • YUV420PS
Clone this wiki locally