From c4e067f5b534ad09e12a5aec77c222746405cc2a Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sat, 9 May 2020 17:53:49 +0200 Subject: [PATCH] Support piping on unix or at least trying Former-commit-id: eb9bc9807a2bd366dabfc71900bf7e5f70411da5 --- FFMpegCore/FFMPEG/Pipes/PipeHelpers.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } } }