SleepEXE
9th February 2002, 03:23
I thought I'd share this little AVISynth script for comparing encodings:
LoadPlugin("k:\winnt\system\MPEG2DEC.DLL")
clip1=MPEG2Source("i:\cuckoo.d2v").Crop(24,76,672,326).BilinearResize(544,304).Subtitle("Original")
clip2=AVISource("i:\cuckoo_noluma.avi").Subtitle("No luma mask")
clip3=AVISource("k:\cuckoo_luma.avi").Subtitle("Luma mask")
clip4=Blankclip(clip1)
vertclip1=StackVertical(clip1,clip2)
vertclip2=StackVertical(clip3,clip4)
StackHorizontal(vertclip1,vertclip2)
It's not going to put a fresh coat of paint on your house or even let the dog outside to pee, but it does make a nice 2x2 matrix of the sources of your choice which looks like this (http://orca.st.usm.edu/~jmneal/files/compare_avs.jpg). Maybe advanced AviSynth users use something like this on a regular basis, but I haven't seen it mentioned here so I figured it was worth sharing.
Just plug your source files into the clipX= lines and load it into Virtualdub. Then simply scan through and note differences between the various encodings. To the best of my knowledge, all clips must have the same dimensions and color formats, so just use crop, resize, and convertto... arguments where necessary. If your monitor is running a low resolution (or the clips are large), you may need to use a modest downsize on all clips to make them fit in your viewable area.
In my example, I've used the original DVD2AVI *.d2v for clip1 as a reference, and clips 2 & 3 are Xvid encodings with & without luma masking. Clip4 is a blank placeholder to satisfy the dimensional requirements. The subtitle argument can of course be omitted, but it makes it easy to identify them in VirtualDub as you're scanning through and looking at the differences. If you're a real stickler for the scientific process, get someone else to plug in the clips randomly so you're not influenced by preconceived notions about which one should be better.
Try this with a DivX 3.11, Divx 4.12, and XviD clip and do your own codec comparisons.
Best regards,
SleepEXE
LoadPlugin("k:\winnt\system\MPEG2DEC.DLL")
clip1=MPEG2Source("i:\cuckoo.d2v").Crop(24,76,672,326).BilinearResize(544,304).Subtitle("Original")
clip2=AVISource("i:\cuckoo_noluma.avi").Subtitle("No luma mask")
clip3=AVISource("k:\cuckoo_luma.avi").Subtitle("Luma mask")
clip4=Blankclip(clip1)
vertclip1=StackVertical(clip1,clip2)
vertclip2=StackVertical(clip3,clip4)
StackHorizontal(vertclip1,vertclip2)
It's not going to put a fresh coat of paint on your house or even let the dog outside to pee, but it does make a nice 2x2 matrix of the sources of your choice which looks like this (http://orca.st.usm.edu/~jmneal/files/compare_avs.jpg). Maybe advanced AviSynth users use something like this on a regular basis, but I haven't seen it mentioned here so I figured it was worth sharing.
Just plug your source files into the clipX= lines and load it into Virtualdub. Then simply scan through and note differences between the various encodings. To the best of my knowledge, all clips must have the same dimensions and color formats, so just use crop, resize, and convertto... arguments where necessary. If your monitor is running a low resolution (or the clips are large), you may need to use a modest downsize on all clips to make them fit in your viewable area.
In my example, I've used the original DVD2AVI *.d2v for clip1 as a reference, and clips 2 & 3 are Xvid encodings with & without luma masking. Clip4 is a blank placeholder to satisfy the dimensional requirements. The subtitle argument can of course be omitted, but it makes it easy to identify them in VirtualDub as you're scanning through and looking at the differences. If you're a real stickler for the scientific process, get someone else to plug in the clips randomly so you're not influenced by preconceived notions about which one should be better.
Try this with a DivX 3.11, Divx 4.12, and XviD clip and do your own codec comparisons.
Best regards,
SleepEXE