Avisynth Vinverse

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

Vinverse removes residual combing, thin horizontal stripes that a deinterlacer or field matcher leaves behind. A check box selects the variant Vinverse2.

Filtering → Avisynth → Frame → Misc

Vinverse controls in Hybrid
Vinverse controls in Hybrid

What it does

The picture is blurred vertically and then re-sharpened only where that does not bring the combing back (a method by Didee, plugin by tritical). Frame count and frame rate are unchanged. Use it after deinterlacing or field matching.

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 Use vinverse2 instead; see Vinverse2.

Example

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

How Hybrid calls it

  • Hybrid loads vinverse.dll and calls vinverse(); 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.
  • Vinverse also offers the common options and can be added to the filter queue several times.

Background

vinverse.dll 0.9.4 is Asd-g's maintained version of tritical's original plugin for AviSynth+ 3.4 and VapourSynth. It handles planar YUV from 8 to 16 bit. The plugin's opt, clip2 (take the contra-sharpening from another clip) and thr (copy pixels close to the blurred value) parameters are not offered in Hybrid.

See also: Vapoursynth Vinverse, Vinverse2

Sources