Interleave

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (added category:Debugging/Diagnostic_filters & sample script)
(add link to avs+ documentation)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
<div style="max-width:62em" >
 +
<div {{BlueBox2|40|0|3px solid purple}} >
 +
{{AvsPlusFullname}}<br>
 +
Up-to-date documentation: [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/interleave.html https://avisynthplus.readthedocs.io]
 +
</div>
 +
 +
 
{{Template:FuncDef|Interleave(clip1, clip2 [, ...])}}
 
{{Template:FuncDef|Interleave(clip1, clip2 [, ...])}}
  
Interleave interleaves frames from several clips on a frame-by-frame basis, so for example if you give three arguments, the first three frames of the output video are the first frames of the three source clips, the next three frames are the second frames of the source clips, and so on.  
+
''Interleaves'' frames from several clips on a frame-by-frame basis &ndash; for example if you give three arguments, the first three frames of the output video are the first frames of the three source clips, the next three frames are the second frames of the source clips, and so on.  
  
The last frame of the shorter clip is repeated until the end of the longest clip. The audio is taken from the first clip.
+
See [[filters with multiple input clips]] for the resulting [[Clip_properties|clip properties]].
  
  
Interleave is very useful for comparing two similar videos, stepping frame-by-frame:
+
'''Interleave''' is very useful for comparing two similar videos, stepping frame-by-frame:
 +
<div {{BoxWidthIndent|24|1}} >
 
  Interleave(
 
  Interleave(
  \    A.Subtitle("A"),  
+
  \    A.[[Subtitle]]("A"),  
  \    B.Subtitle("B"))
+
  \    B.[[Subtitle]]("B"))
+
</div>
 +
</div>
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 +
[[Category:Timeline_editing_filters]]
 
[[Category:Debugging/Diagnostic_filters]]
 
[[Category:Debugging/Diagnostic_filters]]

Latest revision as of 06:26, 18 September 2022

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


Interleave(clip1, clip2 [, ...])

Interleaves frames from several clips on a frame-by-frame basis – for example if you give three arguments, the first three frames of the output video are the first frames of the three source clips, the next three frames are the second frames of the source clips, and so on.

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


Interleave is very useful for comparing two similar videos, stepping frame-by-frame:

Interleave(
\    A.Subtitle("A"), 
\    B.Subtitle("B"))
Personal tools