Log in

View Full Version : Need help with the compare function...


Joni
6th October 2003, 11:36
Hi!

Iīm having some problems with the "Compare" function in Avisynth. I want to enable the graph. I got the syntax for the function at avisynth.org, but I canīt get it to work.
The logfile works for me but I canīt get no graph!

Iīm using the following syntax:

Clip1=AviSource("D:\Video\Source.avi")
Clip1=ConvertToYUY2(Clip1)
Clip2=AviSource("D:\Video\Comp.avi")
Clip2=ConvertToYUY2(Clip2)
Compare(Clip2,Clip1,"","result.txt",true)

Whatīs wrong, help me?!

jonny
6th October 2003, 15:00
Compare outputs the filtered clip (first arg) with text (Mean Absolute Difference, Mean Difference & PSNR) and Marc's PSNR graph (if show_graph is true). Starting from v2.53 also the 'Overal PSNR' is shown on the screen, but not yet in the logfile. The channels string is a combination of R,G,B [,A] or Y,U,V, depending on the source clips. The empty string (default) means either "YUV" or "RGB". If logfile is not null, the results will be written to a file by this name and not drawn on the clip. It is much faster if you need to compare a lot of frames.