Vapoursynth Vinverse2

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

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

Filtering → Vapoursynth → Frame → Misc

Vinverse2 controls in Hybrid
Vinverse2 controls in Hybrid

What it does

Like Vinverse it blurs vertically and adds detail back only where that does not reintroduce combing. Instead of a plain vertical blur it uses a vertical sbrV blur, which leaves strong detail alone, and a lighter [1,2,1] sharpening kernel. Max change limits how much any pixel may change. Vinverse2 works on progressive frames.

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's vinverse2, 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.Vinverse2(clip, tools={'expr': 'akarin', 'vinverse': 'vinverse'})

How Hybrid calls it

  • Vinverse2 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

Plugin

The vinverse plugin contains a fast implementation of Vinverse2; it also has a blur scale (scl, default 0.25), which Hybrid does not offer.

Sources