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 Development
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22nd June 2013, 21:34   #1  |  Link
pbristow
Registered User
 
pbristow's Avatar
 
Join Date: Jun 2009
Location: UK
Posts: 263
Setting filenames and opening files

Hi all, I have a few questions for anyone who is familiar with the internals of AVIsynth. Not urgent. Consider this a moment of light relief from your intensive hacking and modding duties.

Q1) If I write a script such as:
Code:
Filename = "text" + ".avi"
AVIsource(Filename)
...and invoke it via VirtualDub, at what point does the value "text.avi" get assigned to the variable Filename? Is it during the instantiation of avisynth, when plugins etc. are loaded? Or is it when the controlling application (VDub or whatever) asks for its first frame to be served, and AVIsource is called for the first time, realises it needs a filename, and triggers the evaluation of the preceding line?


Q2) What I'm working around to is the following idea: Suppose I (or someone else) wrote a function or a plug-in that prompts the user for a filename/path (via a standard Windows-style file selector) and then returns that filename/path, and used it as follows:

Code:
Filename = SelectFile()
AVIsource(Filename)
When would the user see the filename prompt? Would it pop up as soon as the avisynth script was loaded, or only once the calling app demanded the first frame of video (e.g. when they pressed "play" on a player)?


Q3) Has anyone ever written such a file-selector plug-in, or thought of adding such a function to Avisynth itself?


Cheers.
pbristow is offline   Reply With Quote
 


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 01:12.


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