Splice

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (add link)
(formatting, links, phrasing)
Line 1: Line 1:
{{Template:Func2Def|AlignedSplice(clip ''clip1'', clip ''clip2'' [,...])|UnalignedSplice(clip ''clip1'', clip ''clip2'' [,...])}}
+
<div style="max-width:62em" >
 +
Join two or more video clips end to end. The difference between the filters lies in the way they treat the sound track.  
  
AlignedSplice and UnalignedSplice join two or more video clips end to end. The difference between the filters lies in the way they treat the sound track. UnalignedSplice simply concatenates the sound tracks without regard to synchronization with the video. AlignedSplice cuts off the first sound track or inserts silence as necessary to ensure that the second sound track remains synchronized with the video.  
+
== Syntax and Parameters ==
 +
{{Func2Def
 +
|AlignedSplice(clip ''clip1'', clip ''clip2'' [,...])
 +
|UnalignedSplice(clip ''clip1'', clip ''clip2'' [,...])
 +
}}
  
You should use UnalignedSplice when the soundtracks being joined were originally contiguous--for example, when you're joining files captured with AVI_IO. Slight timing errors may lead to glitches in the sound if you use AlignedSplice in these situations.  
+
;'''AlignedSplice'''
 +
:Ajusts the audio (cuts off sound or inserts silence as necessary) to ensure that the sound remains synchronized with the video.  
  
AviSynth's scripting language provides + and ++ [[Operators|operators]] as synonyms for UnalignedSplice and AlignedSplice respectively.  
+
;'''UnalignedSplice'''
 +
:Simply concatenates the sound without regard to synchronization with the video.  
  
See [[filters with multiple input clips]] for the resulting clip properties.
+
You should use '''AlignedSplice''' for most situations.
  
 +
You should use '''UnalignedSplice''' when the soundtracks being joined were originally contiguous&mdash;for example, when you're joining files captured with [http://www.avi-io.com/ AVI-IO]. Using '''AlignedSplice''' in these situations may lead to glitches in the sound.
  
'''Examples:'''
+
AviSynth provides '''++''' and '''+''' [[Operators|operators]] as synonyms for '''AlignedSplice''' and '''UnalignedSplice''' respectively.
  
# Join segmented capture files to produce a single clip:
+
See [[filters with multiple input clips]] for the resulting [[Clip_properties|clip properties]].
 +
 
 +
== Examples ==
 +
* Join segmented capture files (with UnalignedSplice) to produce a single clip:
 +
<div {{BoxWidthIndent|54|1}} >
 
  UnalignedSplice([[AviSource]]("cap1.avi"),AviSource("cap2.avi"),AviSource("cap3.avi"))
 
  UnalignedSplice([[AviSource]]("cap1.avi"),AviSource("cap2.avi"),AviSource("cap3.avi"))
 
  # or:
 
  # or:
 
  AviSource("cap1.avi") + AviSource("cap2.avi") + AviSource("cap3.avi")
 
  AviSource("cap1.avi") + AviSource("cap2.avi") + AviSource("cap3.avi")
 +
</div>
  
# Extract three scenes from a clip and join them together in a new order
+
* Extract three scenes from a clip and join them together in a new order with AlignedSplice:
 +
<div {{BoxWidthIndent|54|1}} >
 
  AviSource("video.avi")
 
  AviSource("video.avi")
 
  [[Trim]](2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
 
  [[Trim]](2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
 
+
</div>
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 
[[Category:Timeline_editing_filters]]
 
[[Category:Timeline_editing_filters]]

Revision as of 23:00, 27 February 2016

Join two or more video clips end to end. The difference between the filters lies in the way they treat the sound track.

Syntax and Parameters

AlignedSplice(clip clip1, clip clip2 [,...])
UnalignedSplice(clip clip1, clip clip2 [,...])

AlignedSplice
Ajusts the audio (cuts off sound or inserts silence as necessary) to ensure that the sound remains synchronized with the video.
UnalignedSplice
Simply concatenates the sound without regard to synchronization with the video.

You should use AlignedSplice for most situations.

You should use UnalignedSplice when the soundtracks being joined were originally contiguous—for example, when you're joining files captured with AVI-IO. Using AlignedSplice in these situations may lead to glitches in the sound.

AviSynth provides ++ and + operators as synonyms for AlignedSplice and UnalignedSplice respectively.

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

Examples

  • Join segmented capture files (with UnalignedSplice) to produce a single clip:
UnalignedSplice(AviSource("cap1.avi"),AviSource("cap2.avi"),AviSource("cap3.avi"))
# or:
AviSource("cap1.avi") + AviSource("cap2.avi") + AviSource("cap3.avi")
  • Extract three scenes from a clip and join them together in a new order with AlignedSplice:
AviSource("video.avi")
Trim(2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
Personal tools