From 4f2eb51ad784d6d20f4e47821be4c3e30d4724ab Mon Sep 17 00:00:00 2001 From: John Andrews Date: Fri, 5 Apr 2024 16:24:03 +1300 Subject: [PATCH] FF-1473 - fixing extract audio --- VideoNodes/VideoNodes/VideoExtractAudio.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VideoNodes/VideoNodes/VideoExtractAudio.cs b/VideoNodes/VideoNodes/VideoExtractAudio.cs index e960ed9e..ef00ff0d 100644 --- a/VideoNodes/VideoNodes/VideoExtractAudio.cs +++ b/VideoNodes/VideoNodes/VideoExtractAudio.cs @@ -159,7 +159,9 @@ public class VideoExtractAudio : AudioSelectionEncodingNode args.Logger?.ILog("File already exists, deleting file: " + localOutput); System.IO.File.Delete(localOutput); } - var argList = new [] { "-i", args.WorkingFile }.Union(parameters).Union(new [] { localOutput }).ToArray(); + + string localFile = args.FileService.GetLocalPath(args.WorkingFile); + var argList = new [] { "-i", localFile }.Union(parameters).Union(new [] { localOutput }).ToArray(); // -y means it will overwrite a file if output already exists var result = args.Process.ExecuteShellCommand(new ExecuteArgs