Interleave

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (added category)
m (formatting, links, phrasing)
Line 1: Line 1:
 +
<div style="max-width:62em" >
 
{{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:Timeline_editing_filters]]
 
[[Category:Debugging/Diagnostic_filters]]
 
[[Category:Debugging/Diagnostic_filters]]

Revision as of 15:39, 27 February 2016

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