Avisynth Yadif custom
Yadif (custom) is Yadif with selectable mode and field order: same rate or bob, and a way to override a wrong field order.
Filtering → (De-)Interlace/Telecine → Deinterlacer (entry "Yadif - custom (Avisynth)")

What it does
Yadif rebuilds the missing lines of one field from spatial and temporal neighbours. With Mode you choose whether the output has the source frame rate (25i to 25p) or one frame per field (25i to 50p), and whether the spatial check is used. Order tells Yadif which field comes first; set it when the field order of the source is not detected correctly. When the scan type is set to bottom or top field first in Hybrid, Order follows it.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Mode | mode | 0–3 | 0 | 0: same rate, with spatial interlacing check; 1: double rate (bob), with spatial check; 2: same rate, no spatial check; 3: double rate, no spatial check. |
| Order | order | −1–1 | −1 | Field order: −1 = AviSynth's order, 0 = bottom field first, 1 = top field first. |
Example
Default mode on an interlaced PAL 720×576 8-bit source with top field first, where Order was set to 1 from the scan type, and the conversion to 10 bit for the encoder:
# deinterlacing Yadif(mode=0,order=1) AssumeFrameBased() # Converting from 8 to 10bit for encoder ConvertBits(10)
How Hybrid calls it
- yadif.dll is loaded as C plugin. It works on 8-bit YV12 and YUY2 only; other formats are converted first.
- The modes 1 and 3 double the frame rate and count. The result is marked progressive.
Background
See Avisynth Yadif for the plugin. A top-field-first source with Order on bottom field first (or the other way round) gives jerky motion.
See also: Avisynth Yadifmod
Sources
- Yadif for AviSynth
- Hybrid's tooltips
- The AviSynth+ documentation does not cover Yadif.