Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th December 2009, 14:40   #61  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
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.
Wilbert is offline   Reply With Quote
Old 3rd November 2011, 09:45   #62  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Hi, something I found on my HDD:
usage:
Code:
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 be
Code:
AdjustedMask=Mask+Max(0;Mask*2-256)/256
and 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.
Attached Files
File Type: rar AverageM.rar (56.1 KB, 212 views)
redfordxx is offline   Reply With Quote
Old 21st November 2011, 00:52   #63  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
New plugin

Hi, I have reworked the pluging and here it is...some early version.
Find description in the first post of this thread. Keep non-development user comments here.
redfordxx is offline   Reply With Quote
Old 29th November 2011, 18:56   #64  |  Link
Bloax
The speed of stupid
 
Bloax's Avatar
 
Join Date: Sep 2011
Posts: 317
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.

Last edited by Bloax; 30th November 2011 at 19:54.
Bloax is offline   Reply With Quote
Old 2nd December 2011, 00:52   #65  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
OMG...big fat thank you...fixed in version 1.4.3...
I hope there is nothing else...
redfordxx is offline   Reply With Quote
Old 5th December 2011, 18:52   #66  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
Im not able to run it.
Im trying to run RedAverage.dll 1.4.3 with this script
Quote:
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).
travolter is offline   Reply With Quote
Old 6th December 2011, 22:09   #67  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
I just tested this script:
Code:
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

Last edited by redfordxx; 6th December 2011 at 22:25.
redfordxx is offline   Reply With Quote
Old 6th December 2011, 22:17   #68  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
When you got it working, I think invert is redundand, if iirc what it does.
Code:
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
redfordxx is offline   Reply With Quote
Old 7th December 2011, 15:57   #69  |  Link
Bloax
The speed of stupid
 
Bloax's Avatar
 
Join Date: Sep 2011
Posts: 317
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.
Bloax is offline   Reply With Quote
Old 7th December 2011, 16:34   #70  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Quote:
Originally Posted by Bloax View Post
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?
redfordxx is offline   Reply With Quote
Old 8th December 2011, 16:30   #71  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
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?
travolter is offline   Reply With Quote
Old 23rd July 2012, 14:21   #72  |  Link
jmac698
Registered User
 
Join Date: Jan 2006
Posts: 1,867
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

Last edited by jmac698; 23rd July 2012 at 14:36.
jmac698 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.