Avisynth faa

From wiki.selur.net
Revision as of 23:08, 21 November 2026 by Selur (talk | contribs) (Avisynth filter documentation (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

faa ("faster anti-aliasing") is a quick anti-aliasing script that uses SangNom2 and an edge mask.

Filtering → Avisynth → Line → AntiAliasing

faa controls in Hybrid
faa controls in Hybrid

What it does

faa doubles the width of the picture, turns it by 90°, lets SangNom2 smooth the edges, turns it back and scales it to the original size. The result is merged into the source only on edge areas, so the rest of the picture stays sharp. Use it against jagged lines in animation or upscaled material.

Settings

faa 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 faa
ConvertBits(8)
FAA_plus()
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • The faa script is loaded together with SangNom2 and masktools2; the function called is FAA_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.
  • faa is not meant for interlaced material.
  • faa also offers the common options and can be added to the filter queue several times.

Background

  • The script is a plain "faster anti-aliasing filter". Steps: PointResize to double width, TurnLeft, SangNom2, TurnRight, LanczosResize back, then a merge through an inflated edge mask.
  • The script has a strength parameter for SangNom2 (default 50). Hybrid does not offer it.
  • Related scripts: maa2 (more options), ediaa (EEDI2-based).

Sources