Skip to content
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

Illegal characters in path when playing .rar file #57

Closed
Hoernchen opened this issue Jul 26, 2019 · 5 comments
Closed

Illegal characters in path when playing .rar file #57

Hoernchen opened this issue Jul 26, 2019 · 5 comments

Comments

@Hoernchen
Copy link

Playing a rar file with a name of abcd.part01.rar results in a "file path" of abcd.part01.rar|filename.mkv shown at the bottom of the screen and this error message (everything works despite the error message):

ArgumentException

Illegal characters in path.

System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.GetFileName(String path)
at mpvnet.MainForm.<>c__DisplayClass33_0.b__0() in D:\Projekte\CS\mpv.net\mpv.net\WinForms\MainForm.cs:line 370

@stax76
Copy link
Collaborator

stax76 commented Jul 26, 2019

I cannot play a split rar with mkv content in any player, just tried mpc, mpv and potplayer, doesn't work.

I'm not getting an exception however, mpv.net jumps to the next playable file in the playlist.

Is there any player that can play your file? Do you have a download link?

@stax76
Copy link
Collaborator

stax76 commented Jul 26, 2019

Just tried a rar that is not split. Does not work in any player either. I created it with WinRar, maybe my mkv file is not suitable for streaming, maybe mkv is generally not suitable for streaming.

@stax76
Copy link
Collaborator

stax76 commented Jul 26, 2019

I could now reproduce and fix it. Thanks for the report.

@Hoernchen
Copy link
Author

Woops, I guess I should have mentioned my (usual, working) setup, it's mpc-hc with the rarfilesource directshow filter which nowadays appears to live at https://github.com/mirror/rarfilesource, playing the usual scene releases which consist of mkv containers in multipart uncompressed rar archives. VLC will play that without any issues as well - just like stock mpv, at least if you target the first archive.

@stax76
Copy link
Collaborator

stax76 commented Jul 27, 2019

It should work in 5.0 which I just released. Thanks for the feedback.

@stax76 stax76 closed this as completed Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants