funcs ¶
Classes:
Functions:
-
vinverse
–A simple but effective script to remove residual combing. Based on an AviSynth script by Didée.
FixInterlacedFades ¶
Bases: CustomEnum
Methods:
-
__call__
–Give a mathematically perfect solution to decombing fades made after telecine
Attributes:
__call__ ¶
__call__(
clip: VideoNode,
colors: float | list[float] | PlanesT = 0.0,
planes: PlanesT = None,
func: FuncExceptT | None = None,
) -> VideoNode
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.
-
colors
¶float | list[float] | PlanesT
, default:0.0
) –Fade source/target color (floating-point plane averages).
Returns:
-
VideoNode
–Clip with fades to/from
colors
accurately deinterlaced. Frames that don't contain such fades may be damaged.
Source code
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 206 207 208 209 210 211 212 213 214 215 216 |
|
telop_resample ¶
Bases: CustomIntEnum
Methods:
-
__call__
–Virtually oversamples the video to 120 fps with motion interpolation on credits only, and decimates to 24 fps.
Attributes:
__call__ ¶
__call__(bobbed_clip: VideoNode, pattern: int, **mv_args: Any) -> VideoNode
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:
-
bobbed_clip
¶VideoNode
) –Bobbed clip. Framerate must be 60000/1001.
-
pattern
¶int
) –First frame in the pattern.
-
mv_args
¶Any
, default:{}
) –Arguments to pass on to MVTools, used for motion compensation.
Returns:
-
VideoNode
–Decimated clip with text resampled down to 24p.
Raises:
-
InvalidFramerateError
–Bobbed clip does not have a framerate of 60000/1001 (59.94)
Source code
27 28 29 30 31 32 33 34 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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
vinverse ¶
vinverse(
clip: VideoNode,
comb_blur: GenericVSFunction | VideoNode = partial(sbr, mode=VERTICAL),
contra_blur: GenericVSFunction | 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,
) -> VideoNode
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
¶GenericVSFunction | VideoNode
, default:partial(sbr, mode=VERTICAL)
) –Filter used to remove combing.
-
contra_blur
¶GenericVSFunction | 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
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 262 263 264 265 |
|