Motion adaptive deinterlacing based on yadif with the use of w3fdif and cubic interpolation algorithms.
This is a port of the VapourSynth plugin Bwdif.
-
AviSynth 2.60 / AviSynth+ 3.4 or later
-
Microsoft VisualC++ Redistributable Package 2022 (can be downloaded from here) (Windows only)
BWDIF (clip, int "field", clip "edeint", int "opt", float "thr", bool "debug", bool "pass")
-
clip
A clip to process. All planar formats are supported. -
field
Controls the mode of operation (double vs same rate) and which field is kept.
-4: Double rate (alternates each frame). It uses_FieldBased
frame property to determine with which field the clip starts.
-3: Same rate. It uses_FieldBased
frame property to determine which field is kept.
-2: Double rate (alternates each frame). It usesGetParity
clip property to determine with which field the clip starts.
-1: Same rate. It usesGetParity
clip property to determine which field is kept.
0: Same rate, keep bottom field.
1: Same rate, keep top field.
2: Double rate (alternates each frame), starts with bottom field.
3: Double rate (alternates each frame), starts with top field.
Default: -1. -
edeint
Clip from which to take spatial predictions. This clip must be the same width, height, and colorspace as the input clip.
If using same rate output, this clip should have the same number of frames as the input. If using double rate output, this clip should have twice as many frames as the input. -
opt
Sets which cpu optimizations to use.
-1: Auto-detect.
0: Use C++ code.
1: Use SSE2 code.
2: Use AVX2 code.
3: Use AVX512 code.
Default: -1. -
thr
Threshold for interpolation.
If the difference between pixels of the prev/next frame is less than or equal to this, the resulted pixel wouldn't be interpolated.
Must be between 0.0..100.0.
100.0: No interpolation is performed.
Default: 0.0. -
debug
Whether to show which pixels will be interpolated.
Default: False. -
pass
Whether to return the source frame (repeated when double rate) when_FieldBased
is0
. Default: False.
-
Windows
Use solution files. -
Linux
Requirements: - Git - C++17 compiler - CMake >= 3.16
git clone https://github.com/Asd-g/AviSynth-BWDIF && <br> cd AviSynth-BWDIF && <br> mkdir build && <br> cd build && <br> cmake .. make -j$(nproc) sudo make install