u8sand / Baka-MPlayer

The libmpv based media player
https://u8sand.github.io/Baka-MPlayer/
GNU General Public License v2.0
433 stars 93 forks source link

SFTP support on Windows #230

Open ghost opened 7 years ago

ghost commented 7 years ago

Could you please make it possible to play files from a SFTP server on Windows? On Linux, it works fine with plain MPV…

u8sand commented 7 years ago

It works with baka on linux using the location dialog, the only reason I imagine it might not work is if libssh isn't available on the compiled windows version. Can you confirm that using the format sftp://$user@$host:22/$path in the baka location dialog doesn't work?

Sincerely, Daniel J. B. Clarke

On Sat, Nov 12, 2016 at 4:02 PM, wb9688 notifications@github.com wrote:

Could you please make it possible to play files from a SFTP server on Windows? On Linux, it works fine with plain MPV…

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/230, or mute the thread https://github.com/notifications/unsubscribe-auth/ABR5pd46nshCcb62U1jWAJSdpC2K65NLks5q9iljgaJpZM4Kwhrw .

ghost commented 7 years ago

@u8sand: That doesn't work with the official Windows builds of Baka-MPlayer, but it works fine on my Linux machine…

u8sand commented 7 years ago

In that case, it's most likely as I said. I'll try to recompile it for Windows with the necessary support.

On Nov 12, 2016 4:55 PM, "wb9688" notifications@github.com wrote:

@u8sand https://github.com/u8sand: That doesn't work with the official Windows builds of Baka-MPlayer, but it works fine on Linux where I've a libmpv that supports SFTP…

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/230#issuecomment-260150966, or mute the thread https://github.com/notifications/unsubscribe-auth/ABR5pRQwRDFVimuERR47UkBjp6zskBR_ks5q9jXLgaJpZM4Kwhrw .

ghost commented 7 years ago

I'll try to recompile it for Windows with the necessary support.

@u8sand: Have you re-compiled it with SFTP support in the mean time? If so, can you share that build? Btw what distro do you use for cross-compiling it for Windows?

u8sand commented 7 years ago

@wb9688: I use ArchLinux and the script in the cross_compile directory: https://github.com/u8sand/Baka-MPlayer/tree/master/windows

Though recently most of the relevant AUR packages have been created for the entire build steps of baka, circular dependencies and aur package inconsistencies have made it difficult to use.

The build system we use has its downsides, such as the necessity to completely recompile the entire toolchain when the authors break things. Such is why it will take me still some time to get this built.

On Mon, Nov 14, 2016 at 8:08 AM, wb9688 notifications@github.com wrote:

I'll try to recompile it for Windows with the necessary support. @u8sand https://github.com/u8sand: Have you re-compiled it with SFTP support in the mean time? If so, can you share that build? Btw what distro do you use for cross-compiling it for Windows?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/230#issuecomment-260330208, or mute the thread https://github.com/notifications/unsubscribe-auth/ABR5pQlfIXcYSES2VRZVAs_uhrMk4910ks5q-F0zgaJpZM4Kwhrw .

u8sand commented 7 years ago

I got the release version rebuilt with ssh support (I think), please try it. Unfortunately building the master isn't working for whatever baffling reason, hopefully one which will resolve itself in the near future.

https://dl.dropboxusercontent.com/u/13483445/i686.zip https://dl.dropboxusercontent.com/u/13483445/x86_64.zip

See #231 for more information about my latest cross-compilation adventures.

ghost commented 7 years ago

@u8sand: I've tried it, but it gives the error "File couldn't be opened", while I've typed the path correctly and the permissions are OK.

godly-devotion commented 7 years ago

According to the logs it says that the protocol was not found.

[mpv]: Playing: sftp://josh@192.168.1.2:22/$path
[mpv]: Protocol not found. Make sure ffmpeg/Libav is compiled with networking support.
[mpv]: Failed to open sftp://josh@192.168.1.2:22/$path.

Hmm..