Splice

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
m (added category)
Line 20: Line 20:
  
 
[[Category:Internal filters]]
 
[[Category:Internal filters]]
 +
[[Category:Timeline_editing_filters]]

Revision as of 15:27, 8 November 2015

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

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.

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.

AviSynth's scripting language provides + and ++ operators as synonyms for UnalignedSplice and AlignedSplice respectively.

Examples:

# Join segmented capture files 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
AviSource("video.avi")
Trim(2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
Personal tools