Skip to content

enums

Classes:

  • BackBlendMode

    When to back blend (blurred) difference between pre & post sharpened clip.

  • IVTCycles
  • InputType

    Processing routine to use for the input.

  • LosslessMode

    When to put exact source fields into result & clean any artefacts.

  • NoiseDeintMode

    When noise is taken from interlaced source, how to 'deinterlace' it before restoring.

  • NoiseProcessMode

    How to handle processing noise in the source.

  • SearchPostProcess

    Prefiltering to apply in order to assist with motion search.

  • SharpLimitMode

    How to limit and when to apply re-sharpening of the clip.

  • SharpMode

    How to re-sharpen the clip after temporally blurring.

  • SourceMatchMode

    Creates higher fidelity output with extra processing. will capture more source detail and reduce oversharpening / haloing.

  • VFMMode

    Enum representing different matching modes for VFM.

BackBlendMode

Bases: CustomIntEnum

When to back blend (blurred) difference between pre & post sharpened clip.

Attributes:

  • BOTH

    Perform back-blending both before and after sharpness limiting.

  • NONE

    No back-blending.

  • POSTLIMIT

    Perform back-blending after sharpness limiting.

  • PRELIMIT

    Perform back-blending prior to sharpness limiting.

BOTH class-attribute instance-attribute

BOTH = 3

Perform back-blending both before and after sharpness limiting.

NONE class-attribute instance-attribute

NONE = 0

No back-blending.

POSTLIMIT class-attribute instance-attribute

POSTLIMIT = 2

Perform back-blending after sharpness limiting.

PRELIMIT class-attribute instance-attribute

PRELIMIT = 1

Perform back-blending prior to sharpness limiting.

IVTCycles

Bases: list[int], CustomEnum

Methods:

Attributes:

cycle_05 class-attribute instance-attribute

cycle_05 = [
    [0, 1, 3, 4],
    [0, 1, 2, 4],
    [0, 1, 2, 3],
    [1, 2, 3, 4],
    [0, 2, 3, 4],
]

cycle_08 class-attribute instance-attribute

cycle_08 = [
    [0, 3, 4, 6],
    [0, 2, 5, 6],
    [0, 2, 4, 7],
    [0, 2, 4, 7],
    [1, 2, 4, 6],
]

cycle_10 class-attribute instance-attribute

cycle_10 = [
    [0, 3, 6, 8],
    [0, 2, 5, 8],
    [0, 2, 4, 7],
    [2, 4, 6, 9],
    [1, 4, 6, 8],
]

length property

length: int

pattern_length property

pattern_length: int

decimate

decimate(clip: VideoNode, pattern: int = 0) -> VideoNode
Source code
63
64
65
def decimate(self, clip: vs.VideoNode, pattern: int = 0) -> vs.VideoNode:
    assert 0 <= pattern < self.length
    return clip.std.SelectEvery(self.pattern_length, self.value[pattern])

InputType

Bases: CustomIntEnum

Processing routine to use for the input.

Attributes:

  • INTERLACE

    Deinterlace interlaced input.

  • PROGRESSIVE

    Deshimmer general progressive material that contains less severe problems.

  • REPAIR

    Repair badly deinterlaced material with considerable horizontal artefacts.

INTERLACE class-attribute instance-attribute

INTERLACE = 0

Deinterlace interlaced input.

PROGRESSIVE class-attribute instance-attribute

PROGRESSIVE = 1

Deshimmer general progressive material that contains less severe problems.

REPAIR class-attribute instance-attribute

REPAIR = 2

Repair badly deinterlaced material with considerable horizontal artefacts.

LosslessMode

Bases: CustomIntEnum

When to put exact source fields into result & clean any artefacts.

Attributes:

  • NONE

    Do not restore source fields.

  • POSTSMOOTH

    Restore source fields after final temporal smooth. True lossless but less stable.

  • PRESHARPEN

    Restore source fields prior to re-sharpening. Not exactly lossless.

NONE class-attribute instance-attribute

NONE = 0

Do not restore source fields.

POSTSMOOTH class-attribute instance-attribute

POSTSMOOTH = 2

Restore source fields after final temporal smooth. True lossless but less stable.

PRESHARPEN class-attribute instance-attribute

PRESHARPEN = 1

Restore source fields prior to re-sharpening. Not exactly lossless.

NoiseDeintMode

Bases: CustomIntEnum

When noise is taken from interlaced source, how to 'deinterlace' it before restoring.

Attributes:

  • BOB

    Bob source noise, results in coarse noise.

  • GENERATE

    Gnerates fresh noise lines.

  • WEAVE

    Double weave source noise, lags behind by one frame.

BOB class-attribute instance-attribute

BOB = 1

Bob source noise, results in coarse noise.

GENERATE class-attribute instance-attribute

GENERATE = 2

Gnerates fresh noise lines.

WEAVE class-attribute instance-attribute

WEAVE = 0

Double weave source noise, lags behind by one frame.

NoiseProcessMode

Bases: CustomIntEnum

How to handle processing noise in the source.

Attributes:

  • DENOISE

    Denoise source & optionally restore some noise back at the end of basic or final stages.

  • IDENTIFY

    Identify noise only & optionally restore some noise back at the end of basic or final stages.

  • NONE

    No noise processing.

DENOISE class-attribute instance-attribute

DENOISE = 1

Denoise source & optionally restore some noise back at the end of basic or final stages.

IDENTIFY class-attribute instance-attribute

IDENTIFY = 2

Identify noise only & optionally restore some noise back at the end of basic or final stages.

NONE class-attribute instance-attribute

NONE = 0

No noise processing.

SearchPostProcess

Bases: CustomIntEnum

Prefiltering to apply in order to assist with motion search.

Attributes:

GAUSSBLUR class-attribute instance-attribute

GAUSSBLUR = 1

Gaussian blur.

GAUSSBLUR_EDGESOFTEN class-attribute instance-attribute

GAUSSBLUR_EDGESOFTEN = 2

Gaussian blur & edge softening.

NONE class-attribute instance-attribute

NONE = 0

No post-processing.

SharpLimitMode

Bases: CustomIntEnum

How to limit and when to apply re-sharpening of the clip.

Attributes:

NONE class-attribute instance-attribute

NONE = 0

No sharpness limiting.

SPATIAL_POSTSMOOTH class-attribute instance-attribute

SPATIAL_POSTSMOOTH = 3

Spatial sharpness limiting after the final stage.

SPATIAL_PRESMOOTH class-attribute instance-attribute

SPATIAL_PRESMOOTH = 1

Spatial sharpness limiting prior to final stage.

TEMPORAL_POSTSMOOTH class-attribute instance-attribute

TEMPORAL_POSTSMOOTH = 4

Temporal sharpness limiting after the final stage.

TEMPORAL_PRESMOOTH class-attribute instance-attribute

TEMPORAL_PRESMOOTH = 2

Temporal sharpness limiting prior to final stage.

SharpMode

Bases: CustomIntEnum

How to re-sharpen the clip after temporally blurring.

Attributes:

  • NONE

    No re-sharpening.

  • UNSHARP

    Re-sharpening using unsharpening.

  • UNSHARP_MINMAX

    Re-sharpening using unsharpening clamped to the local 3x3 min/max average.

NONE class-attribute instance-attribute

NONE = 0

No re-sharpening.

UNSHARP class-attribute instance-attribute

UNSHARP = 1

Re-sharpening using unsharpening.

UNSHARP_MINMAX class-attribute instance-attribute

UNSHARP_MINMAX = 2

Re-sharpening using unsharpening clamped to the local 3x3 min/max average.

SourceMatchMode

Bases: CustomIntEnum

Creates higher fidelity output with extra processing. will capture more source detail and reduce oversharpening / haloing.

Attributes:

  • BASIC

    Conservative halfway stage that rarely introduces artefacts.

  • NONE

    No source match processing.

  • REFINED

    Restores almost exact source detail but is sensitive to noise & can introduce occasional aliasing.

  • TWICE_REFINED

    Restores almost exact source detail.

BASIC class-attribute instance-attribute

BASIC = 1

Conservative halfway stage that rarely introduces artefacts.

NONE class-attribute instance-attribute

NONE = 0

No source match processing.

REFINED class-attribute instance-attribute

REFINED = 2

Restores almost exact source detail but is sensitive to noise & can introduce occasional aliasing.

TWICE_REFINED class-attribute instance-attribute

TWICE_REFINED = 3

Restores almost exact source detail.

VFMMode

Bases: CustomIntEnum

Enum representing different matching modes for VFM.

The mode determines the strategy used for matching fields and frames. Higher modes generally offer better matching in complex scenarios but may introduce more risk of jerkiness or duplicate frames.

Attributes:

THREE_WAY_MATCH class-attribute instance-attribute

THREE_WAY_MATCH = 4

3-way match (p/c/n).

THREE_WAY_MATCH_FOURTH_FIFTH class-attribute instance-attribute

THREE_WAY_MATCH_FOURTH_FIFTH = 5

3-way match + 4th/5th matches on combed (p/c/n + u/b). Highest risk of jerkiness but best at finding good matches.

TWO_WAY_MATCH class-attribute instance-attribute

TWO_WAY_MATCH = 0

2-way match (p/c). Safest option, but may output combed frames in cases of bad edits or blended fields.

TWO_WAY_MATCH_THIRD_COMBED class-attribute instance-attribute

TWO_WAY_MATCH_THIRD_COMBED = 1

2-way match + 3rd match on combed (p/c + n). Default mode.

TWO_WAY_MATCH_THIRD_FOURTH_FIFTH class-attribute instance-attribute

TWO_WAY_MATCH_THIRD_FOURTH_FIFTH = 3

2-way match + 3rd match on combed + 4th/5th matches if still combed (p/c + n + u/b).

TWO_WAY_MATCH_THIRD_SAME_ORDER class-attribute instance-attribute

TWO_WAY_MATCH_THIRD_SAME_ORDER = 2

2-way match + 3rd match (same order) on combed (p/c + u).