Request: allow custom AviSynth DLL path
|Reported by:||stax76||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
I would like to suggest adding support to define the AviSynth DLL location via command line.
If this is too much work then support via environment variable would be sufficient.
Or better support for both env var and CLI were CLI has higher priority.
Why is it important?
In staxrip we want to support installed avisynth and also portable avisynth. We want to have the possibility to use portable mode even when avisynth is installed. This is currently not possible because avisynth is installed in system32. Only a soft link workaround is possible but this requires admin rights or developer mode and that is very unfortunate for a portable app.
Currently, staxrip uses about ten avisynth reader tools and ffmpeg is the only one that blocks default DLL loading by the OS, this is extremely unfortunate because portable mode will not work even when avisynth is not installed.
Sample code found in the frameserver.dll of staxrip:
WCHAR* dllPath = _wgetenv(L"AviSynthDLL"); HMODULE dll; if (FileExists(dllPath)) dll = LoadLibrary(dllPath); else dll = LoadLibrary(L"AviSynth.dll");
Change History (7)
comment:1 by , 15 months ago
|Priority:||normal → wish|
|Version:||unspecified → git-master|