A simple way to compare two scripts
As I bother to user MovieStacker just for that, this is a little avs script aimed to compare the result of two other scripts.
Simply put the code of the scripts in the function script1 and function script2. The example below compare the original source (script1 empty) and the result of the greyscale() command. Note: you can resize or do whatever you want in the scripts but be carefull that both scripts must produce clips with same parameters (size, fps, colorspace) Code:
source=Mpeg2Source(...) |
Nice!
And here also a nice compare function if you dont want to se a side by side but a "switching"-like comparison: Code:
source=Mpeg2Source(...) I do use this often when comparing encodings etc. |
Uau! this one should become a sticky guys :D
|
Thanks guys for both methods this is a really useful script great work. :D
|
very good!
thanks guys! |
I know what is greyscale, but for what is it useful in those scripts?
|
Prodater,
I think it was just an example... Between this lines Code:
#----- ENTER CODE OF SCRIPT ONE HERE ----- Inc and Dialhot compared no filter against greyscale() as an example. |
Alternate (by mg262 from D9).
|
Re: Alternate (by mg262 from D9).
Quote:
|
A simple but usefull add:
Code:
source=Mpeg2Source(...) The script crop 2 pixels at right and left sides to compensate the addborder in the midle, but most times those sides are black overscan zones. |
:ok:
|
Quote:
|
Two more mods:
Compare left half of both scripts: Code:
source=Mpeg2Source(...) Code:
source=Mpeg2Source(...) http://www.digitalfaq.com/archives/i.../2005/11/4.jpg http://www.digitalfaq.com/archives/error.gif |
I've been playing, but I can't see a way.
Avisynth ConditionalFilter does not allow for a variable to be set (psuedocode: set Type=left, then test Type for "left"). Is there a way to make an avisynth runtime function give a predefined result that won't change throughout the life of the script? We may have to wait for 3.0 "..Improved parser: the parser will include the widely requested flow control structs (if then else, for, while). It will add two new types : frame and function..." |
Quote:
Code:
############################################################################################# |
Hahah, brilliant.. I tried to set a variable, but couldn't get it to react with the scripts.
I was trying a if..then...else type arrangement; yours is a masterpiece! |
Quote:
It is, indeed, an if..then. left = (mode == "RR") ? can be read as "if mode = "RR" then left = ...." statement after "?" is the conditional statement. statement after ":" is the "else" statement. |
Quote:
Oh well.. Thanks again.. |
I do not know if someone will find it useful by now but I simply use:
Code:
DGDecode_Mpeg2Source(....) top is for left screen n bottom if for right, *top filters must end with dot "." unless is the last one, same goes for the word "last" saluts |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.