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. |
![]() |
#1 | Link |
Guest
Join Date: Jan 2002
Posts: 21,907
|
Easily switching Avisynth versions
OK, since you are all so clever...
Is there a way for me to have 32-bit and 64-bit Avisynth available and an easy way to switch between them? I am on win8 64 bit. Last edited by Guest; 8th April 2014 at 16:59. |
![]() |
![]() |
![]() |
#2 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
If you are using auto-load, you'll also have to have 2 directories, one for 32 Bit and one for 64 Bit plugins and adjust the registry entry for the auto-load directory (this can also be done with the batch file). Don't use the system32/syswow64 directories for the avisynth/devil DLLs, use a directory to which your PATH environment variable points. Last edited by Groucho2004; 26th November 2018 at 17:37. |
|
![]() |
![]() |
![]() |
#4 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Code:
@echo off SET x86=e:\avisynth_src\x86 SET x64=e:\avisynth_src\x64 SET PlugDir_x86=e:\\avisynth_src\\x86\\plugins SET PlugDir_x64=e:\\avisynth_src\\x64\\plugins SET TargetDir=e:\apps\div if "%1" == "32" ( copy/y "%x86%\avisynth.dll" "%TargetDir%" copy/y "%x86%\system\devil.dll" "%TargetDir%" echo REGEDIT4 > "%TEMP%\$plugins$.reg" echo [HKEY_LOCAL_MACHINE\SOFTWARE\Avisynth] >> "%TEMP%\$plugins$.reg" echo "plugindir2_5"="%PlugDir_x86%" >> "%TEMP%\$plugins$.reg" start/wait regedit -s "%TEMP%\$plugins$.reg" del "%TEMP%\$plugins$.reg" > nul ) if "%1" == "64" ( copy/y "%x64%\avisynth.dll" "%TargetDir%" copy/y "%x64%\system\devil.dll" "%TargetDir%" echo REGEDIT4 > "%TEMP%\$plugins$.reg" echo [HKEY_LOCAL_MACHINE\SOFTWARE\Avisynth] >> "%TEMP%\$plugins$.reg" echo "plugindir2_5"="%PlugDir_x64%" >> "%TEMP%\$plugins$.reg" start/wait regedit -s "%TEMP%\$plugins$.reg" del "%TEMP%\$plugins$.reg" > nul ) Finally, import this reg file. Last edited by Groucho2004; 9th April 2014 at 10:14. |
|
![]() |
![]() |
![]() |
#6 | Link |
Guest
Join Date: Jan 2002
Posts: 21,907
|
I tried to get it working but I have an issue. Here is what I did:
1. Started with a working 32-bit 2.5.8 install. The plugins directory is c:\Program File (x86)\Avisynth 2.5\plugins and it is empty because I never want to auto load. I assume the registry points to this. 1. Made a new directory d:\Avisynth_DLL and moved avisynth.dll and devil.dll into there. I added this directory to my path. I am still able to successfully run scripts that load my 32-bit dgdecodeim.dll in 32-bit virtual dub. 2. I replace avisynth.dll and devil.dll with the AVS+ 32-bit ones. Everything still works. 3. Now I replace avisynth.dll and devil.dll with the AVS+ 64-bit ones. I change my script to load my 64-bit dgdecodeim.dll. Now, I load the script into 64-bit VirtualDub. I get an AVI Filter Import error: (Unknown)(80040154). Any ideas how to fix that? Maybe it has to do with the plugins dir. I am trying to avoid having to change the registry. Last edited by Guest; 8th April 2014 at 15:29. |
![]() |
![]() |
![]() |
#7 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Edit: Sorry, I just saw that your plugin dir is empty. What happens when you run the script with 64 Bit AVSMeter? Last edited by Groucho2004; 8th April 2014 at 15:36. |
|
![]() |
![]() |
![]() |
#9 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Also, have a look at this post. If you installed AVS+ before there may be some 32 Bit DLLs somewhere. Also, did you remove the 32 Bit avisynth.dll and devil.dll from syswow64?
Last edited by Groucho2004; 8th April 2014 at 15:41. |
![]() |
![]() |
![]() |
#10 | Link |
Guest
Join Date: Jan 2002
Posts: 21,907
|
I never installed AVS+. Yes I removed the DLLs.
The registry location shown in your linked post do not match mine. Mine is: ...\wow6432node\Avisynth 2.5\plugins Should I try to make another entry without the wow6432node in the path? Seems wrong, though, because AVS+ 32-bit is working. |
![]() |
![]() |
![]() |
#12 | Link |
Guest
Join Date: Jan 2002
Posts: 21,907
|
That didn't help. Am I maybe missing some registration or something? It feels like it is not even trying to load the avisynth.dll in 64 bit mode.
I will try to install the reg stuff you gave earlier. Last edited by Guest; 8th April 2014 at 16:05. |
![]() |
![]() |
![]() |
#16 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 | Link |
Guest
Join Date: Jan 2002
Posts: 21,907
|
When I looked before changing anything this one was missing:
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Media Type\Extensions\.avs] @="" "Source Filter"="{D3588AB0-0781-11CE-B03A-0020AF0BA770}" I tried adding it manually but I must have made a mistake. Merging your reg file obviously fixed that. The only mystery was why 32-bit worked and 64-bit did not, but never mind, I am able to do my work now. |
![]() |
![]() |
![]() |
#20 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,645
|
Try a fresh install from the avs+ installer to see if it work first, it will install both 32 and 64 bit automatically. One script will work for both version if the necessary plugins are in their respective plugin folders.
http://avs-plus.net/ |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|