OS X Network Playback Detection
I just realized while trying to fix a non-mpv specific problem (weird latency issues on my 13" late 2013 rMBP were causing poor video playback in both VLC and mpv), that I'm not entirely sure if or how mpv distinguishes between smb shares and local files on OS X. My share is mounted in /Volumes by default, and as far as I can tell, mpv ignores my cache-default settings. Am I right to assume that this is because of the lack of smb:// at the beginning of the file's path?
Also this is unrelated, but since at least one of the devs here is on OS X, is there any way to "fix" the unresponsiveness in smb connections? It isn't a speed issue, since I get a constant ~64mbps once data starts flowing from one end to the other, but rather a latency (not even sure if this is the right word for it).
Am I right to assume that this is because of the lack of smb:// at the beginning of the file's path?
Yes, if you run a file from /Volumes/something/file, you are using mpv's file stream as opposed to samba stream. If you want mpv to use Samba directly you will have to use a smb:// URI. I never used Samba myself, but I'd guess that by mounting it to Volumes you are using OS X's implementation of Samba. Even though, afaik, Samba was removed from the last versions of OS X.
Does --cache fix the problem? Note that smb:// doesn't enable the cache by default, but this could be changed.
Does --cache fix the problem?
In terms of actually making the cache work, yes, but in terms of actually fixing the skipping completely, no. I think I'll just experiment with different cache-min and seek options until I find something that doesn't allow mpv to empty the cache before Apple's smb implementation has a chance to connect and authenticate.