From Avisynth wiki
Jump to: navigation, search

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

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

[edit] Syntax and Parameters

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

Ajusts the audio (cuts off sound or inserts silence as necessary) to ensure that the sound remains synchronized with the video.
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.

  1. the same height and width,
  2. the same color format,
  3. the same frame rate, and
  4. the same audio sample rate, bit depth and number of channels.

[edit] Examples

  • Join segmented capture files (with UnalignedSplice) to produce a single clip:
# 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:
Trim(2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
Personal tools