diff --git a/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js b/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js index 4c41256..be83284 100644 --- a/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js +++ b/Scripts/Flow/Video/Video - Dolby Vision - Fix crop and compatibility.js @@ -5,7 +5,7 @@ Run between encode and move/replace. Output is always an MKV. dovi_tool only supports HEVC when AV1 support is added I will updated this script. * @author Lawrence Curtis - * @revision 3 + * @revision 4 * @uid f5eebc75-e22d-4181-af02-5e7263e68acd * @param {bool} RemoveHDRTenPlus Remove HDR10+, this fixes the black screen issues on FireStick * @output Fixed @@ -36,7 +36,8 @@ function Script(RemoveHDRTenPlus) { if (!ffmpeg) return -1; let working = Flow.WorkingFile; - let original = Variables.file.Orig.FullName; + var result = Flow.FileService.GetLocalPath(Variables.file.Orig.FullName); + let original = result.Value; let process = Flow.Execute({ command: ffmpeg, @@ -107,7 +108,7 @@ function Script(RemoveHDRTenPlus) { ); } - if (!Flow.IsWindows) { + if (Flow.IsLinux) { let args = executeArgs.argumentList.join(" "); executeArgs.argumentList = ["-qefc", dovi_tool + " " + args, "/dev/null"]; executeArgs.command = "script"; @@ -189,7 +190,7 @@ function Script(RemoveHDRTenPlus) { ); } - if (!Flow.IsWindows) { + if (Flow.IsLinux) { let args = executeArgs.argumentList.join(" "); executeArgs.argumentList = ["-qefc", dovi_tool + " " + args, "/dev/null"]; executeArgs.command = "script";