I managed to find this on a message board somewhere, but I don't completely understand it:
- Code: Select all
avisource("X:/stuff/example.avi")
function filterchain1(clip c) {
c
# do some filtering here
return last
}
function filterchain2(clip c) {
c
# NASTY EVIL BLUR OR SOMETHING HERE
return last
}
trim(0,500).filterchain1()+trim(501,550).filterchain2()+trim(551,0).filterchain1()
I've tried messing around with it and I get lost. I understand that I need to make clips out of my video, so I do this:
- Code: Select all
beginning = DirectShowSource("ComeAlive06 (windows playback).mov")
clip1 = beginning.trim(0, 183)
So far AVIsynth doesnt complain, so i go and make my filterchain:
- Code: Select all
function filterchain1(clip1) {
c
sangnom(2)
return last
}
trim(0,183).filterchain1()
Here I get an error saying that trim has invalid arguments and it's referring to the last trim and not the one I used on clip1.
Also, before anyone says anything about mov. I made the video in FCP on OS X and have tried numerous export methods, so please don't complain about it unless it has anything to do with how this script is working.



