Wilbert
18th January 2002, 11:12
I noticed yesterday that you can make your own functions in avi-script. Being almost completely ignorant about it I hope someone can explain it. I took an example from videotools.net:
_____
You can define and call your own functions in AVS scripts, like
this:
function NTSC2PAL(clip c) {
# Fairly good NTSC->PAL conversion. Would be better with Smart Bob. :-)
Assert(c.height == 480, "NTSC2PAL: input clip must have 480 scan lines")
Bob(c, height=576)
ChangeFPS(50)
SeparateFields().SelectEvery(4,0,3)
return Weave()
}
AVISource("ntsc.avi").NTSC2PAL()
_____
With some effort I can figure it out what this all means, but my question is: in what editor/language do you make this, where do you save it and how do you name this file???
Thx,
Wilbert
_____
You can define and call your own functions in AVS scripts, like
this:
function NTSC2PAL(clip c) {
# Fairly good NTSC->PAL conversion. Would be better with Smart Bob. :-)
Assert(c.height == 480, "NTSC2PAL: input clip must have 480 scan lines")
Bob(c, height=576)
ChangeFPS(50)
SeparateFields().SelectEvery(4,0,3)
return Weave()
}
AVISource("ntsc.avi").NTSC2PAL()
_____
With some effort I can figure it out what this all means, but my question is: in what editor/language do you make this, where do you save it and how do you name this file???
Thx,
Wilbert