Reply to topic

vlc/mpv, dolphin and smb streaming

Eneen
Registered Member
Posts
64
Karma
0
OS

vlc/mpv, dolphin and smb streaming

Tue Mar 14, 2017 8:57 am
I'm using KDE Neon user edition.
I was trying to play some media from smb server by browsing and running from dolphin. I'm using mpv and vlc but neither can play files that way (vlc is default player in neon). Both players support smb:// protocol but it seems, that dolphin doesn't pass password to them, only username like this:
smb://user@host/folder but not:
smb://user:pass@host/folder
If I add "network folder" in dolphin only host is passed without username and pass like this:
smb://host/folder
To play I have to manually insert link with password into vlc or run mpv using command line. It's not a big problem with vlc but with mpv lots of typing needed sometimes. As I remember gnome has gvfs so it does such things in background, but here in KDE I couldn't find simple and user friendly solution. Is there any?
Eneen
Registered Member
Posts
64
Karma
0
OS
Replying myself as found quite nice integrated partial solution here:
https://bbs.archlinux.org/viewtopic.php ... 9#p1497039
Here is script how to mount cifs with network manager dispatcher but I'm not sure now how to get around root privileges and to keep password hidden:
https://wiki.archlinux.org/index.php/Ne ... IFS_shares
This could be user friendly if somehow integrated with network folders from dolphin, as they are just .desktop files with smb:// links inside put here:
/home/user/.local/share/remoteview/
gyanny
Registered Member
Posts
9
Karma
0
OS
Sorry for my bad english
go to
vlc -> tools -> preferences -> advanced -> input encoders -> access module -> smb
type:
user for samba
password for samba
domain for samba (probably optional)
saves and VLC should be able to play the files on the samba server

Image
Eneen
Registered Member
Posts
64
Karma
0
OS
Ok thanx! It partially solves problem. Unfortunatelly mpv doesn't seem to have parameter for samba. It's only possible to add user:pass to link. Maybe feature suggestion is possible, I'll try.
CapSel
Registered Member
Posts
9
Karma
0
Any news here?
timonoj
Registered Member
Posts
8
Karma
0
Sorry, just subscribing the post. Having the same issue, I thought this was a long done deal. I can use NFS, but it's quite more cumbersome to do so, and allows less mobility. I'd like to be able to just play network videos without much hassle.
Mnemonic
Registered Member
Posts
5
Karma
0
You could mount your movies share in /etc/fstab without revealing the username and password by using Samba's "credentials" option. For example, if your password protected share named "Movies" is on 192.168.1.2, your /etc/fstab entry would look like this:

Code: Select all
//192.168.1.2/Movies /mnt/Movies cifs credentials=/cred/movies.cred,noperm 0 0

(I'm using "/mnt/Movies" as the mount-point in this example)

You would have to then make sure the directory "/cred" exists, and it contains a text file named "movies.cred" which contains:

Code: Select all
username=<username_for_share>
password=<password_for_share>


You could then make sure only root has access to that folder and the movies credentials file:

Code: Select all
sudo chown root:root /cred
sudo chmod 600 /cred/movies.cred

Test that it worked using:

Code: Select all
sudo mount -a


Both VLC and MPV should now be able to play media in the "/mnt/Movies" directory, only users with root privileges will be able to view the samba credentials, and the /mnt/Movies directory will be available on start-up (no need to manually mount it).
ChrisHRD
Registered Member
Posts
3
Karma
0
OS
Hello,

For both my company and my personal projects at home, I ran into this same KIO infrastructure problem. In an effort to find a universal solution, I wrote in detail about my experiences with Plasma[KIO] and Samba in the KDE Brainstorm section. https://forum.kde.org/viewtopic.php?f=83&t=141917

I am hoping a community member familiar with the networking side of the Plasma stack or a KIO developer could join us on this topic.

Sincerely,
chrisHRD

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], crispiatico, Exabot [Bot], Google [Bot], louis94, Nyugame, Sogou [Bot], sudo0272, Yahoo [Bot]