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 -
ConstantFormatVideoNode
–damaged.
Source code
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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
|
InterpolateOverlay ¶
Bases: CustomEnum
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 on top of 24d.
-
IVTC_TXT30
–For 30p overlaid on top of 24t.
-
IVTC_TXT60
–For 60i overlaid on top of 24t.
DEC_TXT60 class-attribute
instance-attribute
¶
DEC_TXT60 = (10, (6, 4, 2, 0, 8))
For 60i overlaid on top of 24d.
IVTC_TXT30 class-attribute
instance-attribute
¶
IVTC_TXT30 = (9, (5, 13, 21, 29, 37))
For 30p overlaid on top of 24t.
IVTC_TXT60 class-attribute
instance-attribute
¶
IVTC_TXT60 = (10, (4, 2, 0, 8, 6))
For 60i overlaid on top of 24t.
__call__ ¶
__call__(
clip: VideoNode,
pattern: int,
vectors: MotionVectors | None = None,
preset: MVToolsPreset = HQ_COHERENCE,
blksize: int | tuple[int, int] = 8,
refine: int = 1,
thsad_recalc: int | None = None,
export_globals: Literal[False] = ...,
) -> ConstantFormatVideoNode
__call__(
clip: VideoNode,
pattern: int,
vectors: MotionVectors | None = None,
preset: MVToolsPreset = HQ_COHERENCE,
blksize: int | tuple[int, int] = 8,
refine: int = 1,
thsad_recalc: int | None = None,
export_globals: Literal[True] = ...,
) -> tuple[ConstantFormatVideoNode, MVTools]
__call__(
clip: VideoNode,
pattern: int,
vectors: MotionVectors | None = None,
preset: MVToolsPreset = HQ_COHERENCE,
blksize: int | tuple[int, int] = 8,
refine: int = 1,
thsad_recalc: int | None = None,
export_globals: bool = ...,
) -> ConstantFormatVideoNode | tuple[ConstantFormatVideoNode, MVTools]
__call__(
clip: VideoNode,
pattern: int,
vectors: MotionVectors | None = None,
preset: MVToolsPreset = HQ_COHERENCE,
blksize: int | tuple[int, int] = 8,
refine: int = 1,
thsad_recalc: int | None = None,
export_globals: bool = False,
) -> ConstantFormatVideoNode | tuple[ConstantFormatVideoNode, MVTools]
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
) –Bob-deinterlaced clip.
-
vectors
¶MotionVectors | None
, default:None
) –Motion vectors to use.
-
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.
-
export_globals
¶bool
, default:False
) –Whether to return the MVTools object.
Returns:
-
ConstantFormatVideoNode | tuple[ConstantFormatVideoNode, MVTools]
–Decimated clip with text resampled down to 24p.
Source code
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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
|
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
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 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 |
|