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. |
4th May 2020, 23:04 | #81 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Only source filter, same result with ffms2 and l-smash.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
4th May 2020, 23:16 | #82 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Explicit or implicit load? Again - how did you install Avisynth?
__________________
Groucho's Avisynth Stuff |
4th May 2020, 23:25 | #83 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Explicit load, I've not installed but uninstalled avisynth.
I just modify the path env var. Code:
If Not WasInitialized Then Package.Python.AddToPath() Package.AviSynth.AddToPath() Package.VapourSynth.AddToPath() WasInitialized = True End If
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 03:35 | #84 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
http://git.videolan.org/?p=ffmpeg.gi...e2c2e6136931eb
Quote:
In cmd.exe you can do: Code:
mpv.com testver.avs In bash or PowerShell, however, this will fail because those shells do not silently interpret the current directory as being on the PATH, and while you can execute mpv as a program (because Windows' filesystems and permissions systems don't map to the same execution bits that *nix does, it treats all files as executables), it won't load any other .dlls unless they're in a directory on the $PATH. But when you explicitly call the program's executable path: Code:
./mpv.com testver.avs Last edited by qyot27; 5th May 2020 at 03:45. |
|
5th May 2020, 07:56 | #85 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks for the clarification qyot27. I don't know what I should think about overwriting Windows default behavior, appears to be over-zealous. If somebody made a feature request to enable path search via switch, do you think there is a chance it gets accepted?
If I put the tools in the same directory I confirm that it's working.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 5th May 2020 at 08:40. |
5th May 2020, 08:38 | #86 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
However, there is a workaround. Just create symlinks in the ffmpeg/mpv/mpc directories using the Windows mklink command. |
|
5th May 2020, 10:06 | #87 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I've never used mklink even though it appears to be a useful command. Unfortunately I'm not able to create a hardlink in a cmd admin console.
Code:
C:\Users\frank\Desktop\bin>mklink /h .\Apps\Support\mpv.net\AviSynth.dll .\Apps\Support\AviSynth.dll The system cannot find the file specified.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 10:56 | #89 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I successfully created soft links for AviSynth.dll and DevIL.dll in the mpv.net folder but mpv.net still does not open avs.
I think portable vapoursynth has worked in mpv.net even without soft links. Even if I can get it work it's probably not useful for staxrip users or are soft links portable? I can offer a portable version putting everything in the same directory, it's just not clean.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 11:03 | #90 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Soft links yes, hard links no. But you can't have relative soft links I think!? So not really portable then.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
5th May 2020, 11:08 | #91 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
If I could get it work with soft links staxrip could recreate the soft links whenever it notices that it was started from a new location.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 11:28 | #92 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
I checked mpv.net portable x64 5.4.6.0 just now with AviSynth.dll in a subdirectory and a symlink to it next to mpvnet.com|exe. No issues opening a Version() script, or with one loading a local FFMS2.dll and invoking FFVideoSource.
|
5th May 2020, 11:37 | #93 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
@qyot27 Does it affect the symlink if you copy the whole folder elsewhere?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
5th May 2020, 11:46 | #94 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
And avisynth was not located in system32? Here it's not working.
I tested now with vapoursynth, renamed the installed core folder to core- so the installed version cannot work. mpv.net opens vpy using portable vapoursynth (checked in Process Explorer). Even ffmpeg opens vpy using portable vapoursynth, but not mpc be (who cares...).
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 12:00 | #96 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
|
|
5th May 2020, 12:19 | #97 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Thanks for helping! I don't know what I could miss so have to give up for now.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
5th May 2020, 12:41 | #98 | Link |
Registered User
Join Date: Mar 2002
Posts: 2,323
|
I use hardlinks in script on Win8/10 as a normal user, but I can't use softlinks as normal user.
__________________
Ryzen 5 2600,Asus Prime b450-Plus,16GB,MSI GTX 1060 Gaming X 6GB(v398.18),Win10 LTSC 1809,MPC-BEx64+LAV+MadVR,Yamaha RX-A870,LG OLED77G2(2160p@23/24/25/29/30/50/59/60Hz) | madvr config |
5th May 2020, 17:42 | #99 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
It's working now after a reboot.
The German Wikipedia article on symlinks says that Windows soft links support relative paths, I hope that this is portable across machines. In mpv.net I added a workaround. Code:
bool wasAviSynthLoaded; void LoadLibrary(string ext) { if (!wasAviSynthLoaded && ext == "avs") { WinAPI.LoadLibrary("AviSynth.dll"); wasAviSynthLoaded = true; } } edit: it's probably not portable: https://superuser.com/questions/7560...portable-links
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 5th May 2020 at 17:49. |
5th May 2020, 17:52 | #100 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
Edit - The reason I'm asking: Is there some built-in error handling in .net when for example WinAPI.LoadLibrary("AviSynth.dll") fails?
__________________
Groucho's Avisynth Stuff Last edited by Groucho2004; 5th May 2020 at 19:11. |
|
|
|