Alex_e_Basta
7th August 2002, 12:56
I tried to use this filter to determine psnr and I got very good results indeed. I compared a clip I encoded at 720x296 with the original resized at 720x296 and a second clip at 640x264 with the same original clip resized at 640x264: my 2 scripts
LoadPlugin("C:\Avisynth\mpeg2dec.dll")
orig=mpeg2source("C:\Avisynth\Prove\PA.d2v").crop(3,74,713,427).BicubicResize(720,296,0,0.75)
encoded=avisource("C:\Avisynth\Prove\PA Divx 720x296 SharpBicubic.avi")
compare(encoded,orig,"","C:\Avisynth\Prove\PA Divx 720x296 SharpBicubic.txt",False)
LoadPlugin("C:\Avisynth\mpeg2dec.dll")
orig=mpeg2source("C:\Avisynth\Prove\PA.d2v").crop(3,74,713,427).BicubicResize(640,264,0,0.75)
encoded=avisource("C:\Avisynth\Prove\PA Divx 640X264 SharpBicubic.avi")
compare(encoded,orig,"","C:\Avisynth\Prove\PA Divx 640X264 SharpBicubic.txt",False)
Now a question: can I compare the avg psnr of the clip at 720x296 with the avg psnr at 640x264 to determine which clip has the *better* quality ?
LoadPlugin("C:\Avisynth\mpeg2dec.dll")
orig=mpeg2source("C:\Avisynth\Prove\PA.d2v").crop(3,74,713,427).BicubicResize(720,296,0,0.75)
encoded=avisource("C:\Avisynth\Prove\PA Divx 720x296 SharpBicubic.avi")
compare(encoded,orig,"","C:\Avisynth\Prove\PA Divx 720x296 SharpBicubic.txt",False)
LoadPlugin("C:\Avisynth\mpeg2dec.dll")
orig=mpeg2source("C:\Avisynth\Prove\PA.d2v").crop(3,74,713,427).BicubicResize(640,264,0,0.75)
encoded=avisource("C:\Avisynth\Prove\PA Divx 640X264 SharpBicubic.avi")
compare(encoded,orig,"","C:\Avisynth\Prove\PA Divx 640X264 SharpBicubic.txt",False)
Now a question: can I compare the avg psnr of the clip at 720x296 with the avg psnr at 640x264 to determine which clip has the *better* quality ?