Dissolve

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (added category)
(add link to avs+ documentation)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
<div {{BlueBox2|40|0|3px solid purple}} >
 +
{{AvsPlusFullname}}<br>
 +
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/dissolve.html https://avisynthplus.readthedocs.io]
 +
</div>
 +
 +
 
{{Template:FuncDef|Dissolve(clip ''clip1'', clip ''clip2'' [,...], int ''overlap'' [, float ''fps''])}}
 
{{Template:FuncDef|Dissolve(clip ''clip1'', clip ''clip2'' [,...], int ''overlap'' [, float ''fps''])}}
  
Line 11: Line 17:
  
 
   #load sources
 
   #load sources
   a = [[AVISource]]("clipA.avi")
+
   a = [[AviSource|AVISource]]("clipA.avi")
   b = [[AVISource]]("clipB.avi")
+
   b = [[AviSource|AVISource]]("clipB.avi")
 
    
 
    
 
   #30 frame Dissolve between clipA & clipB; last & clipA; last & clipB
 
   #30 frame Dissolve between clipA & clipB; last & clipA; last & clipB

Latest revision as of 06:36, 18 September 2022

AviSynth+
Up-to-date documentation: https://avisynthplus.readthedocs.io


Dissolve(clip clip1, clip clip2 [,...], int overlap [, float fps])

Dissolve is like AlignedSplice, except that the clips are combined with some overlap. The last overlap frames of the first video stream are blended progressively with the first overlap frames of the second video stream so that the streams fade into each other. The audio streams are blended similarly.

The fps parameter is optional, default=24.0, and provides a reference for overlap in audio only clips. It is ignored if a video stream is present. Set fps=AudioRate() if sample exact audio positioning is required.

The term "dissolve" is sometimes used for a different effect in which the transition is pointwise rather than graduated. This filter won't do that.


Example:

 #load sources
 a = AVISource("clipA.avi")
 b = AVISource("clipB.avi")
 
 #30 frame Dissolve between clipA & clipB; last & clipA; last & clipB
 #Resulting output: clipA (Dissolve) clipB (Dissolve) clipA (Dissolve) clipB.
 Dissolve(a, b, 30) 
 Dissolve(last, a, 30)
 Dissolve(last, b, 30)

See filters with multiple input clips for the resulting clip properties.

Changes:

v2.56 Added fps parameter.
Personal tools