Log in

View Full Version : Compare encoded m2v files


S36d2
21st November 2006, 20:18
Hi all,

I'm trying some different encoder settings like changing the matrix or encoder. Therefore i would like to compare two different m2v files with each other. Is there a way to accomplish that?

Thanks in advance

mitsubishi
21st November 2006, 20:24
You can use SSIM analyse to compare how close an encode is to the original.

http://forum.doom9.org/showthread.php?t=61128&highlight=ssim

S36d2
21st November 2006, 23:31
Thanks for your reply,

Does this also work for m2v files cause they're talking about .d2v files.

kumi
21st November 2006, 23:42
Alternate() :
http://forum.doom9.org/showthread.php?t=97059

BeforeAfter(), BeforeAfterDiff(), BeforeAfterLine() :
http://www.amvwiki.org/index.php/Special:Search?search=beforeafter&go=Go

And of course there's always Interleave()...

FYI: You can use DGIndex to create .d2v files, which then can be loaded with MPEG2Source().

mitsubishi
21st November 2006, 23:45
Yeah, it should work on anything in avisynth. You just need to supply it with the frames that would have been fed to the encoder and the frames that came out of it. So the first argument is the original avs script.
This is how I used it:
a=DirectShowSource("D:\test\test.ts", audio=false).LanczosResize(944,528).Trim(436,1724).ConvertToYV12()
b=DirectShowSource("D:\test\1.mp4", audio=false)
return ssim(a,b,"results.csv","averageSSIM.txt",lumimask=true)