Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
18th January 2002, 11:12 | #1 | Link |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
making own functions
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 |
19th January 2002, 09:20 | #2 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
>>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???<<
You can use any text editor. The language is Avisynth scripting language. You can save it anywhere. You name it *.avs just like any other Avisynth script. Then you can open the file with (say) VirtualDub and if Avisynth is installed, it will run the script and serve frames to VirtualDub automatically. |
|
|