deblock ¶
Classes:
-
dpir
–
Functions:
-
deblock_qed
–A post-processed deblock. Uses full frequencies of Deblock's changes on block borders, but DCT-lowpassed changes on
-
dpir_mask
– -
mpeg2stinx
–This filter is designed to eliminate certain combing-like compression artifacts that show up all too often
dpir ¶
Bases: CustomStrEnum
Methods:
-
__call__
–Deep Plug-and-Play Image Restoration
Attributes:
__call__ ¶
__call__(
clip: VideoNode,
strength: _StrengthT | Sequence[_StrengthT] = 10,
zones: (
Sequence[tuple[FrameRangeN | FrameRangesN, _StrengthT]] | None
) = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Deep Plug-and-Play Image Restoration
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
strength
¶_StrengthT | Sequence[_StrengthT]
, default:10
) –Threshold (8-bit scale) strength for deblocking/denoising. This can be:
- A single value or VideoNode applied to all planes.
- A sequence of values VideoNodes to specify per-plane thresholds.
If a VideoNode is used, it must be in GRAY8, GRAYH, or GRAYS format, with pixel values representing the 8-bit thresholds.
-
zones
¶Sequence[tuple[FrameRangeN | FrameRangesN, _StrengthT]] | None
, default:None
) –Apply different strength in specified zones.
-
**kwargs
¶Any
, default:{}
) –Additional arguments to be passed to
vsscale.DPIR
.
Source code
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 |
|
deblock_qed ¶
deblock_qed(
clip: VideoNode,
quant: tuple[int | None, int | None] = (24, 26),
alpha: tuple[int | None, int | None] = (1, 1),
beta: tuple[int | None, int | None] = (2, 2),
chroma_mode: int = 0,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
A post-processed deblock. Uses full frequencies of Deblock's changes on block borders, but DCT-lowpassed changes on block interiors. Designed to provide 8x8 deblocking sensitive to the amount of blocking in the source, compared to other deblockers which apply a uniform deblocking across every frame.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
quant
¶tuple[int | None, int | None]
, default:(24, 26)
) –Strength of the deblocking. Tuple for (border, interior) values.
-
alpha
¶tuple[int | None, int | None]
, default:(1, 1)
) –Both a sensitivity and strength modifier. Tuple for (border, interior) values.
-
beta
¶tuple[int | None, int | None]
, default:(2, 2)
) –Sensitivity to detect blocking. Tuple for (border, interior) values.
-
chroma_mode
¶int
, default:0
) –Chroma deblocking behaviour.
- 0 = Use proposed method for chroma deblocking.
- 1 = Directly use chroma deblock from the normal deblock.
- 2 = Directly use chroma deblock from the strong deblock.
-
planes
¶PlanesT
, default:None
) –Planes to process.
Returns:
-
ConstantFormatVideoNode
–Deblocked clip
Source code
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 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 |
|
dpir_mask ¶
dpir_mask(
clip: VideoNode,
low: float = 5,
high: float = 10,
lines: float | None = None,
luma_scaling: float = 12,
linemask: GenericMaskT | bool = True,
relative: bool = False,
) -> VideoNode
Source code
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 |
|
mpeg2stinx ¶
mpeg2stinx(
clip: VideoNode,
bobber: Deinterlacer = NNEDI3(),
tff: bool = True,
mask: bool = True,
radius: int | tuple[int, int] = 2,
limit: float | None = 1.0,
) -> ConstantFormatVideoNode
This filter is designed to eliminate certain combing-like compression artifacts that show up all too often in hard-telecined MPEG-2 encodes, and works to a smaller extent on bitrate-starved hard-telecined AVC as well. General artifact removal is better accomplished with actual denoisers.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
tff
¶bool
, default:True
) –The field order.
-
mask
¶bool
, default:True
) –Whether to use BWDIF motion masking.
-
bobber
¶Deinterlacer
, default:NNEDI3()
) –Callable to use in place of the internal deinterlacing filter.
-
radius
¶int | tuple[int, int]
, default:2
) –x, y radius of min-max clipping (i.e. repair) to remove artifacts.
-
limit
¶float | None
, default:1.0
) –If specified, temporal limiting is used, where the changes by crossfieldrepair are limited to this times the difference between the current frame and its neighbours.
Returns:
-
ConstantFormatVideoNode
–Clip with cross-field noise reduced.
Source code
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 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
|