Avisynth Vinverse2

From wiki.selur.net
Revision as of 23:09, 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

Vinverse2 is a variant of Vinverse for removing residual combing after deinterlacing or field matching. It usually keeps more vertical detail.

Filtering → Avisynth → Frame → Misc

Vinverse2 controls in Hybrid
Vinverse2 controls in Hybrid

The controls are the same frame as Vinverse; the Vinverse 2 check box selects this variant.

What it does

Vinverse2 uses a different vertical blur and a lighter [1, 2, 1] sharpening kernel than Vinverse. Frame count and frame rate are unchanged.

Requirements

CPU only. Needs vinverse.dll, which Hybrid ships (Windows: Visual C++ 2022 runtime).

Settings

Control Parameter Range Hybrid default Meaning
Vinverse – on/off off Enables the filter.
Strength sstr 0–100 (step 0.01) 2.7 Strength of the contra-sharpening.
Amount amnt 1–255 255 Largest change per pixel; 255 means unrestricted.
Chroma mode uv 1–3 3 1: chroma is discarded (garbage), 2: chroma is copied, 3: chroma is processed.
Scale scl 0–10 (step 0.01) 0.25 Scale factor applied where sharpening and blur differences have opposite signs.
Vinverse 2 – on/off off Tick to use vinverse2 (this page) instead of vinverse.

Example

Vinverse 2 ticked, other settings at the defaults, on a 10-bit YUV 4:2:0 source. Hybrid converts to 8 bit and back:

# remove residual combing using vInverse
# Converting from 10 to 8bit for Vinverse
ConvertBits(8)
vinverse2()
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • Hybrid loads vinverse.dll and calls vinverse2(); sstr, amnt, uv and scl are only written when they differ from the defaults.
  • The filter is used with 8-bit YV12 and progressive input; Hybrid adds the conversions.
  • Vinverse2 shares its place in the filter order with Vinverse.
  • Vinverse2 also offers the common options and can be added to the filter queue several times.

Background

vinverse2 is part of vinverse.dll 0.9.4 by Asd-g, a fast implementation of the Vinverse2 idea from the original vinverse by tp7. Unlike vinverse, it has no clip2 and thr parameters; opt is not offered in Hybrid.

See also: Vapoursynth Vinverse2, Vinverse

Sources