VLC update - no longer can stream videos from smb share

For some time I have used VLC to stream multimedia from a NAS drive over smb. The files play immediately, and do not transfer to a local cache.

This is Leap 15.1 KDE with all multimedia from packman. After a packman update 23 April, files now have to download locally to play. It looks similar to an issue discussed in https://forums.opensuse.org/showthread.php/539418-tumbleweed-update-no-longer-can-play-videos-from-smb-share

Have others had this behavior? What is a workaround to get back to the previous performance?

Thanks,
Howard

These may be of interest to you…
https://forums.opensuse.org/showthread.php/538186-media-over-smb-(smplayer-mpv)?highlight=samba+vlc
https://www.reddit.com/r/openSUSE/comments/fmx7ls/vlc_downloads_video_files_from_smb_shared/

VLC need to get their act together with supporting SMB3…
https://forum.videolan.org/viewtopic.php?f=36&t=150876&start=25

Hi
It should be noted there are three different VLC versions available… OSS, Packman and from Videolan…

@OP, what is the NAS your using and what SMB protocols does it support?

All multimedia are from packman, including VLC, version 3.0.9.2-pm151.6.8.1

Storage is actually an external hard drive, USB connected to a router. The router has samba enabled, but I do not find what version it is.

Regards,
Howard

Hi
Can you try connecting to it via the smbclient and add debug;


smbclient -L <your router ip address> -d 3 

Some recent threads about smb…
https://forums.opensuse.org/showthread.php/538021-After-upgrade-from-15-0-no-network-smb-start-fails
https://forums.opensuse.org/showthread.php/538134-Has-stopped-supporting-older-smb-protocols

Here it is:

howard@HP-oS15KDE:~> smbclient -L 192.168.1.1 -d 3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-git.296.3dd62eee45elp151.2.21.1-SUSE-oS15.0-x86_64).
Connecting to 192.168.1.1 at port 445
got OID=1.3.6.1.4.1.311.2.2.10
Enter CANDH\howard's password: 
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
SPNEGO login failed: The transport connection is now disconnected.
got OID=1.3.6.1.4.1.311.2.2.10
SPNEGO login failed: The transport connection is now disconnected.
session setup failed: NT_STATUS_CONNECTION_DISCONNECTED
howard@HP-oS15KDE:~>

Ignore previous post. Here it is with the right password:

howard@HP-oS15KDE:~> smbclient -L 192.168.1.1 -d 3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-git.296.3dd62eee45elp151.2.21.1-SUSE-oS15.0-x86_64).
Connecting to 192.168.1.1 at port 445
got OID=1.3.6.1.4.1.311.2.2.10
Enter CANDH\howard's password: 
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215

        Sharename       Type      Comment
        ---------       ----      -------
        PUBLIC          Disk      PUBLIC
        IPC$            IPC       IPC Service ()
Reconnecting with SMB1 for workgroup listing.
Connecting to 192.168.1.1 at port 139
got OID=1.3.6.1.4.1.311.2.2.10
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        CANDH                BUFFALO DD-WRT
howard@HP-oS15KDE:~> 

Hi
Can you try by adding the protocol to use and see if it works?


smbclient -m SMB2 -L 192.168.1.1 -d 3
smbclient -m SMB3 -L 192.168.1.1 -d 3

Just confirmation unless it errors out…

Those both ran and gave exactly the same output as

smbclient -L 192.168.1.1 -d 3

Thanks

Hi
I would imagine it’s this change… “Added libsmb2 support for SMB2/3 shares”, I wonder if it’s something on the router defaulting to SMB1, maybe the dd-wrt configuration can be checked?

Buffalo had a firmware update to version DD-WRT v3.0-r30356 std (11/30/17). It included some samba upgrades. I installed that, but

smbclient -L 192.168.1.1 -d 3

still gives the same output, including

Reconnecting with SMB1 for workgroup listing.

VLC still starts downloading the file locally to ~/.cache/kioexec/krun/

dd-wrt.com has a 06-Aug-2019 version, 40559, so I might try flashing that.

I found nothing in any Buffalo documentation about the samba version it uses.

So can you actually log in with the smbclient?


smbclient \\192.168.1.1\PUBLIC -d 3

I think that did not work. I get:

howard@HP-oS15KDE:~> smbclient \\192.168.1.1\PUBLIC -d 3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0

\192.168.1.1PUBLIC: Not enough '\' characters in service
Usage: smbclient -?EgqBVNkPeC] -?|--help] --usage] -R|--name-resolve=NAME-RESOLVE-ORDER] -M|--message=HOST] -I|--ip-address=IP] -E|--stderr] -L|--list=HOST]
        -m|--max-protocol=LEVEL] -T|--tar=<c|x>IXFqgbNan] -D|--directory=DIR] -c|--command=STRING] -b|--send-buffer=BYTES] -t|--timeout=SECONDS] -p|--port=PORT]
        -g|--grepable] -q|--quiet] -B|--browse] -d|--debuglevel=DEBUGLEVEL] -s|--configfile=CONFIGFILE] -l|--log-basename=LOGFILEBASE] -V|--version]
        --option=name=value] -O|--socket-options=SOCKETOPTIONS] -n|--netbiosname=NETBIOSNAME] -W|--workgroup=WORKGROUP] -i|--scope=SCOPE] -U|--user=USERNAME]
        -N|--no-pass] -k|--kerberos] -A|--authentication-file=FILE] -S|--signing=on|off|required] -P|--machine-pass] -e|--encrypt] -C|--use-ccache] --pw-nt-hash]
        service <password>
howard@HP-oS15KDE:~>

Hi
Try;


smbclient \\\\192.168.1.1\\PUBLIC -d 3

Nice, that worked. I got:

howard@HP-oS15KDE:~> smbclient \\\\192.168.1.1\\PUBLIC -d 3
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-git.296.3dd62eee45elp151.2.21.1-SUSE-oS15.0-x86_64).
Connecting to 192.168.1.1 at port 445
got OID=1.3.6.1.4.1.311.2.2.10
Enter CANDH\howard's password: 
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
Try "help" to get a list of possible commands.
smb: \> help
?              allinfo        altname        archive        backup         
blocksize      cancel         case_sensitive cd             chmod          
chown          close          del            deltree        dir            
du             echo           exit           get            getfacl        
geteas         hardlink       help           history        iosize         
lcd            link           lock           lowercase      ls             
l              mask           md             mget           mkdir          
more           mput           newer          notify         open           
posix          posix_encrypt  posix_open     posix_mkdir    posix_rmdir    
posix_unlink   posix_whoami   print          prompt         put            
pwd            q              queue          quit           readlink       
rd             recurse        reget          rename         reput          
rm             rmdir          showacls       setea          setmode        
scopy          stat           symlink        tar            tarmode        
timeout        translate      unlock         volume         vuid           
wdel           logon          listconnect    showconnect    tcon           
tdis           tid            utimes         logoff         ..             
!              
smb: \> dir
dos_clean_name \*]
unix_clean_name \*]
  .                                   D        0  Wed Dec 31 16:00:14 1969
  ..                                  D        0  Sat Apr 25 21:15:37 2020
  sda2                                D        0  Wed Feb  5 10:03:02 2020

                20480 blocks of size 1024. 0 blocks available
Total bytes listed: 0
smb: \> cd sda2
dos_clean_name \sda2\]
unix_clean_name \sda2\]
smb: \sda2\> dir
dos_clean_name \sda2\*]
unix_clean_name \sda2\*]
  .                                   D        0  Wed Feb  5 10:03:02 2020
  ..                                  D        0  Wed Dec 31 16:00:14 1969
  $RECYCLE.BIN                        D        0  Fri Nov 30 16:35:04 2018
  Autorun.inf                         A       38  Mon Jun 15 08:07:12 2015
  Backups                             D        0  Fri Nov 30 16:35:04 2018
  Downloads                           D        0  Sun Apr 19 20:16:40 2020
  FD                                  D        0  Thu Dec 27 15:57:25 2018
  Recording                           D        0  Tue Feb 14 21:30:29 2017
  Seagate                             D        0  Sun Oct  9 20:10:40 2016
  SeagateExpansion.ico                A   562718  Thu Jan  8 14:18:42 2015
  Start_Here_Win.exe                  A 17949304  Thu Mar 24 00:06:10 2016
  System Volume Information           D        0  Thu Jan 26 21:34:11 2017
  Temp                                D        0  Fri Apr 17 16:14:00 2020
  Videos                              D        0  Fri Apr 24 14:34:15 2020
  Warranty.pdf                        A  1146400  Wed Jan  7 23:13:28 2015

                20480 blocks of size 1024. 0 blocks available
Total bytes listed: 19658460
smb: \sda2\> exit
You have new mail in /var/spool/mail/howard
howard@HP-oS15KDE:~> 

I could cd to the USB drive’s partition and list its directories. Connection seems OK.
Thanks

Hi
Can you test with -m SMB2 and SMB3 as well?

Those both work. I get access and can navigate the share.

howard@HP-oS15KDE:~> smbclient -m SMB2 \\\\192.168.1.1\\PUBLIC -d 3 
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-git.296.3dd62eee45elp151.2.21.1-SUSE-oS15.0-x86_64).
Connecting to 192.168.1.1 at port 445
got OID=1.3.6.1.4.1.311.2.2.10
Enter CANDH\howard's password: 
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
Try "help" to get a list of possible commands.
smb: \> cd sda2
dos_clean_name \sda2\]
unix_clean_name \sda2\]
smb: \sda2\> dir
dos_clean_name \sda2\*]
unix_clean_name \sda2\*]
  .                                   D        0  Wed Feb  5 10:03:02 2020
  ..                                  D        0  Wed Dec 31 16:00:14 1969
  $RECYCLE.BIN                        D        0  Fri Nov 30 16:35:04 2018
  Autorun.inf                         A       38  Mon Jun 15 08:07:12 2015
  Backups                             D        0  Fri Nov 30 16:35:04 2018
  Downloads                           D        0  Sun Apr 19 20:16:40 2020
  FD                                  D        0  Thu Dec 27 15:57:25 2018
  Recording                           D        0  Tue Feb 14 21:30:29 2017
  Seagate                             D        0  Sun Oct  9 20:10:40 2016
  SeagateExpansion.ico                A   562718  Thu Jan  8 14:18:42 2015
  Start_Here_Win.exe                  A 17949304  Thu Mar 24 00:06:10 2016
  System Volume Information           D        0  Thu Jan 26 21:34:11 2017
  Temp                                D        0  Fri Apr 17 16:14:00 2020
  Videos                              D        0  Fri Apr 24 14:34:15 2020
  Warranty.pdf                        A  1146400  Wed Jan  7 23:13:28 2015

                20480 blocks of size 1024. 0 blocks available
Total bytes listed: 19658460
smb: \sda2\> exit
howard@HP-oS15KDE:~> smbclient -m SMB3 \\\\192.168.1.1\\PUBLIC -d 3 
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
directory_create_or_exist_strict: invalid ownership on directory /var/lib/samba/lock/msg.lock
cmdline_messaging_context: Unable to initialize messaging context.
Unable to initialize messaging context
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
Can't find include file /etc/samba/dhcp.conf
added interface eth0 ip=192.168.1.145 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 4.9.5-git.296.3dd62eee45elp151.2.21.1-SUSE-oS15.0-x86_64).
Connecting to 192.168.1.1 at port 445
got OID=1.3.6.1.4.1.311.2.2.10
Enter CANDH\howard's password: 
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'naclrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Got challenge flags:
Got NTLMSSP neg_flags=0x628a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x62088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x62088215
Try "help" to get a list of possible commands.
smb: \> cd sda2
dos_clean_name \sda2\]
unix_clean_name \sda2\]
smb: \sda2\> dir
dos_clean_name \sda2\*]
unix_clean_name \sda2\*]
  .                                   D        0  Wed Feb  5 10:03:02 2020
  ..                                  D        0  Wed Dec 31 16:00:14 1969
  $RECYCLE.BIN                        D        0  Fri Nov 30 16:35:04 2018
  Autorun.inf                         A       38  Mon Jun 15 08:07:12 2015
  Backups                             D        0  Fri Nov 30 16:35:04 2018
  Downloads                           D        0  Sun Apr 19 20:16:40 2020
  FD                                  D        0  Thu Dec 27 15:57:25 2018
  Recording                           D        0  Tue Feb 14 21:30:29 2017
  Seagate                             D        0  Sun Oct  9 20:10:40 2016
  SeagateExpansion.ico                A   562718  Thu Jan  8 14:18:42 2015
  Start_Here_Win.exe                  A 17949304  Thu Mar 24 00:06:10 2016
  System Volume Information           D        0  Thu Jan 26 21:34:11 2017
  Temp                                D        0  Fri Apr 17 16:14:00 2020
  Videos                              D        0  Fri Apr 24 14:34:15 2020
  Warranty.pdf                        A  1146400  Wed Jan  7 23:13:28 2015

                20480 blocks of size 1024. 0 blocks available
Total bytes listed: 19658460
smb: \sda2\> exit
howard@HP-oS15KDE:~> 

Best regards

Hi Howard. I don’t commonly use vlc (or play media via remote samba servers), but in an effort to assist I just attempted to play a movie file from a file stored on a Windiws 10 host, and got an error “VLC is unable to open the MRL ‘smb://dean@deanm.local/Downloads/sample.mp4’. Check the log for details.”

After configuring vlc with the appropriate credentials for this share
VLC > Preferences > Show settings (All) > Input / Codecs > Access Modules > SMB (appropriate credentials added here), I could now access the media available on that share. FWIW, if guest access is enabled I found just adding any username and password (eg a, c) was sufficient to gain the necessary access.

More info here:
https://www.dedoimedo.com/computers/vlc-remote-files.html

Hope this helps.

All machines on our network can access the files on the network drive without errors. The VLC credential fields you cite are all blank. Normally, we navigate to the desired file with Dolphin, and click the one to watch. VLC opens and starts playing it.

The issue is that before the update, VLC streamed the file from the remote drive, and play was immediate. Post-update, VLC still accesses the file, but downloads it to local cache, trying to play as it downloads.

The poster at https://forums.opensuse.org/showthre…from-smb-share mentioned in my original post did a lot of testing and concluded it was a fault with packman’s version of ffmpeg-3.

Would switching to openSUSE’s version of ffmep-3 help, or mangle everything by mixing with packman files?

Thanks