Log in

View Full Version : Usage of Stack


darkpepe
31st August 2004, 12:09
Hi!
I want to compare two clips, and I don't know how to use the stack option.

Just created a text file called stack.avs with following line:
StackHorizontal("H:\DVDRB\CCE.d2v","C:\CASTAWAY\Shr1nk.d2v")

"Invalid Arguments to funcion" is the error message.

I'm a complete newbie to AviSynth, help apreciated

ARDA
31st August 2004, 12:26
Maybe this script can help you
http://www.avisynth.org/SeeTheDifference
ARDA

Manao
31st August 2004, 12:28
StackVertical takes clips as input, and you're giving it files.

To use Stackvertical, your script should be clip1 = mpeg2source("H:\DVDRB\CCE.d2v")
clip2 = mpeg2source("C:\CASTAWAY\Shr1nk.d2v")

return StackVertical(clip1, clip2)If your input was an avi file, you would have used "AVISource" or "DirectShowSource" instead of "mpeg2source".

However, in order "mpeg2source" to work, you'll need a dll : dgdecode.dll ( which you can find in the package "dgmpgdec" on Doom9's download section ), which you must put in the avisynth's plugin directory.

darkpepe
31st August 2004, 12:45
Ok thanks! Now I understand!

When I use the SeeTheDifference script I get a grey-pink dots picture, doesn't tell me much. What would be the settings for a third clip?
How to set substrong would be the problem I believe...

#############
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")

v1=mpeg2source("H:\CASTAWAY\Orig.d2v")
v2=mpeg2source("H:\DVDRB\CCE.d2v")
v3=mpeg2source("C:\CASTAWAY\Shr1nk.d2v")

# Videos to compare: (v1 is original, v2 is cce, v3 is shrink)

sub1 = v1.subtract(v2)
sub2 = v1.subtract(v3)
substrong = sub1.levels(122,1,132,0,255)
substrong = sub2.levels(122,1,132,0,255)

return

StackVertical(StackHorizontal(v1.subtitle("orig"),v2.subtitle("cce"),v3.subtitle("shrink")),StackHorizontal(sub1.su

btitle("Difference"),substrong.subtitle("Difference amplified1"),substrong.subtitle("Difference amplified2")))
#################