mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-02-23 07:09:51 -06:00
FF-1493: Added ability to save images to the file log
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -254,10 +254,11 @@ public class FfmpegBuilderCropBlackBars : FfmpegBuilderNode
|
||||
{
|
||||
process.Kill();
|
||||
args.Logger?.ELog("Timed out extracting image");
|
||||
Console.WriteLine(outputBuilder.ToString());
|
||||
return File.Exists(destination);
|
||||
}
|
||||
|
||||
if (File.Exists(destination))
|
||||
return true;
|
||||
|
||||
// Get the output and error messages
|
||||
string output = outputBuilder.ToString();
|
||||
string error = errorBuilder.ToString();
|
||||
@@ -268,13 +269,10 @@ public class FfmpegBuilderCropBlackBars : FfmpegBuilderNode
|
||||
Console.WriteLine(output);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(error))
|
||||
if (string.IsNullOrWhiteSpace(error) == false)
|
||||
{
|
||||
args.Logger?.WLog($"Error from ffmpeg: {error}");
|
||||
}
|
||||
|
||||
if (File.Exists(destination))
|
||||
return true;
|
||||
args.Logger?.WLog($"Error extracting frame: {error}");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user