This forum has been archived. All content is frozen. Please use KDE Discuss instead.

vlc/mpv, dolphin and smb streaming

Tags: kio, dolphin kio, dolphin kio, dolphin
(comma "," separated)
Eneen
Registered Member
Posts
71
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
71
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
71
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
15
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
11
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
11
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
mokhan
Registered Member
Posts
1
Karma
0
Hello, I'm trying to load the movie link on VLC but it's not able to stream the video flawlessly. I'm on 150Mbs internet connection but the video seems laggy. Update: I was able to watch movies on my Roku. As listed, on allstreamingsites all the websites are built for Roku and firestick. No need to load links. All legal content.

Last edited by mokhan on Sun Feb 16, 2020 2:53 pm, edited 9 times in total.
ChrisHRD
Registered Member
Posts
11
Karma
0
OS
Hello mokhan,

A couple of questions to help you find a solution: 1) What is your operating system and VLC version? 2) Where is the file located (is it on a LAN or is this over the net)? 3) How are you connecting to the file (SMB4K, VLC internal SMB, other)?

If you could answer these, the community might be able to help you narrow down the possible causes for your issue.

Sincerely,
ChrisHRD
klopyasa
Registered Member
Posts
1
Karma
0
Hi,I am using a MX player and put the link also there but it is restarting again and again, It is making streaming with numerous lag and some time my devices are showing not supported version error. I tried mokhan solution but same thing happen with those links on my media player. Internet speeds is not the problem because it is working on the main solution but not on the last values.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]