funcs ¶
Classes:
Functions:
-
vinverse
–A simple but effective script to remove residual combing. Based on an AviSynth script by Didée.
FixInterlacedFades ¶
Bases: CustomIntEnum
Methods:
-
__call__
–Give a mathematically perfect solution to decombing fades made after telecine
Attributes:
__call__ ¶
__call__(
clip: VideoNode,
color: float | Sequence[float] = 0.0,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
Give a mathematically perfect solution to decombing fades made after telecine (which made perfect IVTC impossible) that start or end in a solid color.
Steps between the frames are not adjusted, so they will remain uneven depending on the telecine pattern, but the decombing is blur-free, ensuring minimum information loss. However, this may cause small amounts of combing to remain due to error amplification, especially near the solid-color end of the fade.
This is an improved version of the Fix-Telecined-Fades plugin.
Make sure to run this after IVTC!
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
color
¶float | Sequence[float]
, default:0.0
) –Fade source/target color (floating-point plane averages). Accepts a single float or a sequence of floats to control the color per plane.
Returns:
-
ConstantFormatVideoNode
–Clip with fades to/from
color
accurately deinterlaced. Frames that don't contain such fades may be damaged.
Source code
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
|
InterpolateOverlay ¶
Bases: CustomIntEnum
Methods:
-
__call__
–Virtually oversamples the video to 120 fps with motion interpolation on credits only, and decimates to 24 fps.
Attributes:
-
DEC_TXT60
–For 60i overlaid ontop 24d.
-
IVTC_TXT30
–For 30p overlaid ontop 24t.
-
IVTC_TXT60
–For 60i overlaid ontop 24t.
__call__ ¶
__call__(
clip: VideoNode,
bobbed: VideoNode,
pattern: int,
preset: MVToolsPreset = HQ_COHERENCE,
blksize: int | tuple[int, int] = 8,
refine: int = 1,
thsad_recalc: int | None = None,
) -> ConstantFormatVideoNode
Virtually oversamples the video to 120 fps with motion interpolation on credits only, and decimates to 24 fps. Requires manually specifying the 3:2 pulldown pattern (the clip must be split into parts if it changes).
Parameters:
-
clip
¶VideoNode
) –Original interlaced clip.
-
bobbed
¶VideoNode
) –Bob-deinterlaced clip.
-
pattern
¶int
) –First frame of any clean-combed-combed-clean-clean sequence.
-
preset
¶MVToolsPreset
, default:HQ_COHERENCE
) –MVTools preset defining base values for the MVTools object. Default is HQ_COHERENCE.
-
blksize
¶int | tuple[int, int]
, default:8
) –Size of a block. Larger blocks are less sensitive to noise, are faster, but also less accurate.
-
refine
¶int
, default:1
) –Number of times to recalculate motion vectors with halved block size.
-
thsad_recalc
¶int | None
, default:None
) –Only bad quality new vectors with a SAD above this will be re-estimated by search. thsad value is scaled to 8x8 block size.
Returns:
-
ConstantFormatVideoNode
–Decimated clip with text resampled down to 24p.
Source code
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
vinverse ¶
vinverse(
clip: VideoNode,
comb_blur: VSFunctionKwArgs[VideoNode, VideoNode] | VideoNode = partial(
sbr, mode=VERTICAL
),
contra_blur: VSFunctionKwArgs[VideoNode, VideoNode] | VideoNode = BINOMIAL(
mode=VERTICAL
),
contra_str: float = 2.7,
amnt: int | float | None = None,
scl: float = 0.25,
thr: int | float = 0,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
A simple but effective script to remove residual combing. Based on an AviSynth script by Didée.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
comb_blur
¶VSFunctionKwArgs[VideoNode, VideoNode] | VideoNode
, default:partial(sbr, mode=VERTICAL)
) –Filter used to remove combing.
-
contra_blur
¶VSFunctionKwArgs[VideoNode, VideoNode] | VideoNode
, default:BINOMIAL(mode=VERTICAL)
) –Filter used to calculate contra sharpening.
-
contra_str
¶float
, default:2.7
) –Strength of contra sharpening.
-
amnt
¶int | float | None
, default:None
) –Change no pixel by more than this in 8bit.
-
thr
¶int | float
, default:0
) –Skip processing if abs(clip - comb_blur(clip)) < thr
-
scl
¶float
, default:0.25
) –Scale factor for vshrpD * vblurD < 0.
Source code
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
|