View Full Version : avisynth editing - how to do a cross cut?
smok3
4th October 2004, 07:49
| video 1 | video 2 |
| audio 1 |
| audio 2 |1.what would be the easiest way to do a cross-cut of audio as above?
2.same question, but with fadeout of audio1 and fadein of audio2?
hanfrunz
4th October 2004, 19:59
Hi smok3,
you could do something like this:
clip1= avisource("clip1.avi")
clip2= avisource("clip2.avi")
editingvideo= clip1.trim(x.y) + clip2.trim(x.y)
editingaudio= clip1.trim(x.y) + clip2.trim(x.y)
AudioDub(editingvideo, editingaudio)
hanfrunz
IanB
7th October 2004, 08:21
smok3,
Part 2....
| video 1 | video 2 |
| audio 1 |
| audio 2 |
0 a b c e
Assuming clip1 video ends at frame "b" and audio ends at frame "c". Clip2 audio starts at frame "a" and video starts at frame "b", both end frame "e".
clip1= avisource("clip1.avi").ShowFrameNumber()
clip2= avisource("clip2.avi").ShowFrameNumber()
editvideo= clip1.trim(0, b) + clip2.trim(b+1, e)
editaudio= Dissolve(clip1.trim(0, c), clip2.trim(a, e), c-a)
AudioDub(editvideo, editaudio)
StackVertical(editaudio)
Use the ShowFrameNumber() and StackVertical() to get the positioning exactly right, Use of Dissolve() can get confusing :)
IanB
smok3
7th October 2004, 08:34
tnx hanfrunz and IanB, ill try all this soon. (i didnt even know there is .ShowFrameNumber() option, i guess iam kinda lost on that avisynth wiki, 3. is there another good resource for avs scripting?)
there is always more behind the curtain:
4. is there a way to read timecode from dv stream (like .ShowTimeCode())
stickboy
7th October 2004, 10:18
Originally posted by smok3
is there a way to read timecode from dv stream (like .ShowTimeCode()) DVInfo (http://forum.doom9.org/showthread.php?s=&threadid=61688)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.