Compare
From Avisynth wiki
Revision as of 22:05, 2 March 2016 by Raffriff42 (Talk | contribs)
Compare(clip clip_filtered, clip clip_original, string channels, string logfile, bool show_graph)\
clip clip_filtered, clip_original =
- This filter compares the original clip and its filtered version. The filtered version will be returned with the results of the comparison displayed on screen (unless the logfile option is used). For each frame, the Mean Absolute Difference, Mean Difference and Peak Signal-to-Noise Ratio (PSNR) is given, as well as the min (minimum), avg (average), max (maximum) and overall PSNR up to that frame (calculated frame-wise).
string channels = ""
- Set the color channels to be compared with a combination of R,G,B [,A] or Y,U,V, depending on the source color format. If it is empty (default), it means either "YUV" when the input clips are YCbCr or "RGB" when in the input clips are RGB.
bool show_graph = true
- If true, (the default) then Marc's(who?) PSNR graph is also drawn on it (see example image).
string logfile = ""
- If specified, 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.
Examples
- displays differences on screen:
FFmpegSource2("sintel.mp4") A=BicubicResize(640, 272) B=A.Sharpen(1.0) ## (the filter under test) return Compare(A, B)
- for creating a log file:
Compare(clip1, clip2, "", "compare.log")
- will only compare chroma channels of YUY2 clips:
Compare(clip1, clip2, "UV")
Changes
v2.58 | Added YV12 support. |