Avisynth ediaa

From wiki.selur.net
Jump to navigation Jump to search

ediaa is an anti-aliasing script that rebuilds edges with the edge-directed interpolator EEDI2.

Filtering → Avisynth → Line → AntiAliasing

ediaa controls in Hybrid
ediaa controls in Hybrid

What it does

ediaa doubles the picture in both directions with EEDI2 (once as is, once turned by 90°) and scales it back to the original size with Spline36. EEDI2 interpolates along the direction of an edge, so stair-steps are rebuilt as smooth lines instead of being blurred. There is no mask: the whole picture is processed.

Use it on animation and other clean line art with visible aliasing. For live action with fine texture a masked script such as maa2 is gentler.

Settings

ediaa has no settings besides its check box.

Example

Default settings on a 10-bit YUV 4:2:0 source. Hybrid converts to 8 bit and back:

# Converting from 10 to 8bit for ediaa
ConvertBits(8)
ediaa_plus()
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • The ediaa script is loaded together with EEDI2; the function called is ediaa_plus(), without arguments.
  • The script only accepts 8-bit YV12. Hybrid converts other input to 8 bit YV12 and back to the original bit depth afterwards.
  • ediaa is not meant for interlaced material.
  • ediaa also offers the common options and can be added to the filter queue several times.

Background

  • EEDI2 is tritical's edge-directed interpolation plugin.
  • The script resizes back with a −0.5 offset and a window of twice the source size, so the picture does not shift.
  • The idea of using EEDI2 for anti-aliasing is credited to Mystery Keeper on Doom9. The VapourSynth version does the same: Vapoursynth EEDIAA.

Sources

  • Doom9 thread "Denoise of tv-anime" (origin of the idea)
  • Hybrid's tooltips
  • The AviSynth+ documentation does not cover ediaa.