Put nnedi3_resample.py into <python folder>\Lib\site-packages\vapoursynth
or <python folder>\Lib\site-packages
It can do scaling, color space conversion, etc.
Note: Internally always processing in 16-bit integer, and the output format can be specified by "csp" with Format id (default is the same as input).
Double the width and height of a clip.
import vapoursynth as vs
from vapoursynth import core
import nnedi3_resample as nnrs
clip = XXXSource()
clip = nnrs.nnedi3_resample(clip, clip.width * 2, clip.height * 2, mode='znedi3')
clip.set_output()
- Add new option
mode
, default value isnnedi3
, optional value:znedi3
, it may be faster than nnedi3nnedi3cl
, it can be used with new optionsdevice
(same as the parameter of the plugin with the same name)
- Chage how to import core because
get_core
is deprecated. - Remove
YCOCG
andCOMPAT
, these will be deprecated in API4. - Use fmtconv to convert gamma and linear.