Splice
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (formatting, links, phrasing) |
Raffriff42 (Talk | contribs) m (formatting) |
||
Line 1: | Line 1: | ||
<div style="max-width:62em" > | <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. | + | Join two or more video clips end to end. The difference between the filters lies in the way they treat the sound track. |
+ | </div> | ||
== Syntax and Parameters == | == Syntax and Parameters == | ||
+ | <div style="max-width:62em" > | ||
{{Func2Def | {{Func2Def | ||
|AlignedSplice(clip ''clip1'', clip ''clip2'' [,...]) | |AlignedSplice(clip ''clip1'', clip ''clip2'' [,...]) | ||
Line 21: | Line 23: | ||
See [[filters with multiple input clips]] for the resulting [[Clip_properties|clip properties]]. | See [[filters with multiple input clips]] for the resulting [[Clip_properties|clip properties]]. | ||
+ | </div> | ||
== Examples == | == Examples == | ||
+ | <div style="max-width:62em" > | ||
* Join segmented capture files (with UnalignedSplice) to produce a single clip: | * Join segmented capture files (with UnalignedSplice) to produce a single clip: | ||
<div {{BoxWidthIndent|54|1}} > | <div {{BoxWidthIndent|54|1}} > | ||
Line 34: | Line 38: | ||
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> | ||
</div> | </div> | ||
[[Category:Internal filters]] | [[Category:Internal filters]] | ||
[[Category:Timeline_editing_filters]] | [[Category:Timeline_editing_filters]] |
Revision as of 12:23, 28 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)