diff --git a/FFMpegCore/FFMPEG/Pipes/PipeHelpers.cs b/FFMpegCore/FFMPEG/Pipes/PipeHelpers.cs index 6717dac..3cde7fa 100644 --- a/FFMpegCore/FFMPEG/Pipes/PipeHelpers.cs +++ b/FFMpegCore/FFMPEG/Pipes/PipeHelpers.cs @@ -10,7 +10,10 @@ static class PipeHelpers public static string GetPipePath(string pipeName) { - return $@"\\.\pipe\{pipeName}"; + if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + return $@"\\.\pipe\{pipeName}"; + else + return $"unix:/tmp/CoreFxPipe_{pipeName}"; // dotnet uses unix sockets on unix, for more see https://github.com/dotnet/runtime/issues/24390 } } }