From b33ae66ab16d1b533070192540f2b2fc69581df6 Mon Sep 17 00:00:00 2001 From: John Andrews Date: Tue, 27 Feb 2024 08:30:33 +1300 Subject: [PATCH] FF-1359 - fixing issue with read video info not using local file --- VideoNodes/VideoNodes/ReadVideoInfo.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/VideoNodes/VideoNodes/ReadVideoInfo.cs b/VideoNodes/VideoNodes/ReadVideoInfo.cs index 02aeb29c..22b30b22 100644 --- a/VideoNodes/VideoNodes/ReadVideoInfo.cs +++ b/VideoNodes/VideoNodes/ReadVideoInfo.cs @@ -47,8 +47,15 @@ namespace FileFlows.VideoNodes { try { + var localFileResult = args.FileService.GetLocalPath(args.WorkingFile); + if (localFileResult.Failed(out string lfError)) + { + args.FailureReason = "Failed getting local file: " + lfError; + args.Logger.ILog(args.FailureReason); + return -1; + } - var videoInfoResult = new VideoInfoHelper(FFMPEG, args.Logger).Read(args.WorkingFile); + var videoInfoResult = new VideoInfoHelper(FFMPEG, args.Logger).Read(localFileResult.Value); if (videoInfoResult.Failed(out string error)) { args.Logger.ELog(error);