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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th January 2002, 11:12   #1  |  Link
Wilbert
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
Wilbert is offline   Reply With Quote
Old 19th January 2002, 09:20   #2  |  Link
Guest
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.
Guest is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.