View Full Version : Average plug-in : weighted average of any number of clips; fast (500 FPS on 2 clips)
Nikos
27th April 2008, 22:40
Here: (http://users.chan.sch.gr/nikos_ch/files/bwgt/Average_24Oct05.rar) Average_24Oct05
Wilbert
27th April 2008, 22:42
@Fizick,
I also provided him the version compiled by VC7.1 (VC 2003 tollkit),
Do you still have this? Then i will include it in the package above.
nonsens112
28th April 2008, 00:32
thetoof, Nikos
I am looking for an AverageM plugin or source code (in C++) of Average :(
gzarkadas
28th April 2008, 01:02
thetoof, Nikos
I am looking for an AverageM plugin or source code (in C++) of Average :(
Look at the bottom of the 1st post of the "mg262's plugins with source (http://forum.doom9.org/showthread.php?t=118430)" thread.
nonsens112
28th April 2008, 06:30
gzarkadas
big thanks! :)
Fizick
28th April 2008, 18:58
@Fizick,
Do you still have this? Then i will include it in the package above.
Yes, I have.
You missed it? How I can send it to you?
Fizick
28th April 2008, 19:01
ttttt
Wilbert
28th April 2008, 20:47
Yes, I have.
You missed it?
I was to lazy to copy it to my hard drive :) I named it v1.1 (see above).
rfmmars
30th April 2008, 23:33
ttttt
Still waiting for this to be approved
Richard
pbristow
4th December 2009, 12:42
Wilbert's links appear to be dead now. :(
Please, oh gods of AVIsynth, do not allow this wonderful, really useful filter to die out. Could it not be incorporated into the AVIsynth core filter set? It really is that useful!
Wilbert
6th December 2009, 14:40
Wilbert's links appear to be dead now.
Please, oh gods of AVIsynth, do not allow this wonderful, really useful filter to die out. Could it not be incorporated into the AVIsynth core filter set? It really is that useful!
I updated the link.
redfordxx
3rd November 2011, 09:45
Hi, something I found on my HDD:
usage:
AverageM(clip1,mask1,clip2,mask2....)
Years ago I learned C and even asm because of avisynth filters and I forgot it again. So I don't know what exactly is the averaging formula...probably equally ugly as other merges in avs...i.e. somewhere, where should be 0 is 1 etc...because mask (0;255) is normalized by 256...I honestly can't remember how I solved...I know how I would solve now...I would added adjusted version of this filter where would beAdjustedMask=Mask+Max(0;Mask*2-256)/256and user would be able to choose the method...but I am no developer anymore...so if someone wants to implement it somewhere, let me know;-)
Cheers
R.
redfordxx
21st November 2011, 00:52
Hi, I have reworked the pluging and here it is...some early version.
Find description in the first post of this (http://forum.doom9.org/showthread.php?p=1537311#post1537311) thread. Keep non-development user comments here.
Bloax
29th November 2011, 18:56
Hmm, your filters (RAverageW/RMerge) seem to refuse to receive any frames beyond the first one.
That is, they output everything just fine, except that they refuse to process anything but the first frame. (And thus the whole video is frozen at the first frame.)
So unless they're strictly for still images (why would speed be a concern then :P), I'd see this as a bug. Though it may just be my system.
Edit: Tested it on another one, still same issue.
redfordxx
2nd December 2011, 00:52
OMG...big fat thank you...fixed in version 1.4.3...
I hope there is nothing else...
travolter
5th December 2011, 18:52
Im not able to run it.
Im trying to run RedAverage.dll 1.4.3 with this script
msk=RAverageW(last,64,last.RemoveGrain(20,-1),-64,mode=4,u=0,v=0,bias=-196).Mt_Invert().Mt_Deflate()
RMerge(last,Sharpen(0.6),msk,mode=255)
"there is no function named RAverageW..."
The dll is placed in avisynth/plugins directory. Any other dlls are required to run it?. Something into the system32? MT compatible? (setmtmode (2) here).
redfordxx
6th December 2011, 22:09
I just tested this script:
w=32
h=16
ColorBars(width=w*20, height=h*20, pixel_type="YV12")
msk=RAverageW(last,64,last.RemoveGrain(20,-1),-64,mode=4,u=0,v=0,bias=-196).Mt_Invert().Mt_Deflate()
RMerge(last,Sharpen(0.6),msk,mode=255)
With C:\Program Files (x86)\AviSynth 2.5\plugins\RedAverage.dll it works and when I remove it it doesnot work, so I don't know.
Here I am on Win7 x64 runnig 32bit Avisynth.
I don't know what else can matter...
btw, how I see 28 downloads of the last version, and only you reported this problem
redfordxx
6th December 2011, 22:17
When you got it working, I think invert is redundand, if iirc what it does.
msk=RAverageW(last,64,last.RemoveGrain(20,-1),-64,mode=4,u=0,v=0,bias=-196).Mt_Invert().Mt_Deflate()
msk=RAverageW(last,-64,last.RemoveGrain(20,-1),64,mode=4,u=0,v=0,bias=255+196).Mt_Deflate()
But not tested
Bloax
7th December 2011, 15:57
It's some weird AviSynth bug where it refuses to acknowledge the plugin.
I've had it happen some time in the past, really annoying bugga.
As for the inversion, you know where it's from. ;)
redfordxx
7th December 2011, 16:34
As for the inversion, you know where it's from. ;)Yep that was before I knew...
And this bugga, does it go away? Or Loadplugin helps?
travolter
8th December 2011, 16:30
I was not able to load RedAverage.dll yet. Loadplugin does not help.
Im using XPsp1 with C++2005/2008 Dlls..
I dont have installed .NET installed.
I dont have any problem running other avisynth dlls in this machine but Redaverage.
You guys are using windows7? Maybe this Dll is not compatible with XP? What depencencies/other dlls are required to run Redaverage.dll?
jmac698
23rd July 2012, 14:21
Again, the original Average(clip clip1, int weight1, ...) is archived at Wilbert's site, http://forum.doom9.org/showthread.php?t=118430
Also Average.dll here
http://www.sendspace.com/file/bjd6k0
average 1.1
2007
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.