You are not logged in.

#1 2018-01-12 14:45:36

n-tchen
Member
Registered: 2017-03-07
Posts: 17

[SOLVED]Trying to watch videos in VLC from Samba server results in err

Hi guys,

I have a problem with VLC which is now present for several weeks but worked earlier. When i try to open a video in Dolphin from my Raspberry Samba share it doesn't start but shows an error instead:

Ihre Eingabe konnte nicht geöffnet werden:
VLC kann die Medienadresse 'smb://user@raspberrypi/Video.mp4' nicht öffnen. Für Details bitte im Fehlerprotokoll nachsehen.

Meaning something like "Can not be opened. For details please look up the error protocoll". Yesterday I changed from the offical repositories VLC (2.something) to the the AUR version (vlc-git 4.something) but the problem was still the same. The full log would be:

main debug: processing request item: Video.mp4, node: Wiedergabeliste, skip: 0
main debug: rebuilding array of current - root Wiedergabeliste
main debug: rebuild done - 1 items, index 0
main debug: starting playback of new item
main debug: resyncing on Video.mp4
main debug: Video.mp4 is at 0
main debug: creating new input thread
main debug: Creating an input for 'Video.mp4'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using default timeshift path
main debug: `smb://user@raspberrypi/Video.mp4' gives access `smb' demux `any' path `user@raspberrypi/Video.mp4'
main debug: creating demux: access='smb' demux='smb' location='user@raspberrypi/Video.mp4' file='(null)'
main debug: looking for access_demux module matching "smb": 20 candidates
main debug: no access_demux modules matched
main debug: creating access: smb://user@raspberrypi/Video.mp4
main debug: looking for access module matching "smb": 27 candidates
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in /home/user/.local/share/vlc/lua/meta/fetcher
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
qt debug: IM: Setting an input
dbus debug: Getting All properties
dbus debug: Getting All properties
dbus debug: Getting property Position
dbus debug: Getting property Position
lua debug: Trying Lua scripts in /home/user/.local/share/vlc/lua/meta/art
lua debug: Trying Lua scripts in /usr/share/vlc/lua/meta/art
lua debug: Trying Lua playlist script /usr/share/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: skipping script (unmatched scope) /usr/share/vlc/lua/meta/art/00_musicbrainz.luac
lua debug: Trying Lua playlist script /usr/share/vlc/lua/meta/art/01_googleimage.luac
lua debug: skipping script (unmatched scope) /usr/share/vlc/lua/meta/art/01_googleimage.luac
lua debug: Trying Lua playlist script /usr/share/vlc/lua/meta/art/02_frenchtv.luac
lua debug: skipping script (unmatched scope) /usr/share/vlc/lua/meta/art/02_frenchtv.luac
lua debug: Trying Lua playlist script /usr/share/vlc/lua/meta/art/03_lastfm.luac
lua debug: skipping script (unmatched scope) /usr/share/vlc/lua/meta/art/03_lastfm.luac
main debug: no art finder modules matched
smb error: open failed for 'user@raspberrypi/Video.mp4' (File exists)
main debug: no access modules matched
main debug: dead input
main debug: changing item without a request (current 0/1)
main debug: nothing to play
dbus debug: Getting property Position
qt debug: IM: Deleting the input

Im not able to get something for me useful out of it but I found an entry on askubuntu.com which pointed out that VLC uses it's own "credentials":

[...]I just discovered that VLC does not use whatever connection the desktop supplies, whether it's Gnome or KDE. It creates its own using credentials defined in the settings[...]

When i put my username and password into the VLC settings it indeed works again like it should but that can't be how it's meant to be, or does it?! I don't know if it's a problem with VLC or something else (samba?!), but i can open other filetypes from the samba server like pictures or documents like always. Can someone point into a direction where I should look for a real solution?

Thanks beforehands,
Markus

Last edited by n-tchen (2018-01-12 21:31:10)

Offline

#2 2018-01-12 17:34:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,857

Re: [SOLVED]Trying to watch videos in VLC from Samba server results in err

The desktop doesn't "supply" a connection, that's just ubuntu-level nonsense.

SMB is a protocol. You can mount it using cifs; then the share is transparently mapped into your filesystem and can be used like local files by any client.

But if you've protocol implementations in clients (or libraries/plugins used by them) as in kio, gvfs or smbclient, the client will have to be informed about the credentials (if required)
KDE (like dolphin, gwenview, ...) will typically rely on kio, gnome on gvfs and vlc, being a cross platform video player with its own smb plugin, relies on its own config.

That's normal expectable - smbclient won't read your gnome or KDE settings either; you could just as much expect it to look for a windows installation and query that registry.
A KDE video player will however (most likely) use KIO to handle smb urls and thus use the settings your entered into the KDE config page.

Offline

#3 2018-01-12 21:30:28

n-tchen
Member
Registered: 2017-03-07
Posts: 17

Re: [SOLVED]Trying to watch videos in VLC from Samba server results in err

Thank you very much for the explanation and for the nudge in the right direction. The CIFS mount is a way better solution like I did it till now (smb://user@raspberrypi/ entries in Dolphin with the password in kwallet). I didn't know that you can "integrate" a samba share that directly - afterwards it's just to logical.

For others with a similar problem: The approach is described in the KDE article in the Arch wiki

And, of course, VLC can now play videos (again) from the mounted samba share smile

But one question persist: Why did it work earlier several weeks ago? Was there a change maybe in Dolphin? Maybe I had had also the Samba password added to the Dolphin entries and that was removed...

Thanks once again!

Last edited by n-tchen (2018-01-12 21:33:15)

Offline

#4 2018-01-12 22:17:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,857

Re: [SOLVED]Trying to watch videos in VLC from Samba server results in err

It depends on how you actually invoked vlc, but the desktop services can be invoked either with URLs or files.
For the latter, dolphin would create a temporary local copy of the file and handed that to vlc - not an smb:// url (you would probably have noticed that by a longer delay before the playback)

Offline

#5 2018-03-28 04:00:40

FrederickZh
Member
Registered: 2016-12-27
Posts: 14

Re: [SOLVED]Trying to watch videos in VLC from Samba server results in err

Sorry to jump in out of the blue.

I have exactly the same issue but I wonder why VLC cannot open an smb:// link? The username/password/domain have been configured in Preferences -> Input / Codecs -> Access modules -> SMB and I suppose VLC should use this credential by default?

And interestingly, I have exactly the same configuration in VLC iOS and it's working perfectly.

By any chance for it to be an upstream or packaging issue?

Offline

#6 2018-03-28 06:49:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,857

Re: [SOLVED]Trying to watch videos in VLC from Samba server results in err

The discussion here revolved around vlc and KDE settings - vlc should certainly be able to respect its own settings.
You should take a close look at the protocol to see whether it's really the same problem - and of course double check your SMB settings in VLC.

An unrelated but typical SMB issue is lately the avoidance of SMBv1, so your SMB server config could be relevant.

Offline

Board footer

Powered by FluxBB