Log in

View Full Version : Compare compressed AVI files with Avisynth


dnaxx
31st December 2004, 11:19
Hello,

I am trying to compare compressed destination files with an uncompressed source this way:

source=AviSource("D:\Uncomp.avi")
target=AviSource("D:\CinepakNormal.avi")
psnrfile=("D:\cinepak_normal.psnr")

rgbsource=ConvertToRGB24(source)
rgbtarget=ConvertToRGB24(target)
Compare(rgbsource,rgbtarget,"",psnrfile)


With the Windows Media Codec 9 it works this way. But with all other codecs (DivX, XVid, Cinepak, Indeo, HufYUV, ...) it does not work.

Does someone know why it does not work and how to fix it?

Thanks,

stickboy
31st December 2004, 12:27
Originally posted by dnaxx
But with all other codecs (DivX, XVid, Cinepak, Indeo, HufYUV, ...) it does not work.

Does someone know why it does not work and how to fix it?Could you describe exactly what happens? Just saying "it does not work" is rather vague.

dnaxx
31st December 2004, 12:37
in "cinepak_normal.psnr" just these lines are added:

Comparing channel(s) RGB

Mean Max Max
Absolute Mean Pos. Neg.
Frame Dev. Dev. Dev. Dev. PSNR (dB)
-----------------------------------------------------



Total frames processed: 0

Minimum Average Maximum
Mean Absolute Deviation: 0.0000 -1.#INF 0.0000
Mean Deviation: -0.0000 +1.#INF -0.0000
PSNR: -0.0000 1.#INF -0.0000
Overall PSNR: -1.#IND

ObiKenobi
2nd January 2005, 00:32
Try converting it to YUY2 instead of RGB and see if that makes any difference.