freqs ¶
Functions:
-
frequency_merge
–Merges the frequency components of the input clips.
frequency_merge ¶
frequency_merge(
*_clips: VideoNode
| tuple[
VideoNode,
VSFunctionNoArgs[VideoNode, VideoNode]
| VSFunctionKwArgs[VideoNode, VideoNode]
| None,
],
mode_high: MeanMode | VideoNode = LEHMER,
mode_low: MeanMode | VideoNode = ARITHMETIC,
lowpass: None = None,
planes: Planes = None,
**kwargs: Any
) -> VideoNode
frequency_merge(
*_clips: VideoNode,
mode_high: MeanMode | VideoNode = LEHMER,
mode_low: MeanMode | VideoNode = ARITHMETIC,
lowpass: (
VSFunctionNoArgs[VideoNode, VideoNode]
| VSFunctionKwArgs[VideoNode, VideoNode]
),
planes: Planes = None,
**kwargs: Any
) -> VideoNode
frequency_merge(
*_clips: VideoNode
| tuple[
VideoNode,
VSFunctionNoArgs[VideoNode, VideoNode]
| VSFunctionKwArgs[VideoNode, VideoNode]
| None,
],
mode_high: MeanMode | VideoNode = LEHMER,
mode_low: MeanMode | VideoNode = ARITHMETIC,
lowpass: (
VSFunctionNoArgs[VideoNode, VideoNode]
| VSFunctionKwArgs[VideoNode, VideoNode]
| None
) = None,
planes: Planes = None,
**kwargs: Any
) -> VideoNode
Merges the frequency components of the input clips.
Example:
-
Replacing the high-frequency details of a Blu-ray source with the sharper components from a web stream:
delowpass = frequency_merge( bluray_src, (web_src, lambda clip: Lanczos(taps=4).scale(clip, blur=4 / 3, force=True)), mode_high=web_src, mode_low=bluray_src, )
-
Lehmer merging 34 sources (stop doing that please)
merged = frequency_merge(*clips, lowpass=lambda clip: DFTTest().denoise(clip, ...))
Parameters:
-
*_clips
¶VideoNode | tuple[VideoNode, VSFunctionNoArgs[VideoNode, VideoNode] | VSFunctionKwArgs[VideoNode, VideoNode] | None]
, default:()
) –A variable number of tuples, each containing a clip and an optional lowpass filter function. The lowpass function can either be a standard function or one that supports per-plane filtering.
-
mode_high
¶MeanMode | VideoNode
, default:LEHMER
) –The mean mode to use for the high frequency components or specifying the clip with the high frequency components. If a clip is passed, it must be one of the clips provided in
_clips
. Defaults toMeanMode.LEHMER
. -
mode_low
¶MeanMode | VideoNode
, default:ARITHMETIC
) –The mean mode to use for the low frequency components or specifying the clip with the low frequency components. If a clip is passed, it must be one of the clips provided in
_clips
. Defaults toMeanMode.ARITHMETIC
. -
lowpass
¶VSFunctionNoArgs[VideoNode, VideoNode] | VSFunctionKwArgs[VideoNode, VideoNode] | None
, default:None
) –A global lowpass function applied to all provided clips. If set,
_clips
must consist solely of VideoNodes. -
planes
¶Planes
, default:None
) –Planes to process. If specified, this will be passed to the lowpass functions. If None, it won't be included. Defaults to None.
-
**kwargs
¶Any
, default:{}
) –Additional keyword arguments passed to the lowpass functions.
Returns:
-
VideoNode
–A clip representing the merged output of the frequency-separated clips.
Source code in vsdenoise/freqs.py
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 151 152 153 154 |
|