View Full Version : Can't get AutoOverlay to work
Frank62
14th August 2018, 11:29
Please help, I have no further ideas what to try next...
-I installed the newest version of AvsFilterNet and AutoOverlay, as specified in the ReadMe, doesn't work.
-AVSMeter says:
"C:\Program Files (x86)\AviSynth\plugins\AutoOverlay_netautoload.dll"
Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: D:\Programme\AVSMeter281\AVSMeter281\AVSMeter.exe
Address: 0x010DC51B
AvsFilterNet loads well.
-I tried older versions, down to 0.1.3 - the same
-.net 4 is installed and works, even Visual Studio 2015 is installed on this machine (Win 7 64 Bits)
-I tried everything on another machine (also Win 7 64) - the same
-Just to get it somehow to work I tried it on Win 10 - doesn't work
Is there any trick to get this installed? If missing dependencies I could understand, but why access violation, and how then can it work at all?
Any idea, friends?
StainlessS
14th August 2018, 12:30
"C:\Program Files (x86)\AviSynth\plugins\AutoOverlay_netautoload.dll"
You got Avs+ latest installed ? [it is required]
EDIT: I got it working here on XP32, although I aint got any idea what I'm doing, but at least it dont crash.
EDIT: with manual dll load here works.
LoadPlugin(".\AvsFilterNet.dll")
LoadNetPlugin(".\AutoOverlay_netautoload.dll")
Avisource("D:\Parade.avi")
OM=Crop(0,0,Width/4*4,Height/4*4).ConvertToYV12
WS=OM.Crop(0,0,-64,-64)
OM=OM.Crop(64,64,-8,-8)
#OM=AviSource("c:\test\OpenMatte.avs") # YV12 clip
#WS=AviSource("c:\test\Widescreen.avs") # YV12 clip
OverlayEngine(OM.ConvertToY8(), WS.ConvertToY8(), configs=OverlayConfig(subpixel=2))
OverlayRender(OM.ConvertToYV24(), WS.ConvertToYV24(), debug=true)
ConvertToYV12()
Frank62
14th August 2018, 12:41
Yes, I have only avisynth 2.6 installed, without the plus. The requirements say:
AviSynth 2.6 or higher, AviSynth+
...
I interpreted the comma as an OR. I will give A+ a try - never used before.
:thanks: so far!
StainlessS
14th August 2018, 12:46
Oops, yes you are correct, musta misread that.
Moved plugs to autoload plugins directory, just getting blank frame, looks like I'm also having problems with the autoload stuff, but
not with manual load of dlls.
EDIT: Autoload plugins, and same script as posted above, and with "avsmeter test.avs", getting Buffer overflow message from
Avsmeter v2.81.
EDIT: With AvsMeter Avsinfo, getting
"C:\Program Files\AviSynth+\plugins\AutoOverlay_netautoload.dll"
Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: C:\BIN\AVSMeter.exe
Address: 0x0040C51B
EDIT: Maybe its an AVS+ autoload problem, which version avs you using, I'm on r2728.
EDIT: Below no problem with dll's in plugins directory
return version
EDIT: Also copied AutoOverlayNative.dll (which aint mentioned in readme) into plugins dir and got this
"C:\Program Files\AviSynth+\plugins\AutoOverlayNative.dll"
Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: C:\BIN\AVSMeter.exe
Address: 0x0040C51B
___________________________________________________________________
"C:\Program Files\AviSynth+\plugins\AutoOverlay_netautoload.dll"
Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: C:\BIN\AVSMeter.exe
Address: 0x0040C51B
Frank62
14th August 2018, 14:49
I just installed also A+ r2728. Simple script works fine, so everythng fine about my other plugins.
But AvsFilterNet:
No crashing any more, but pure loading of the AvsFilterNet-plugin now lasts forever.
Also the older ones that were provided with the older versions of AutoOverlay show the same behaviour: VirtualDub: CPU utilization 13%, about 45MB memory not fluctuating.
I also renamed the dll, removed the autoload part, no other autoloads of this kind in the directory - useless.
I will try under XP, if I get .net 4 installed...
Groucho2004
14th August 2018, 16:21
With AvsMeter Avsinfo, getting
"C:\Program Files\AviSynth+\plugins\AutoOverlay_netautoload.dll"
Exception 0xC0000005 [STATUS_ACCESS_VIOLATION]
Module: C:\BIN\AVSMeter.exe
Address: 0x0040C51B
The "AutoOverlay_netautoload.dll" is not a plugin, it just contains the code for "AutoOverlay" accessed through avsfilternet.dll which is the plugin that interfaces with Avisynth.
The reason why Avsmeter throws an exception is that "AutoOverlay_netautoload.dll" seems to have a non-standard PE header and WinAPI functions like "MapAndLoad()" are choking on it.
Apart from that, I can't get this to work at all (VDub, mpchc), auto-load or not. I get .NET unhandled exceptions all over the place.
Frank62
14th August 2018, 17:10
AvsFilterNet is only the wrapper, you are of course right. I just thought that in spite of this fact AVSMeter would gather some information via AVSFilterNet about its sub-plugins, that's why I tried to get some help on this way.
I just installed different versions of AVSFilterNet on a CLEAN and new Win10-installation. I installed AVISynth+ and put ONLY the two plugins in the plugins directory (later, just to see, in the plugins+ dir.) AVSFilterNet loads correctly. But always the error when trying to load AutoOverlay-plugin that it were no correct .net-assembly. Different versions. The "native" plugins are not accepted at all, don't know what is meant by "native" then?
Just to be sure:
@stainlessS, the pure plugin-loading worked for you on XP? Did I get this right?
I read a lot about this plugin, and it would be very interesting for some tasks for me. Other people strangely seem to have not many problems with it?
I formerly used some other ideas for getting two clips exactly overlayed (after interleaving then DeShaker, and some handwork the results were not too bad) but it is a lot of work with a lot of problems, which could be omitted if this plugin worked...
Groucho2004
14th August 2018, 18:02
I just thought that in spite of this fact AVSMeter would gather some information via AVSFilterNet about its sub-plugins, that's why I tried to get some help on this way.I'll fix the exception problem in AVSMeter (AutoOverlay_netautoload.dll will be listed as "uncategorized DLL").
Even with the current version (2.8.1) you can use "avsmeter avsinfo -log" and get the list of external functions:
[External (plugin) functions]
AvsFilterNet_BilinearRotate
AvsFilterNet_ColorAdjust
AvsFilterNet_ColorRangeMask
AvsFilterNet_CustomOverlayRender
AvsFilterNet_LoadNetPlugin
AvsFilterNet_OverlayCompare
AvsFilterNet_OverlayConfig
AvsFilterNet_OverlayEngine
AvsFilterNet_OverlayMask
AvsFilterNet_OverlayRender
AvsFilterNet_StaticOverlayRender
Frank62
14th August 2018, 18:27
Thank you! But you won't believe it: Just started with -log and the same hang-up as with script and VirtualDub. Lasts forever, does nothing, but 13% CPU load.
By now I give sadly up, no more time.
Thank you for your kind help so far!
Frank62
14th August 2018, 21:29
Just got it at least on Win 10. The two plugins load. I think it must have been the "This file came from another computer and might be blocked ..." thing. Never had heard of those issues, sorry, if this was trivial.
After all I get some black frames with colour adjust(), but no errors so far. Looking forward to learn how it works!
Frank62
14th August 2018, 22:24
If someone is interested:
With avsfilternet 1.0.4 from mysteryX's github it works, NOT with the included ones.
I am very curious, how good it works!
introspected
15th August 2018, 05:45
If someone is interested:
With avsfilternet 1.0.4 from mysteryX's github it works, NOT with the included ones.
I am very curious, how good it works!
It will cause memory leaks. Try new version of autooverlay and avsfilternet with fixed back compability with old avisynth.
Frank62
15th August 2018, 09:42
Thanks for your reply, but:
-I have a clean Win10-installation without AviSynth classic, ONLY AviSynth+
-Your version 0.22 works fine (apart from memory leaks you mentioned), but not together with the included AvsFilterNet, only with the newest one from mysteryX
-Your new version 0.23 does EDIT:
load correctly (I forgot again to unblock the dlls, but never again...), but then throws a lot of errors. I keep trying.
This on my system, of course - but as I said: a clean, new Win10-professional installation.
StainlessS
15th August 2018, 12:23
By G2K4,
Apart from that, I can't get this to work at all (VDub, mpchc), auto-load or not. I get .NET unhandled exceptions all over the place.
The previously posted code works for me (at least it dont crash on XP32, AVS+ r2728)
#return version
LoadPlugin(".\AvsFilterNet.dll")
LoadNetPlugin(".\AutoOverlay_netautoload.dll") # EDIT: dll's in current directory, (works with/without also in Plugins)
Avisource("D:\Parade.avi") # GamMac'ed YV12 W Mod 4, H Mod 4 version of JohnMeyer parade clip
OM=Crop(0,0,Width/4*4,Height/4*4).ConvertToYV12 # EDIT: Crop(/4*4) stuff not necessary with this clip)
WS=OM.Crop(0,0,-64,-64)
OM=OM.Crop(64,64,-8,-8)
#OM=AviSource("c:\test\OpenMatte.avs") # YV12 clip
#WS=AviSource("c:\test\Widescreen.avs") # YV12 clip
OverlayEngine(OM.ConvertToY8(), WS.ConvertToY8(), configs=OverlayConfig(subpixel=2))
OverlayRender(OM.ConvertToYV24(), WS.ConvertToYV24(), debug=true)
ConvertToYV12()
by Frank62
Just to be sure:
@stainlessS, the pure plugin-loading worked for you on XP? Did I get this right?
Exactly as in code block above, (although dont really [EDIT: know for] sure what you mean by pure plugin-loading).
Also, what does "Lasts Forever" mean.
But AvsFilterNet:
No crashing any more, but pure loading of the AvsFilterNet-plugin now lasts forever.
Groucho2004
15th August 2018, 14:10
By G2K4,
Apart from that, I can't get this to work at all (VDub, mpchc), auto-load or not. I get .NET unhandled exceptions all over the place.
This may have been due to the .NET4 version I had installed.
Anyway, this .NET stuff adds yet another layer of complexity (and obviously problems) to an already complex system. I wonder what happens when you try to multi-thread this thing.
Frank62
15th August 2018, 14:26
Stuck again... after trying the newer version with different avsfilternet-dlls it hangs again with 100% the same versions that worked last night, unblocked or not. Must have been a dream.
@StainlessS
"lasts forever" meant that VirtualDub hang, no response any more, no matter, how long I waited, but CPU load of constant 13%. Forgive my not perfect English.
"pure plugin loading" meant just the two lines for the loading plus a version-line, no rendering.
I'll wait until this will be more stable, too much time waisted. My technique with deshaking the interleaved clips does work, so I can wait. If stable this would be extremely useful!
poisondeathray
15th August 2018, 22:31
I can't get it working either, avs+ x64 , or avs classic x86. But I have .Net 4.7.2 or do you need a specific version ?
It "hangs" in vdub2 like Frank62 describes. No error message
But the same script in avspmod, produces an error message - one error that sticks out in avspmod is "Could not load file or assembly 'AutoOverlayNative, Version=0.0.0.0 Culture=neutral, PublicKeyToken=null' or one of it's dependencies. The system cannot find the file specified.
I tried loading the AutoOverlayNative.dll ,and various combinations of manual/autoloading - no luck. The docs don't say anything about AutoOverlayNative.dll even though it's included in the package
introspected
16th August 2018, 05:49
I can't get it working either, avs+ x64 , or avs classic x86. But I have .Net 4.7.2 or do you need a specific version ?
It "hangs" in vdub2 like Frank62 describes. No error message
But the same script in avspmod, produces an error message - one error that sticks out in avspmod is "Could not load file or assembly 'AutoOverlayNative, Version=0.0.0.0 Culture=neutral, PublicKeyToken=null' or one of it's dependencies. The system cannot find the file specified.
I tried loading the AutoOverlayNative.dll ,and various combinations of manual/autoloading - no luck. The docs don't say anything about AutoOverlayNative.dll even though it's included in the package
I don't test plugin in virtualdubmod. Just in avspmod. It is good for x64 avisynth.
AutoOverlayNative is the new module. All three files should be copy to plugins folder. After that check that they are not blocked by windows. Windows 10 have such chekbox in file properties dialog. https://forum.doom9.org/showthread.php?p=1848953#post1848953
.NET 4.7 includes 4.0 and AutoOverlayNative is not a .net plugin. Just tested again x86 and x64 latest releases on my win 10 pro .net 4.7 machine in AvsPMod x86 and x64 with avisynth 2.6 x86 and avs+ x64. Works well.
Groucho2004
16th August 2018, 09:11
I don't test plugin in virtualdubmod. Just in avspmod. It is good for x64 avisynth.
AutoOverlayNative is the new module. All three files should be copy to plugins folder. After that check that they are not blocked by windows. Windows 10 have such chekbox in file properties dialog. https://forum.doom9.org/showthread.php?p=1848953#post1848953
.NET 4.7 includes 4.0 and AutoOverlayNative is not a .net plugin. Just tested again x86 and x64 latest releases on my win 10 pro .net 4.7 machine in AvsPMod x86 and x64 with avisynth 2.6 x86 and avs+ x64. Works well.
OK, I got it working now on XP64 (32 and 64 bit plug) using your sample from the source zip file. I installed .NET4 from here (https://www.microsoft.com/en-us/download/details.aspx?id=17718) and followed your instructions. Next I'll try W7_64.
Edit: W7 works fine, too.
poisondeathray
16th August 2018, 14:54
I don't test plugin in virtualdubmod. Just in avspmod. It is good for x64 avisynth.
AutoOverlayNative is the new module. All three files should be copy to plugins folder. After that check that they are not blocked by windows. Windows 10 have such chekbox in file properties dialog. https://forum.doom9.org/showthread.php?p=1848953#post1848953
.NET 4.7 includes 4.0 and AutoOverlayNative is not a .net plugin. Just tested again x86 and x64 latest releases on my win 10 pro .net 4.7 machine in AvsPMod x86 and x64 with avisynth 2.6 x86 and avs+ x64. Works well.
Thanks, I got it working
All three files was the key for me. I think it would help if you updated the docs to clarify this
Also, I couldn't manually load AutoOverlayNative.dll, nor combinations of autoloading AutoOverlayNative.dll with manually loading the others. All 3 had to be in the plugins directory
Groucho2004
16th August 2018, 16:14
Thanks, I got it working
All three files was the key for me.Yep, same here.
Also, I couldn't manually load AutoOverlayNative.dll, nor combinations of autoloading AutoOverlayNative.dll with manually loading the others. All 3 had to be in the plugins directoryNeither AutoOverlayNative.dll nor AutoOverlay_netautoload.dll are plugins. AvsFilterNet.dll is the actual plugin that interfaces with Avisynth.
introspected
16th August 2018, 20:48
AutoOverlay is the .NET plugin that could be loaded by avisynth function LoadNetPlugin from AvsFilterNet. Groucho2004 is right. AutoOverlayNative provides native code for .NET AutoOverlay plugin and is not linked with avisynth at all. Added to readme.
Frank62
16th August 2018, 21:51
Yep, same here.
I agree, and it finally works fine with all three files in the plugins directory, and all unblocked. Will test further tomorrow.
:thanks:
Frank62
13th February 2022, 19:14
As I see it took me over three years to come back to this point. Seems I had too much work. :eek:
I am just testing the plugin. It works, that means it loads correctly, and no errors, BUT: It doesn't do anything.
I try to adjust two sources. To see the result I set debug=true and opacity=0.5. The plugin simply seems to do nothing, also debugging infos cropping always zeroes.
To be sure I take one of the sources, cropp it a bit left and up, and try to let these only slightly different sources align: Again nothing at all. What am I doing wrong?
Do I misunderstand the whole thing? I thought that two slightly different sources in left, up, width and height would be auto-adjusted, so that they would fit, so when you overlay them they would be congruent? Am I wrong here? My most simple script:
v1=some source...
v2=v1.crop(8,8,-0,-0)
ve=OverlayEngine(v1, v2)
vo=OverlayRender(ve, v1,v2, opacity=0.5,mode=2,width=1480, height=1082)
return vo
StainlessS
13th February 2022, 20:46
AutoOverlay, Author Introspected:- https://forum.doom9.org/showthread.php?t=175247
Introspected was here either yesterday or earlier today, so he'll probably be around soon.
EDIT: Was Updated 29 dec:- https://forum.doom9.org/showthread.php?p=1960166#post1960166
Frank62
13th February 2022, 22:12
Thanks, but I read all this, and have also the newest version. Maybe he can help.
poisondeathray
14th February 2022, 02:25
I just tried 0.5.2 and it works ok
Did you try Lenna.landscape.jpg, and Lenna.portrait.jpg in the Sample demo on the github page?
Frank62
14th February 2022, 12:44
Just tried, works (after having cropped the portrait, because of odd width). So why the hell does it not work if you
-take twice the same source
-crop one of it a few pixels
-let these auto overlay
:confused:
By the way, this was only testing to avoid that f. e. sources are too different. It also doesn't work for the sources I'd love to see it work...
poisondeathray
14th February 2022, 16:41
a=colorbars(pixel_type="YV12").trim(0,-1)
b=a.crop(8,8,0,0,true).levels(0,0.5,255,0,255)
OverlayEngine(a,b)#, editor=true)
OverlayRender(a,b, colorAdjust=-1 , opacity=0.5, mode=1)
I darkened the overlay cropped version to see
Does this do anything for you ? It tries to align , but there is a mismatch . I didn't go into OverlayEngine editor, perhaps you can align it better with adjusting the settings
If it does "nothing", what version of avisynth ? There was an overlay bug in 3.7.2 test 2 that was fixed in test 3.
Frank62
14th February 2022, 17:06
Ok, I can't say it does NOTHING, but there is no watchbale effect, although in debug=true it says "frame successfully aligned". The same with my two clips I wanted to align, no matter what parameters I change. But Lenna works! So I'll have to figure out, why. :cool:
Avisynth+ version is 3.7.1
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.