This can be used to combine to captures of different broadcasts for reducing noise. The audio and framerate/framecount are taken from the first clip. With a higher threshold the operation is more likely, so with threshold=255 it's the same as "add", with threshold=0 the base_clip is more likely passed unchanged, depending on the difference between base_clip and overlay_clip.ĭarken: the same as "lighten", but it is performed only when the result is DARKER than the base. Performs the same operation as "add", but only when the result is BRIGHTER than the base the new values is used. the same Luminance as Base but with the colors of Overlay The base_clip is colored as overlay_clip, so use_chroma should be TRUE.Īlpha=255 -> approx. These operators seem to work correctly only in YUY2: Subtract: the same as add, but the overlay_clip is inverted before. The difference between base_clip and overlay_clip is multiplied with alpha and added to the base_clip.Īlpha=128 -> base and overlay equally blended, The result is simply the average of base_clip and overlay_clip.Īdd: threshold is not used. These operators behave equally for RGB32 or YUY2:įast: use_chroma must be TRUE, level and threshold is not used.
This means for full strength of operation BOTH alpha and level have to be 255.
Op: the performed merge operation, which can be: "add", "subtract", "lighten", "darken", "fast", "mul" Overlay_clip: the clip which is merged onto clip.
This filter can overlay two clips of different sizes (but with the same color format) using different operation modes.įor pixel-wise transparency information the 4th color channel of RGB32 (A- or alpha-channel) is used as a mask.īase_clip: the underlying clip which determines the size and all other video and audio properties of the result. Layer(clip base_clip, clip overlay_clip, string op, int level, int x, int y, int threshold, bool use_chroma)