Log in

View Full Version : Joining multiple *.avi files


dvwannab
28th September 2007, 15:17
Guys,

dumb question. I have not done this in a few years and have forgotton how to do this.

What is the script line to join multiple *.avi files?

Also what is the script line to edit in/out multiple segments in my encode?

Thanks.

Video Dude
28th September 2007, 15:28
To join:

a=AviSource("c:\clip1.avi")
b=AviSource("c:\clip2.avi")
c=AviSource("c:\clip3.avi")

return a+b+c



Use Trim if you want to edit.
Follow this: http://avisynth.org/mediawiki/Trim




Edit: Added link

dvwannab
28th September 2007, 15:31
Does the Trim line look like this:

Trim(0,2300++3500,10000)

as an example

PS. Ok, saw your edited post. Thanks.

TheRyuu
28th September 2007, 22:52
You can also do it like this (I like doing it this way):
avisource("C:\movie1.avi")++avisource("C:\movie2.avi")

Not sure what the double + does but for some reason I like it more.

squid_80
28th September 2007, 23:59
++ keeps the audio in sync. Check AlignedSplice and UnalignedSplice in the docs for more info.