enums ¶
   FlowMode ¶
  Bases: CustomIntEnum
Controls how motion vectors are applied to pixels.
  MVToolsPlugin ¶
  Bases: CustomIntEnum
Abstraction around both mvtools plugin versions.
  BlockFPS  property  ¶
 BlockFPS: VSFunctionAllArgs
Get the BlockFPS function for block-based frame rate conversion.
  Compensate  property  ¶
 Compensate: VSFunctionAllArgs
Get the Compensate function for motion compensation.
  FLOAT  class-attribute instance-attribute  ¶
 FLOAT = 1
Fork by IFeelBloated. Only works with float single precision clips.
  FlowBlur  property  ¶
 FlowBlur: VSFunctionAllArgs
Get the FlowBlur function for motion-compensated frame blending.
  FlowFPS  property  ¶
 FlowFPS: VSFunctionAllArgs
Get the FlowFPS function for motion-compensated frame rate conversion.
  FlowInter  property  ¶
 FlowInter: VSFunctionAllArgs
Get the FlowInter function for motion-compensated frame interpolation.
  INTEGER  class-attribute instance-attribute  ¶
 INTEGER = 0
Original plugin. Only accepts integer 8-16 bits clips.
  Recalculate  property  ¶
 Recalculate: VSFunctionAllArgs
Get the Recalculate function for refining motion vectors.
  SCDetection  property  ¶
 SCDetection: VSFunctionAllArgs
Get the SCDetection function for scene change detection.
  Degrain ¶
 Degrain(tr: int | None = None) -> VSFunctionAllArgs
Get the Degrain function for motion vector denoising.
Source code
104 105 106 107 108 109 110 111 112 113  |  | 
  from_video  classmethod  ¶
 from_video(clip: VideoNode) -> MVToolsPlugin
Automatically select the appropriate plugin based on the given clip.
Parameters:
-  
(clip¶VideoNode) –The clip to process.
 
Returns:
-  
MVToolsPlugin–The accompanying MVTools plugin for the clip.
 
Source code
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143  |  | 
  MaskMode ¶
  Bases: CustomIntEnum
Defines the type of analysis mask to generate.
  COLORMAP  class-attribute instance-attribute  ¶
 COLORMAP = 5
Creates a color visualization of motion vectors, mapping x/y components to U/V planes.
  HORIZONTAL  class-attribute instance-attribute  ¶
 HORIZONTAL = 3
Visualizes horizontal motion vector components. Values are in pixels + 128.
  MOTION  class-attribute instance-attribute  ¶
 MOTION = 0
Generates a mask based on motion vector magnitudes.
  OCCLUSION  class-attribute instance-attribute  ¶
 OCCLUSION = 2
Generates a mask highlighting areas where motion estimation fails due to occlusion.
  SAD  class-attribute instance-attribute  ¶
 SAD = 1
Generates a mask based on SAD (Sum of Absolute Differences) values.
  VERTICAL  class-attribute instance-attribute  ¶
 VERTICAL = 4
Visualizes vertical motion vector components. Values are in pixels + 128.
  MotionMode ¶
  Bases: CustomIntEnum
Controls how motion vectors are searched and selected.
Provides presets that configure multiple motion estimation parameters like lambda, LSAD threshold, and penalty values to optimize for either raw SAD scores or motion coherence.
  PenaltyMode ¶
  Bases: CustomIntEnum
Controls how motion estimation penalties scale with hierarchical levels.
  LINEAR  class-attribute instance-attribute  ¶
 LINEAR = 1
Penalties scale linearly with hierarchical level size.
  NONE  class-attribute instance-attribute  ¶
 NONE = 0
Penalties remain constant across all hierarchical levels.
  QUADRATIC  class-attribute instance-attribute  ¶
 QUADRATIC = 2
Penalties scale quadratically with hierarchical level size.
  RFilterMode ¶
  Bases: CustomIntEnum
Hierarchical levels smoothing and reducing (halving) filter.
  SADMode ¶
  Bases: CustomIntEnum
Specifies how block differences (SAD) are calculated between frames. Can use spatial data, DCT coefficients, SATD, or combinations to improve motion estimation.
  ADAPTIVE_SATD_DCT  class-attribute instance-attribute  ¶
 ADAPTIVE_SATD_DCT = 8
Like ADAPTIVE_SPATIAL_DCT but uses SATD instead of SAD.
  ADAPTIVE_SATD_LUMA  class-attribute instance-attribute  ¶
 ADAPTIVE_SATD_LUMA = 10
Adaptively use SATD weighted by SAD, but only when there are significant luma changes.
  ADAPTIVE_SATD_MIXED  class-attribute instance-attribute  ¶
 ADAPTIVE_SATD_MIXED = 7
Like ADAPTIVE_SPATIAL_MIXED but uses SATD instead of SAD.
  ADAPTIVE_SPATIAL_DCT  class-attribute instance-attribute  ¶
 ADAPTIVE_SPATIAL_DCT = 4
Adaptively choose between spatial data or DCT-weighted mixed mode for each block.
  ADAPTIVE_SPATIAL_MIXED  class-attribute instance-attribute  ¶
 ADAPTIVE_SPATIAL_MIXED = 3
Adaptively choose between spatial data or an equal mix of spatial and DCT data for each block.
  DCT  class-attribute instance-attribute  ¶
 DCT = 1
Calculate differences using DCT coefficients. Slower, especially for block sizes other than 8x8.
  MIXED_SADEQSATD_DCT  class-attribute instance-attribute  ¶
 MIXED_SADEQSATD_DCT = 9
Mix of SAD, SATD and DCT data. Weight varies from SAD-only to equal SAD/SATD mix.
  MIXED_SATD_DCT  class-attribute instance-attribute  ¶
 MIXED_SATD_DCT = 6
Like MIXED_SPATIAL_DCT but uses SATD instead of SAD.
  MIXED_SPATIAL_DCT  class-attribute instance-attribute  ¶
 MIXED_SPATIAL_DCT = 2
Use both spatial and DCT data, weighted based on the average luma difference between frames.
  SATD  class-attribute instance-attribute  ¶
 SATD = 5
Use Sum of Absolute Transformed Differences (SATD) instead of SAD for luma comparison.
  SPATIAL  class-attribute instance-attribute  ¶
 SPATIAL = 0
Calculate differences using raw pixel values in spatial domain.
  SearchMode ¶
  Bases: CustomIntEnum
Decides the type of search at every level.
  DIAMOND  class-attribute instance-attribute  ¶
 DIAMOND = 2
Logarithmic search, also named Diamond Search.
  EXHAUSTIVE  class-attribute instance-attribute  ¶
 EXHAUSTIVE = 3
Exhaustive search, square side is 2 * radius + 1. It's slow, but gives the best results SAD-wise.
  EXHAUSTIVE_H  class-attribute instance-attribute  ¶
 EXHAUSTIVE_H = 6
Pure horizontal exhaustive search, width is 2 * radius + 1.
  EXHAUSTIVE_V  class-attribute instance-attribute  ¶
 EXHAUSTIVE_V = 7
Pure vertical exhaustive search, height is 2 * radius + 1.
  SharpMode ¶
  Bases: CustomIntEnum
Subpixel interpolation method for pel = 2 or 4.
This enum controls the calculation of the first level only. If pel=4, bilinear interpolation is always used to compute the second level.
  WIENER  class-attribute instance-attribute  ¶
 WIENER = 2
Sharper Wiener interpolation (6-tap, similar to Lanczos).