Opened 3 years ago
Last modified 3 years ago
#8836 new enhancement
Request: allow custom AviSynth DLL path
Reported by: | stax76 | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | ffmpeg |
Version: | git-master | Keywords: | avisynth |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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 , 3 years ago
Keywords: | avisynth added |
---|---|
Priority: | normal → wish |
Version: | unspecified → git-master |
comment:2 by , 3 years ago
comment:3 by , 3 years ago
I support this request. Staxrip provides a very useful interface for FFMPEG among other tools, and having a portable solution is very handy.
comment:4 by , 3 years ago
Component: | avformat → ffmpeg |
---|
I also support this request. I build many tools for Staxrip (also ffmpeg) and I want to support the project in every way. ffmpeg offer many possibilities in combination with the available libraries.
comment:5 by , 3 years ago
I support this request, too. Would be wonderful if this parameter could be added.
comment:6 by , 3 years ago
Component: | ffmpeg → avformat |
---|
comment:7 by , 3 years ago
Component: | avformat → ffmpeg |
---|
I missed that only CLI without env var would not be sufficient.
env var would be necessary because of tools that use lavf like players and encoders.