Log in

View Full Version : Compare results of avs-plugin


slicktail
14th May 2010, 11:25
Good afternoon. I wrote a plugin that "something" is doing with the video. Depending on the parameters (the magnitude of displacement, the block size, etc.) produce different results. Visually better or worse, faster or slower, depending on the given parameters. How can test results?

julius666
14th May 2010, 11:40
Good afternoon. I wrote a plugin that "something" is doing with the video. Depending on the parameters (the magnitude of displacement, the block size, etc.) produce different results. Visually better or worse, faster or slower, depending on the given parameters. How can test results?

a=last # your unfiltered source
b=yourfilter() # use your filter here
interleave(a,b)


Now the even frames will be the frames of you original source, the odd frames will be the filtered.

you could use more than one clip with interleave, e.g.:

interleave(your_source, your_filtered_with_settings1,your_filtered_with_settings2, ...)

slicktail
14th May 2010, 12:08
a=last # your unfiltered source
b=yourfilter() # use your filter here
interleave(a,b)


Now the even frames will be the frames of you original source, the odd frames will be the filtered.

you could use more than one clip with interleave, e.g.:

interleave(your_source, your_filtered_with_settings1,your_filtered_with_settings2, ...)

You don't understand me.
I have a result with some parameters, and results with other params.
I want compare time of prosessing frames and visual quality

Gavino
14th May 2010, 13:13
I want compare time of prosessing frames and visual quality
julius666's method does allow to compare visual quality, by interleaving (any number of) results with different parameters. You can step through frame by frame to compare results.

You can do a similar thing with StackHorizontal/Vertical showing 'before' and 'after' versions together. There's even a built-in ShowFiveVersions (http://avisynth.org/mediawiki/ShowFiveVersions) that will do something similar. And in all the above examples you can add subtitles to identify the different versions more easily.

Another technique I use is to Animate the function over a range of parameters to see the effects.

Comparing processing times is not so easy, but you could run each version separately in VirtualDub with its "Video Analysis Pass" to get performance statistics.