mpv smb://192.168.10.12/download/1.mp4 2.mp4
Playing: smb://192.168.10.12/download/1.mp4
[ffmpeg] Protocol not found. Make sure ffmpeg/Libav is compiled with networking support.
Failed to open smb://192.168.10.12/download/1.mp4.
Seconded. This is kind of disastrous, despite being with VLC as an alternative but it would have interfered many people who regularly plays movies, and [cough] especially animes from NAS on LAN. And I am sure that many developers and homies are quite disturbed by this already. Hopefully there are some quick updates that has FFmpeg re-compiled with the --enable-libsmbclient
and pushed into the new release cycle.
It is not impossible to re-compile it by ourselves but most donât want to break their own systems when the orthodox fix kicks in. Of if, by chance, that there wonât be a foreseeable timeline that this will be added, I would be appreciated if anyone points out. Thanks.
I found this thread by chance after some choice keyword searching. Thankfully Iâm not the only one experiencing this problem, but I wish it wasnât changed.
Iâm just a casual Linux user getting back into things after 15 years away. Sad to see things have advanced so much yet these libraries break functionality so easily.
Hereâs hoping mpv will work again soon.
If the smb share is not just present somewhere, but actually mounted,
as it usually is (I think)
the movie file can be accessed just like any other file via itâs path, no need to use the special smb:// protocol
no?
Canât test/verify - donât have such a share to play with.
It fails to open videos via dolphin and the command line. Correct me if Iâm wrong, but all operations from the command line require a protocol. It just refuses when I try âmpv 192.168.xxxâŚâ while the error for smb is very specific that it doesnât support network operations. Itâs like it wasnât compiled with networking support, either deliberatly or via oversight.
user@manjaro-vm ~]$ mpv smb://192.168.xxx.xxx/shared/20201002_130317.mp4
[ffmpeg] Protocol not found. Make sure ffmpeg/Libav is compiled with networking support.
Failed to open smb://192.168.xxx.xxx/shared/20201002_130317.mp4.
but when the smb share is mounted - letâs say it is mounted to /shared
⌠because that is where you chose to mount it to âŚ
the path to the file would then be
/shared/20201002_130317.mp4
and mpv (or any other tool) could access it going that way
mpv /shared/20201002_130317.mp4
should work
no need to go through smb with the player itself when the directory the file is in is already part of the filesystem structure because it is ⌠mounted to there
That was my reasoning - which I canât test, because I have no smb shares to mount, which then should be accessible like any other file on the system.
⌠there should be no need for the smb protocol in the player (or any other tool) - the work is already done by way of mounting it to some place/directory (which is itself done via the smb protocol)
the share mount (through smb) does the âheavy liftingâ
the player just needs to know how to access local files âŚ
Ok, I see what youâre saying. I was using this method earlier but gave up since i had to âumount -aâ after each boot⌠maybe the fstab syntax wasnât correct since it never auto-mounted.
I added it as a quick location in Dolphin which is recognized as a smb share and mpv refuses to open due to the ffmpeg issues.
I started looking at downgrading the ffmpeg package last night to a version earlier than December, as thatâs when the problem started.
So there was a Chinese post stating this problem pretty much at the meantime of the initiation of this post. I later have tried a few ways and found the solution by building ffmpeg-git with customization of PKGBUILD file. Then I wrote the solution here in Chinese: ä¸č˝ććžsambaä¸çč§é˘ďźč˛äźźĺffmpegćĺ ł - #4 by Wieczorkiewicz
You can find the solution by pasting it into any translate software, then itâs all cakewalk.
https://bugs.archlinux.org/task/69798
I requested to readd smb support to ffmpeg/mpv, but it was denied.
These Arch guys are so kind and helpful.
You have your answer in the bug report.
With Arch/Manjaro its is really easy to compile it yourself. Use the PGKBUILD file and adjust it to your liking.
You can use smbget and pipe the ouput to mpv:
smbget -U=<USER>%<PASSWORD> -O smb://<FILENAME> | mpv --stream-buffer-size=2m -
Unfortunately this gives an error âCannot seek backward in linear streams!â on streams larger than buffer size, but maybe mpv has options to play a piped stream.