Re: The "Custom commands" feature cannot launch MPV.
I downloaded the version you're using, and it really can't play videos via a WebDAV URL.
This made me realize that different builds might behave differently.
I just downloaded
The version I initially used came from https://github.com/hooke007/mpv_PlayKit/releases which includes some useful tools.
When WinSCP calls the
Finally, I downloaded
Conclusion: Although I don’t understand why some programs work fine on their own but can’t be properly invoked by WinSCP, the issue described in this post has been resolved for me. I hope I won’t encounter a similar problem again.
This made me realize that different builds might behave differently.
I just downloaded
mpv-x86_64-20260601-git-44a9b03.7z, and it can play videos from a WebDAV URL. However, it takes over the foreground of WinSCP, preventing me from continuing to use WinSCP; this doesn’t happen when WinSCP calls notepad.exe.
The version I initially used came from https://github.com/hooke007/mpv_PlayKit/releases which includes some useful tools.
When WinSCP calls the
mpv.exe from mpv-lazy-20260510-noVS.7z, an error occurs. So I wrote a wrapper program in Go, and when WinSCP calls this mpv.exe through it, it works fine.
Finally, I downloaded
mpv-lazy-20260510.exe and found that the extracted umpv.exe works very well (mpv.exe would take over the WinSCP foreground). (umpv.exe is a single-instance version of mpv.exe; this feature doesn’t matter to me.)
Conclusion: Although I don’t understand why some programs work fine on their own but can’t be properly invoked by WinSCP, the issue described in this post has been resolved for me. I hope I won’t encounter a similar problem again.