Vapoursynth Vinverse

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

Vinverse removes residual combing – the thin horizontal stripes a deinterlacer or field matcher leaves behind – by blurring vertically and re-sharpening only where that does not bring the combing back.

Filtering → Vapoursynth → Frame → Misc

Vinverse controls in Hybrid
Vinverse controls in Hybrid

What it does

The frame is blurred vertically, then the detail lost by the blur is partly added back (contra-sharpening). The detail that is added back is limited in sign and size by what the blur removed, so the combing does not return. Max change limits how much any pixel may change. Vinverse works on progressive frames; Vinverse2 is a variant that keeps more vertical detail.

Settings

Control Parameter Range / values Hybrid default Meaning
Strength sstr 0 – 100 (step 0.01) 2.7 Strength of the contra-sharpening.
Max change amnt 1 – 255 255 Largest change of any pixel (8-bit scale); 255 = unlimited.
Chroma chroma on/off on Also processes the chroma planes; off = chroma is copied.
Tools: Vinverse – vinverse, std – vinverse = the plugin, std = a script version built from Expr.
Tools: Expr – akarin, cranexpr, std – Expr implementation (script version).

Example

Default settings on a 10-bit YUV 4:2:0 source (640x356):

clip = residual.Vinverse(clip, tools={'expr': 'akarin', 'vinverse': 'vinverse'})

How Hybrid calls it

  • Vinverse works on 8–16-bit integer YUV; other formats are converted first.
  • Max change stays on the 8-bit scale and is scaled to the bit depth of the clip, for the plugin and the script version alike.
  • Options are only written when they differ from the defaults.
  • Frame count and frame rate do not change.

Background

Origin

Vinverse is Didée's AviSynth script; tritical wrote the plugin, which Asd-g maintains for AviSynth and VapourSynth. The plugin also has a blur scale (scl, default 0.25), a threshold and an optional second clip, which Hybrid does not offer.

Sources