nnedi3_resample
A VapourSynth script for easy resizing using nnedi3/znedi3/nnedi3cl with center alignment and correct chroma placement.
Requirements
Usage
For Windows users, put nnedi3_resample.py into
- VapourSynth installed for all users:
\Lib\site-packages - VapourSynth installed for current user:
%AppData%\Python\Python
\site-packages
Function
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).
Example
Double the width and height of a clip.
import vapoursynth as vs
from vapoursynth import core
from nnedi3_resample import nnedi3_resample
clip = XXXSource()
clip = nnedi3_resample(clip, clip.width * 2, clip.height * 2, mode='znedi3')
clip.set_output()
ChangeLog
- 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
, deprecated in VapourSynth API4.