Bug 342272 - not able to play a Video from my NAS in KDE; Windows, Android, Xubuntu-Clients are working well.
Summary: not able to play a Video from my NAS in KDE; Windows, Android, Xubuntu-Clien...
Status: RESOLVED DUPLICATE of bug 75324
Alias: None
Product: kio
Classification: Unmaintained
Component: smb (show other bugs)
Version: 4.13.3
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-28 10:16 UTC by hhfischer25
Modified: 2018-01-31 17:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
the log from vlc in case of the error (2 trials) (5.66 KB, text/plain)
2014-12-28 13:51 UTC, hhfischer25
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hhfischer25 2014-12-28 10:16:48 UTC
I have a NAS, where i can share an usb-stick. We use it at home to distribute files between windows android and linux. The sharing works in common. But when i try to play a Video from the smb-share, i get errormessages and it will not play. I tried mp4, mpg, webm, divx with vlc, smplayer,  dragonplayer.
 (I used Dolphin: network > smb shares > File -right mouse > play with vlc) 
The share itself works, I can open pictures with gwenview, play mp3 with qmmp...
I'm also able to _copy_ the file to my desktop and play it here. 
The problem exists only for videofilesand only for KDE.
Other clients are always working: 
Windos xp/7: works,
Android 4.2/4: works, 
XFCE (xbuntu 14.04.1): works...
KDE (ubuntu 14.04.1): defekt.



Reproducible: Always

Steps to Reproduce:
1. browse to a smb share with dolphin 
2. right mouse to a video-file (name.mp4)  
3. open with vlc / dragon-player/ smplayer.... 

Actual Results:  
nothing or I receive a errormessige, depending on the used player.
vlc errormessage: 
"Ihre Eingabe konnte nicht geöffnet werden:
VLC kann die MRL 'smb://freitag@fritzbox/fritzbox/Kingston-DataTraveler2-0-01/joe%20bonamassa%20-%20royal%20albert%20hall.mp4' nicht öffnen. Sehen Sie für Details im Fehlerprotokoll nach."

Expected Results:  
play videofile
Comment 1 bunu 2014-12-28 11:36:37 UTC
[I am a GCI student]

If I understand you right you think it is a dolphin bug. Please, report it as such. Could you try installing your xfce file viewer and video player and test with those on your kubuntu machine? And try installing dolphin on your xubuntu machine?

And do this: Sehen Sie für Details im Fehlerprotokoll nach.
Comment 2 hhfischer25 2014-12-28 13:51:02 UTC
Created attachment 90137 [details]
the log from vlc in case of the error (2 trials)
Comment 3 hhfischer25 2014-12-28 14:02:08 UTC
I tried some cases:

- its not a problem with rights (samba or filesystem) (copy is possible, other systems are OK)
- ist not a performanceproblem, because all tests are made on the same hardware (errors and OKs)
- renamed the file to play to aa.mp4 (to make shure, there‘s no name problem with spaces or other language-typical signs) - same result

testet with kubuntu and krusader: error (the same)
testet with xubuntu and thunar: all OK
testet with xubuntu and nemo: all OK
on the same Xubuntu-machine: 
startet vlc (empty) > open file > go to a mp4-file on the nas > play >>> works
(no idea, what file-dialog it is)

next: installed dolphin in my xubuntu 14.04    

start dolphin > browse to the networkfolder > right mouse on mp4-file > play with vlc
Error (the same like i have seen everytime)

start dolphin > browse to the networkfolder > right mouse on mp4-file > play with Parole Media player
!! it copies the file to /var/temp/... anr when ready > it plays the file without problems!!
(not I have initiatet the file copy, it makes it automatically)

(copy before play (with manually works also in dolphin) is not a solution, because the Fritzbox NAS copies with about 2 Mbit/s)

I dont think it's a dolphin problem because krusader didn't work allso.
Mp3-files or pictures work in dolphin over the same share with the same kind of file-access.
( right mouse > open with)
Other Players do allmost the same. (cannot see errormessages, but no file played, no reaction)
Comment 4 Christoph Feck 2014-12-28 15:18:32 UTC
I am unsure which users you are setting up to log into the samba share. Comment #0 says it is "freitag@fritzbox", while comment #2 says "rudi@192.168.178.1", and fails with

access_smb error: open failed for 'rudi@192.168.178.1/fritzbox/Kingston-DataTraveler2-0-01/joe%20bonamassa%20-%20royal%20albert%20hall.mp4' (Permission denied)

Where does the "rudi" name come from?
Comment 5 hhfischer25 2014-12-28 18:50:47 UTC
The NAS knows -among others- both users: freitag and rudi, both have a uniqe password. 
both users are allowed full r/w on the share.  

KUBUNTU uses the kdewallet witch icludes two users for destination 192.168.178.1:
login > rudi with its password
login-2 > freitag with its password
rudi also is the name of my user in kubuntu (local) 
when i went (with dolphin) to the share, it asked me for the passwort of the wallet.
(its the local password from rudi, btw the same as the NAS-password) 
This password opens the wallet (i think) and then transfers the logindata to the NAS.
No idea what else happens...

When i use Xubuntu, theres no wallet - i believe. Whe the filemanager asks, i give the NAS-Password directly.
Comment 6 hhfischer25 2014-12-28 19:10:19 UTC
cleared - for test reasons - the wallet: 
now its no access to the share possible:

dolphin > network it shows:
-samba shares > it shows 2 "workgroups": workgroup and Yello (this is ok and intended)
-network: nothing happens
-network services: nothing happens
-MTP devices 

the NAS is in YELLO
when i try to access, it asks fo username and password only (xubuntu asks also for Group)
i give the login datas and.... the autheticationdialog apears again and again and again... loop
(testet with both logins)  
this is new. untill now i was able to browse tghe NAS without difficulties.
Tomorrow i will further search for the reasons...
Comment 7 Christoph Feck 2014-12-29 00:53:10 UTC
Thanks for the investigation so far. Reassigning to kio-smb developers. They might better understand what you wrote.
Comment 8 hhfischer25 2014-12-29 12:17:05 UTC
would you please reassign this note to the developer? thanks.

Now:
I renamed the workgroup name of the fritzbox from yello to workgroup to minimize sideeffekts.
Then I renewed the share and the users of the fritzbox.
Testet the share fom xubuntu and kubuntu > both OK.

Startet thunar/nemo from _X_ubuntu > browse to share > right mouse to moviefile > play with vlc > both times OK.

Now the other way round: 

startet _K_ubuntu, tested share with copy: OK
installed nemo and thunar on Kubuntu

startet thunar from Kubuntu > browse to share > right mouse to moviefile > play with vlc > error

---------------------------------------------------------------------------------------------------
this is what thunar sayed on commandline:  

rudi@Musikubu1404:~$ thunar

Your Thunar settings have been migrated to Xfconf.
The config file "/home/rudi/.config/Thunar/thunarrc"
is not used anymore.

(thunar:4050): GLib-CRITICAL **: Source ID 553 was not found when attempting to remove it
(thunar:4050): GLib-CRITICAL **: Source ID 761 was not found when attempting to remove it
(thunar:4050): GLib-CRITICAL **: Source ID 853 was not found when attempting to remove it
(thunar:4050): GLib-CRITICAL **: Source ID 946 was not found when attempting to remove it
(thunar:4050): GLib-CRITICAL **: Source ID 1624 was not found when attempting to remove it
(thunar:4050): Gdk-CRITICAL **: IA__gdk_window_get_window_type: assertion 'GDK_IS_WINDOW (window)' failed
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0xeeb118] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[0x7f004c001308] access_smb access error: open failed for 'fritzbox/fritzbox/Kingston-DataTraveler2-0-01/Einsfestival-Sound_City_-_Teil_1-393879_3939610.mp4' (Permission denied)
[0x7f005c000a68] main input error: open of `smb://fritzbox/fritzbox/Kingston-DataTraveler2-0-01/Einsfestival-Sound_City_-_Teil_1-393879_3939610.mp4' failed
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 

(thunar:4050): GLib-CRITICAL **: Source ID 1747 was not found when attempting to remove it
rudi@Musikubu1404:~$ 
--------------------------------------------------------------------------------------------------
next trial with nemo:

Startet nemo from kubuntu > browse to share > right mouse to moviefile > play with vlc > error

and the commandline-output from nemo:
rudi@Musikubu1404:~$ nemo
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
(nemo:4205): GLib-CRITICAL **: g_strrstr: assertion 'haystack != NULL' failed
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0xfc4118] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden.
[0x7f8150000ff8] access_smb access error: open failed for 'fritzbox/fritzbox/Kingston-DataTraveler2-0-01/ForeverYoung.mp4' (Permission denied)
[0x7f81540009b8] main input error: open of `smb://fritzbox/fritzbox/Kingston-DataTraveler2-0-01/ForeverYoung.mp4' failed
Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon 

-----------------------------------------------------------------------------------------------------

short summary:

from XFCE 
- it works with nemo and thunar and from inside vlc (open file....)
- errors when i use dolphin

from KDE
- errors with dolphin, thunar, nemo and krusader.

copy and write operations are possible with all systems: windows xp/7, android, Xubuntu, Kubuntu. 
The problem only exists with video-files: avi, mp4, webm, divX, flv ... 
mp3, jpg etc are all working. (dolphin.. browse share > right mouse > open with.. OK) 

unclear:
in some cases, after a trial whitch leads to an error, i'm not able to go to the share within dolphin.
I cannot even see the share, share-bookmarks are not working, dolphin shows a red errormessage on top.
Sorry for not remebering - something like: there's no share with the name ....
Just now i am not able to reproduce this. 
Made a restart and the share works again.
Comment 9 hhfischer25 2015-02-10 16:37:21 UTC
supplement & error correction

I installed 2 more Systems: kubuntu and ubuntu studio (xubuntu) 14.04.1 to test.
Used Kubuntu Backorts an another Systems: all systems showed the same behavior like described above. 

But:
I probed with another NAS. Used an AMS150 from Fujitsu Siemens and a SMB share.
And it worked! with vlcplayer also in Kubuntu. 
another thing:the (default) Dragonplayer sayes "SMB protocol source" plugin is needed. (Download yes/no solved/found nothing)

Suppost the problem only seams to exist with a share on the Fritz.box at first 
Its a 7390, probed Firmware 6.20 & 6.23 
http://avm.de/produkte/fritzbox/fritzbox-7390/technische-daten/  )

Then I testet once again from Android 4.4 and found a mistake in my description

Result against Fritz box share: 
works with MX player and ES video player, did not play with vlc player and LIVE player (no idea what it is)

result against AMS150 share with video files:
mx player - works
es player - works after caching
Google video player, vlc player - no reaction
(both tested with h264 kompressed mp4 files)

renewed windows-test: worked with vlc and both networkdestinations (ams150 & fritztbox) 

Conclusion:now i have no idea what is the cause of the problem:
kde / player / smb(client?) / fritzbox / me? ...confused
Comment 10 Nate Graham 2017-10-28 15:07:24 UTC
Duplicate of Bug 355328. In essence, the problem is that KIO doesn't actually mount Samba shares anywhere like GNOME's GVFS does (maybe XFCE has some equivalent or uses the same thing?). As a result, all applications that wish to access files on password-protected Samba shares must use KIO. With non-KIO-aware software, KIO falls back to passing them a URL that doesn't include a password in it, and thus the program itself must implement a samba client for access and look up the missing credentials in KWallet.

I am in the process of helping the VLC folks implement this. See:
- https://trac.videolan.org/vlc/ticket/18993
- https://trac.videolan.org/vlc/ticket/18991

*** This bug has been marked as a duplicate of bug 355328 ***
Comment 11 Nate Graham 2017-10-28 15:13:55 UTC

*** This bug has been marked as a duplicate of bug 330192 ***
Comment 12 Nate Graham 2018-01-31 17:21:01 UTC

*** This bug has been marked as a duplicate of bug 75324 ***