-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file open fails when filepath is too long #10025
Comments
Try adding |
I looked at the manifest and found that it's not set to be long path aware. https://github.com/mpvnet-player/mpv.net/blob/main/src/MpvNet.Windows/app.manifest |
It works, thanks. Sorry for the late reply, I did not think this would get any traction. Here is a few things I've noticed
This sets the foundation for many workarounds, thanks. Till now I just shortened the folder name of my downloads, which is still very effective and easy and autoload works. Might just continue with that. |
@haasn @pigoz @Dudemanguy @kasper93 could you please reopen this? While prefixing paths with I keep running into this issue constantly and it's just annoying to deal with... Thanks |
Pull Request: #13134 |
@stax76 wow, thank you for such a quick commit! as soon as an .exe is available, I'll try it out and tell you if it worked - are there any builds other than release builds? is there some sort of head build available? thanks |
(ps @WaiYanMyintMo would you mind reopening while this issue is being worked on? thank you!) |
There are auto builds for pull requests, but they are waiting for approval from a maintainer. See here: |
Thanks! Yeah, I went browsing and just noticed that :) not used to github as a build server, but I can see the artefacts are available there. TY |
Meanwhile, you could test if everything works in mpv.net: https://github.com/mpvnet-player/mpv.net/releases/tag/v7.0.0.4-beta I believe it does, which makes it likely it would also work in mpv. |
Thanks for the attention |
@stax76 I can confirm that this works - I created a file that cannot be opened in 0.35 (the version bundled with the SMPlayer version I have) but it can be opened with the build artefacts from your PR (also used via SMPlayer). This fixes a long standing issue, thank you! |
Reading from long paths should work now. |
Important Information
Reproduction steps
Try to reproduce your issue with --no-config first. If it isn't reproducible
with --no-config try to first find out which option or script causes your issue.
--no-config doesnt work. Still bad.
Describe the reproduction steps as precise as possible. It's very likely that
the bug you experience wasn't reproduced by the developer because the workflow
differs from your own.
"C:\super long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long filepath.mkv" (length 306)
is the file path.
Expected behavior
Command
mpv "Reincarnated Assassin - S01E01 - Quantum Of Trust.mkv"
works.Actual behavior
It doesn't work.
or with
-v
Log file
output-2.txt
Sample files
Not needed.
Extra information by me
Windows long path is enabled.
When taking the log, I had to use "C:\output-2.txt" because
--log-file=output.txt
had error[global] Failed to open log file 'output.txt'
probably because of the same path length issue.Double clicking on file explorer kinda works. It loads. Can watch. However, the
title
property is not correct.Autoload (autoload.lua) does not work. Probably because of the same issue.
The text was updated successfully, but these errors were encountered: