PDA

View Full Version : Loop SSIM/VqmCalc for all clip?


Livesms
15th October 2006, 11:40
Is it possible to make script looped?

Name = "0.05"

LoadPlugIn("C:\Program Files\AviSynth 2.5\plugins\Metric\SSIM.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\Lib.avs")

clip1 = MPEG2("0.d2v")
clip1 = Trim(clip1, 0, 9999)

clip2 = AviSource(Name + ".avi")
clip2 = Trim(clip2, 1, 10000)

SSIM (clip1, clip2, Name + ".csv", Name + ".txt", lumimask=true)


I want script to open source and than do metric calculation for all frames. So when I will open it in VirtualDub I will get results ready without any other manipulation as previewing adn other.

May be there is another way to calculate matric in batch/cmd line?

Manao
15th October 2006, 11:51
Use avs2avi : it's a command line encoder, that allows just to read the whole avs file without doing anything with it :avs2avi my_script.avs -c null -o n