ivtc ¶
Functions:
-
jivtc
–This function should only be used when a normal ivtc or ivtc + bobber leaves chroma blend to every fourth frame.
-
sivtc
–Simplest form of a fieldmatching function.
-
vdecimate
–Perform frame decimation using VDecimate.
-
vfm
–Perform field matching using VFM.
jivtc ¶
jivtc(
clip: VideoNode,
pattern: int,
tff: FieldBasedLike | bool | None = None,
chroma_only: bool = True,
postprocess: VSFunctionKwArgs[VideoNode, VideoNode] = deblend,
postdecimate: IVTCycles | None = CYCLE_05,
ivtc_cycle: IVTCycles = CYCLE_10,
final_ivtc_cycle: IVTCycles = CYCLE_08,
**kwargs: Any
) -> ConstantFormatVideoNode
This function should only be used when a normal ivtc or ivtc + bobber leaves chroma blend to every fourth frame. You can disable chroma_only to use it for luma as well, but it is not recommended.
Parameters:
-
clip
¶VideoNode
) –Clip to process. Has to be 60i.
-
pattern
¶int
) –First frame of any clean-combed-combed-clean-clean sequence.
-
tff
¶FieldBasedLike | bool | None
, default:None
) –Set top field first (True) or bottom field first (False).
-
chroma_only
¶bool
, default:True
) –Decide whether luma too will be processed.
-
postprocess
¶VSFunctionKwArgs[VideoNode, VideoNode]
, default:deblend
) –Function to run after second decimation. Should be either a bobber or a deblender.
-
postdecimate
¶IVTCycles | None
, default:CYCLE_05
) –If the postprocess function doesn't decimate itself, put True.
Returns:
-
ConstantFormatVideoNode
–Inverse Telecined clip.
Source code in vsdeinterlace/ivtc.py
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 |
|
sivtc ¶
sivtc(
clip: VideoNode,
pattern: int = 0,
tff: FieldBasedLike | bool | None = None,
ivtc_cycle: IVTCycles = CYCLE_10,
) -> ConstantFormatVideoNode
Simplest form of a fieldmatching function.
This is essentially a stripped-down JIVTC offering JUST the basic fieldmatching and decimation part. As such, you may need to combine multiple instances if patterns change throughout the clip.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
pattern
¶int
, default:0
) –First frame of any clean-combed-combed-clean-clean sequence.
-
tff
¶FieldBasedLike | bool | None
, default:None
) –Top-Field-First.
Returns:
-
ConstantFormatVideoNode
–IVTC'd clip.
Source code in vsdeinterlace/ivtc.py
25 26 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 |
|
vdecimate ¶
Perform frame decimation using VDecimate.
This function uses VIVTC's VDecimate plugin to remove duplicate frames from telecined content. It's recommended to use the vfm function before running this.
Parameters:
-
clip
¶VideoNode
) –Input clip to decimate.
-
weight
¶float
, default:0.0
) –Weight for frame blending. If > 0, blends duplicate frames before dropping one. Default: 0.0 (frames are dropped, not blended).
-
**kwargs
¶Any
, default:{}
) –Additional keyword arguments to pass to VDecimate. For a list of parameters, see the VIVTC documentation.
Returns:
-
ConstantFormatVideoNode
–Decimated clip with duplicate frames removed or blended.
Source code in vsdeinterlace/ivtc.py
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 |
|
vfm ¶
vfm(
clip: VideoNode,
tff: FieldBasedLike | bool | None = None,
mode: VFMMode = TWO_WAY_MATCH_THIRD_COMBED,
postprocess: (
VideoNode | VSFunctionNoArgs[VideoNode, VideoNode] | None
) = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Perform field matching using VFM.
This function uses VIVTC's VFM plugin to detect and match pairs of fields in telecined content.
You can pass a post-processing clip or function that will act on leftover combed frames. If you pass a clip, it will replace combed frames with that clip. If you pass a function, it will run that function on your input clip and replace combed frames with it.
Example usage:
# Run vsaa.NNEDI3 on combed frames
vfm(clip, postprocess=NNEDI3().deinterlace)
Parameters:
-
clip
¶VideoNode
) –Input clip to field matching telecine on.
-
tff
¶FieldBasedLike | bool | None
, default:None
) –Field order of the input clip. If None, it will be automatically detected.
-
mode
¶VFMMode
, default:TWO_WAY_MATCH_THIRD_COMBED
) –VFM matching mode. For more information, see VFMMode. Default: VFMMode.TWO_WAY_MATCH_THIRD_COMBED.
-
postprocess
¶VideoNode | VSFunctionNoArgs[VideoNode, VideoNode] | None
, default:None
) –Optional function or clip to process combed frames. If a function is passed, it should take a clip as input and return a clip as output. If a clip is passed, it will be used as the postprocessed clip.
-
**kwargs
¶Any
, default:{}
) –Additional keyword arguments to pass to VFM. For a list of parameters, see the VIVTC documentation.
Returns:
-
ConstantFormatVideoNode
–Field matched clip with progressive frames.
Source code in vsdeinterlace/ivtc.py
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 151 152 153 154 155 156 157 158 159 160 161 162 163 |
|