View Full Version : AvisynthSwitcher 0.1


akabob
1st March 2003, 21:03
AvisynthSwitcher 0.2

# switch between different avisynth versions
# versions 2.0.7 and 2.5 beta are provided
# let's say you wanna add avisynth 2.0.6 :
# > create a new folder 'AvisynthSwitcher\versions\Avisynth 2.0.6'
# > put avisynth.dll 2.0.6 into

http://www.lalternative.org/x2real

have fun !

Dreassica
1st March 2003, 21:40
i get a Error 75: path/file access error when i try to switch between the 2.

nm forgot to quit vdub -_-

Kurosu
1st March 2003, 21:56
The LoadPluginEx.dll in this (http://www.geocities.co.jp/SiliconValley-PaloAlto/2382/) package enables to use both avs2.0x and 2.5 plugins in a script. I haven't checked if it's AVS2.5 only, or if it can also run under AVS2.0x

It simply supercedes the LoadPlugin() function, therefore you have to load it before you load any avs2.0x plugin.

Example:

loadplugin("F:\Plugins\LoadPluginEx.dll")
function lp(string filter)
{
loadplugin("F:\Plugins\" + filter + ".dll")
}

lp("mpegdecoder")
lp("VSFilter")
lp("tprivtc")
lp("dustv5")

function filter(string num)
{
mpegsource("F:\Video_TS\"+num+".vob")
DoubleWeave()
tprivtc(num+".tpr")
crop(8,2,704,476)
Lanczosresize(512,384)
ConvertToYUY2()
FaeryDust()
ConvertToYV12()
SwapUV()
textsub("F:\Video_TS\"+num+".ssa")
SwapUV()
}

filter("87")+filter("89")


There's a possible speed hit for using an avs2.0x plugin because of the conversions needed to adapt avs2.0x structures to 2.5 environment.

@Akabob
Vobsub's author is Gabest, not "genest"
Anyway, that sure is a usefull switcher, even between different avisynth builds.

jonny
1st March 2003, 23:40
I'm running an avisynth file via mediaplayer.
I'm running your app in the same time.
When i press SWITCH! the only result i have is that the version number disappear in "Selected version:", and no error messages.

I'm running on Win2000 SP3

akabob
1st March 2003, 23:53
I made a simple Version() script, open it with MediaPlayer, got the following error:
#error: 75 File/Path access error

AvisynthSwitcher replace avisynth.dll into system(32) folder, the standard installation folder.
Maybe you didn't install avisynth is that folder.
I'll try to find Avisynth path into registry too.

jonny
2nd March 2003, 00:00
I have avisynth.dll installed on

c:\winnt\system32

Your app works perfectly if avisynth.dll isn't locked, when it's locked i obtain exactly what i've previously written

EDIT: i have Win98SE installed in the same drive, this could be the problem imo

akabob
2nd March 2003, 00:09
that's weird !
Error catcher should catch it ! After switching, I refresh detected one. If nothing change, it meens that files was NOT replaced and registred.

I could check if old and new version are the same and alert user that version was not changed.

jonny
2nd March 2003, 00:22
Another strange thing, i've switched to 98SE and this time the file doesn't get replaced (are you using fixed path for the system dir?)

akabob
2nd March 2003, 00:28
hmmm...
I check if system is win32 or not and put files into system or system32.

This is the wrong way.. I should check if OS is NT or not.
Will change that tomorrow++
now it's time 4 sleeping :)

Belgabor
2nd March 2003, 20:49
Originally posted by Kurosu
The LoadPluginEx.dll in this (http://www.geocities.co.jp/SiliconValley-PaloAlto/2382/) package enables to use both avs2.0x and 2.5 plugins in a script. I haven't checked if it's AVS2.5 only, or if it can also run under AVS2.0x


This thing seems to be the work of a C++ pro, stroke of a genius! The C++ stuff is way beyond my understanding... But it seems to be made to work with both versions and wraps every plugin loaded via it, so you'll have a (probably small) performance hit for every function you load after it, no matter if its made for 2.0 or 2.5.

jorel
2nd March 2003, 23:02
akabob,
i can't get the new AvisynthSwitcher 0.2 in the link:

http://www.lalternative.org/x2real/

:(
i only see the 0.1 version!
any help,please?
:)

Dreassica
2nd March 2003, 23:53
h3e forgot to chance the text on the site, the download IS the 0.2 version.
just download it and u'll see. :D

jorel
2nd March 2003, 23:58
Originally posted by Dreassica
h3e forgot to chance the text on the site, the download IS the 0.2 version.
just download it and u'll see. :D

ok,thanks!
:D

jonny
3rd March 2003, 00:04
@akabob:
0.2 correct all the problems, works on my crappy double system and the error is now reported correctly when the file is locked :)

akabob
3rd March 2003, 08:56
cool :) thx for testing...