Merge
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (formatting, links, phrasing) |
Raffriff42 (Talk | contribs) m (one more touch-up) |
||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
− | + | == Usage == | |
{{FuncDefH4|Merge}} | {{FuncDefH4|Merge}} | ||
{{FuncDef | {{FuncDef | ||
Line 71: | Line 71: | ||
== Examples == | == Examples == | ||
− | <div {{BoxWidthIndent| | + | <div {{BoxWidthIndent|46|0}} > |
# Blur the Luma channel. | # Blur the Luma channel. | ||
[[DGDecode/MPEG2Source|MPEG2Source]]("main.d2v") | [[DGDecode/MPEG2Source|MPEG2Source]]("main.d2v") | ||
Line 78: | Line 78: | ||
</div> | </div> | ||
− | <div {{BoxWidthIndent| | + | <div {{BoxWidthIndent|46|0}} > |
# Do a spatial smooth on the chroma channel | # Do a spatial smooth on the chroma channel | ||
# that will be mixed 50/50 with the original image. | # that will be mixed 50/50 with the original image. | ||
Line 86: | Line 86: | ||
</div> | </div> | ||
− | <div {{BoxWidthIndent| | + | <div {{BoxWidthIndent|46|0}} > |
# Run a temporal smoother and a soft spatial | # Run a temporal smoother and a soft spatial | ||
# smoother on the luma channel, and a more aggressive | # smoother on the luma channel, and a more aggressive | ||
Line 101: | Line 101: | ||
</div> | </div> | ||
− | <div {{BoxWidthIndent| | + | <div {{BoxWidthIndent|46|0}} > |
# Average two video sources. | # Average two video sources. | ||
vid1 = [[AviSource]]("main.avi") | vid1 = [[AviSource]]("main.avi") | ||
Line 107: | Line 107: | ||
Merge(vid1, vid2) | Merge(vid1, vid2) | ||
</div> | </div> | ||
+ | |||
== Changelog == | == Changelog == |
Revision as of 04:53, 24 January 2016
Contents |
Usage
Merge(clip clip1, clip clip2 [, float weight ] )
Merge (blend) one video clip into another.
- clip clip1 = (required)
- clip clip2 = (required)
- Base clip, overlay clip.
- float weight = 0.5
- Strength of effect. Range is 0.0–1.0.
- At 0.0, clip2 has no influence on the output.
- At 1.0, clip2 replaces clip1 completely.
- Default is 0.5; output is average of clip1 and clip2.
- Strength of effect. Range is 0.0–1.0.
- Clips must be in the same colorspace.
- Audio, FrameRate and FrameCount are taken from the first clip.
MergeChroma(clip clip1, clip clip2 [, float chromaweight ] )
MergeChroma(clip clip1, clip clip2 [, float weight ] ) (*v2.60 only)
Merge chroma from one video clip into another.
- clip clip1 = (required)
- clip clip2 = (required)
- Base clip, chroma overlay clip.
- float chromaweight = 1.0
- float weight = 1.0
- Strength of effect. Range is 0.0–1.0.
- At 0.0, clip2 has no influence on the output.
- At 1.0, clip2 replaces clip1 chroma completely.
- Default is 1.0; output chroma taken only from clip2.
- Alternate name weight added in AviSynth v2.60
- Strength of effect. Range is 0.0–1.0.
- Clips must be in the same colorspace and YUV only.
- Audio, FrameRate and FrameCount are taken from the first clip.
MergeLuma(clip clip1, clip clip2 [, float lumaweight ] )
MergeLuma(clip clip1, clip clip2 [, float weight ] ) (*v2.60 only)
Merge luma from one video clip into another.
- clip clip1 = (required)
- clip clip2 = (required)
- Base clip, luma overlay clip.
- float lumaweight = 1.0
- float weight = 1.0
- Strength of effect. Range is 0.0–1.0.
- At 0.0, clip2 has no influence on the output.
- At 1.0, clip2 replaces clip1 luma completely.
- Default is 1.0; output luma taken only from clip2.
- Alternate name weight added in AviSynth v2.60
- Strength of effect. Range is 0.0–1.0.
- Clips must be in the same colorspace and YUV only.
- Audio, FrameRate and FrameCount are taken from the first clip.
Examples
# Blur the Luma channel. MPEG2Source("main.d2v") clipY = Blur(1.0) MergeLuma(clipY )
# Do a spatial smooth on the chroma channel # that will be mixed 50/50 with the original image. MPEG2Source("main.d2v") clipC = SpatialSoften(2,3) MergeChroma(clipC , 0.5)
# Run a temporal smoother and a soft spatial # smoother on the luma channel, and a more aggressive # spatial smoother on the chroma channel. # The original luma channel is then added with the # smoothed version at 75%. The chroma channel is # fully replaced with the blurred version. MPEG2Source("main.d2v") clipY = TemporalSoften(2,3) \ .SpatialSoften(3,10,10) clipC = SpatialSoften(3,40,40) MergeLuma(clipY, 0.75) MergeChroma(clipC)
# Average two video sources. vid1 = AviSource("main.avi") vid2 = AviSource("main2.avi") Merge(vid1, vid2)
Changelog
v2.60 | Added alias weight for chromaweight and lumaweight. |
v2.56 | Added Merge. |