-
Notifications
You must be signed in to change notification settings - Fork 301
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
ArgumentOutOfRangeException MacOS #266
Comments
I don't see how this library would come up with that path. Seems really weird to me |
+1, I'm afraid. I'm seeing a very similar issue on OS X Big Sur (M1 Macbook Pro):
I'm working with pipe input, as here:
Is there anything more we can do to help debug this? |
Which versions of .NET and this library are you using? |
.NET 5.0, and FFMpegCore 4.5.0 |
I am suspecting it may be a bug in the dotnet runtime on MacOS, due to something with permissions. But that is just a guess. This library isn't producing that path, as can be easily seen in the snippet, so it seems the dotnet runtime is translating the path. Maybe due to the But if it is a bug in the dotnet runtime on (M1/ARM) MacOS, it may not make sense to try and support it |
While looking into this, I've identified another issue on my system (MacOS, Big Sur, MacBook Pro M1):
See: instantiator/process-start-info-testing I'm not sure why, and it seems more than happy to find other binaries, like Once I've figured that out I'll get back to looking into what's wrong with the named pipe path. (From a quick scan of some docs, it seems like maybe named pipe paths can look like regular paths, or even just filenames without paths.) |
Interesting finding. It may be related to whether something is in the user-specific PATH variable, or the system-wide one |
Today I realised that this applies to tests run through VS, but not from the It could well relate to the That would suggest, though, that the VS process that launches the tests doesn't have its origin in my shell, which is a bit unexpected. I'm using (Sorry, I know this isn't even about the original issue, and I'm clearly using this thread to rubber duck the new problem. I'll definitely come back to the original path issue soon.) |
@instantiator You could maybe try launching VS from your zsh terminal (if that's not what you're already doing). Maybe it has to do with how the "shortcut" starts VS |
Thanks that was today's TIL! Apparently, Mac GUI applications do not inherit environment variables defined in your shell profile. They can if you launch them with
Armed with that, I'll get back to thinking about paths. 🙂 |
Did some experimentation and created a PR - however, as mentioned this still isn't working. It just clears the issue with the pipe name length: #286 I'm rather hoping you've seen this before, and might have some more ideas. I couldn't figure out how to link the PR to this issue. That might be something you can do. |
Closing this issue since the discussion continued on the PR |
Hi !
I try combine video and audio with code
string path =PipeHelpers.GetPipePath(PipeHelpers.GetUnqiuePipeName());
Console.WriteLine(path);
//client.DefaultRequestHeaders.TransferEncodingChunked = false;
var VideoStream = await client.GetStreamAsync(videoInfo.UrlVideo);
var AudioStream = await client.GetStreamAsync(videoInfo.UrlAudio);
var outputStream = new MemoryStream();
public static string GetUnqiuePipeName() => $"FFMpegCore_{Guid.NewGuid()}";
But it has error about path
ArgumentOutOfRangeException: The path '/var/folders/h0/y1h8qd857xx66dkmj685p8300000gn/T/CoreFxPipe_FFMpegCore_7f8ea927-b6d9-416a-9fde-88e685adaf25' is of an invalid length for use with domain sockets on this platform. The length must be between 1 and 104 characters, inclusive. (Parameter 'path')
How can set path is correct ?
many Thanks
The text was updated successfully, but these errors were encountered: