PDA

View Full Version : Command line parameters


sonnati
1st September 2009, 16:31
There is a way to pass "command line" parameters to AviSynth Script ? For example, if I want to change the resolution of the scaled output from an external program that launch the chain of encoding...do I need to change the .avs file or it is possibile to pass some variable to the script in a better way ?

Leak
1st September 2009, 17:26
There is a way to pass "command line" parameters to AviSynth Script ? For example, if I want to change the resolution of the scaled output from an external program that launch the chain of encoding...do I need to change the .avs file or it is possibile to pass some variable to the script in a better way ?
You could put those settings in a second AVS script that just sets some global variables and just Import() that in your first one.

Also, one of stickboy's plugins (http://avisynth.org/stickboy/) allows you to read environment variables.

You can't really pass "command line" parameters to an AviSynth script as the application opening it itself would have to pass them (somehow) along to the script, but usually those applications just use some VfW or DirectShow function for opening any kind of files.

np: Das Bierbeben - Dunkle Tage (Das Bierbeben)