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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th December 2007, 23:20   #41  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
He sent me the source of his plugin (the plugin itself is included):

http://www.wilbertdijkhof.com/mg262/Average_v11.zip

I didn't test it myself, so, test it as much as your can.

He also sent me some other things, but i will post about that in an other thread.

Last edited by Wilbert; 6th December 2009 at 14:40.
Wilbert is offline   Reply With Quote
Old 22nd December 2007, 20:18   #42  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Thanx
redfordxx is offline   Reply With Quote
Old 27th December 2007, 21:52   #43  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Crash

The old 2005 version (73kB dll) works on my AthlonXP.

The new one (102kB dll) crashes.

In debug mode it writes:
Unhandled exception at 0x01e97151 (Average.dll) in VirtualDub.exe: 0xC0000005: Access violation reading location 0x00000000.

It crashes somewhere after leaving averageplane_P3
called by WeightedAverage
in averageplane_P3(PLANAR_Y, env);
when coming back to WeightedAverage...it crashed somewhere around the bold spot:
Code:
...end of averageplane_P3
    99: 	}
   100: }
01E9712F  push        edx  
01E97130  mov         ecx,ebp 
01E97132  push        eax  
01E97133  lea         edx,[ (1E97158h)] 
01E97139  call        @ILT+2455(@_RTC_CheckStackVars@8) (1E7C99Ch) 
01E9713E  pop         eax  
01E9713F  pop         edx  
01E97140  pop         edi  
01E97141  pop         esi  
01E97142  mov         ecx,dword ptr [ebp-4] 
01E97145  xor         ecx,ebp 
01E97147  call        @ILT+640(@__security_check_cookie@4) (1E7C285h) 
01E9714C  mov         esp,ebp 
01E9714E  pop         ebp
01E9714F  mov         esp,ebx 
01E97151  pop         ebx  
01E97152  ret         8
I have four warnings like this, if it helps:
Code:
warning C4731: 'WeightedAverage::averageplane_P4' : frame pointer register 'ebx' modified by inline assembly code
When I comment the P3 version, the C version goes well.
redfordxx is offline   Reply With Quote
Old 27th December 2007, 22:18   #44  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
...pushad and popad helped
redfordxx is offline   Reply With Quote
Old 27th December 2007, 23:36   #45  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
well, Wilbert asked me to compile it, but he forget to ask me to test it
i confirm the bug. I tested it right now only

push ebx
...
pop ebx
will be enough

I also provided him the version compiled by VC7.1 (VC 2003 tollkit),
it works fine with same code (without the patch).


http://forum.doom9.org/showthread.php?t=100374

Last edited by Fizick; 27th December 2007 at 23:45.
Fizick is offline   Reply With Quote
Old 28th December 2007, 15:03   #46  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
I made function AverageM(clip, maskclip, clip, maskclip....) based on Average.
However I have one problem (it is similar as in MaskedMerge in MaskTools): I cannot deliver full range of mask values [0,256] but only [0,255] in maskclips. I have folowing options and I don't know what to do:
1) divide by 256 at the end...cons:cannot have full scale in one maskclip
2) divide by 255 at the end...cons:cannot do fifty-fifty for example (averaging pixels from two clips weighted both by 128 results in x=(a*128+b*128)/255=(a+b)/1.99 instead of (a+b)/2
3) make the weightscale [0,128]... cons: reduced precision

What is your opinion on this?
redfordxx is offline   Reply With Quote
Old 28th December 2007, 15:23   #47  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
BTW:despite there are only constants used in Average, AverageM is by 10%-20% faster;-)
redfordxx is offline   Reply With Quote
Old 26th April 2008, 20:02   #48  |  Link
nonsens112
Registered User
 
nonsens112's Avatar
 
Join Date: Jun 2007
Location: AVCCCP
Posts: 28
redfordxx

can you or anybody else post a link to this wonderful AverageM plugin?
I really need such thing.
nonsens112 is offline   Reply With Quote
Old 27th April 2008, 21:46   #49  |  Link
nonsens112
Registered User
 
nonsens112's Avatar
 
Join Date: Jun 2007
Location: AVCCCP
Posts: 28
can anyone at least post a link to Average's source code?
link above is broken.
nonsens112 is offline   Reply With Quote
Old 27th April 2008, 22:39   #50  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
Is this what you're looking for?
Attached Files
File Type: rar Average_21Oct05.rar (31.2 KB, 427 views)
thetoof is offline   Reply With Quote
Old 27th April 2008, 22:40   #51  |  Link
Nikos
Registered User
 
Join Date: Jun 2002
Location: Greece
Posts: 242
Here: Average_24Oct05
__________________
Greece PAL User...
Nikos is offline   Reply With Quote
Old 27th April 2008, 22:42   #52  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@Fizick,
Quote:
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.
Wilbert is offline   Reply With Quote
Old 28th April 2008, 00:32   #53  |  Link
nonsens112
Registered User
 
nonsens112's Avatar
 
Join Date: Jun 2007
Location: AVCCCP
Posts: 28
thetoof, Nikos

I am looking for an AverageM plugin or source code (in C++) of Average
nonsens112 is offline   Reply With Quote
Old 28th April 2008, 01:02   #54  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
Quote:
Originally Posted by nonsens112 View Post
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" thread.
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Old 28th April 2008, 06:30   #55  |  Link
nonsens112
Registered User
 
nonsens112's Avatar
 
Join Date: Jun 2007
Location: AVCCCP
Posts: 28
gzarkadas

big thanks!
nonsens112 is offline   Reply With Quote
Old 28th April 2008, 18:58   #56  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Quote:
Originally Posted by Wilbert View Post
@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?
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 28th April 2008, 19:01   #57  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
ttttt
Attached Files
File Type: zip average-codeblock.zip (50.7 KB, 2932 views)
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 28th April 2008, 20:47   #58  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
Yes, I have.
You missed it?
I was to lazy to copy it to my hard drive I named it v1.1 (see above).
Wilbert is offline   Reply With Quote
Old 30th April 2008, 23:33   #59  |  Link
rfmmars
Registered User
 
Join Date: Feb 2004
Posts: 743
Whats the hold up?

Quote:
Originally Posted by Fizick View Post
ttttt
Still waiting for this to be approved

Richard
rfmmars is offline   Reply With Quote
Old 4th December 2009, 12:42   #60  |  Link
pbristow
Registered User
 
pbristow's Avatar
 
Join Date: Jun 2009
Location: UK
Posts: 263
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!
pbristow is offline   Reply With Quote
Reply


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:27.


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