added logging to ffmpeg executor

This commit is contained in:
John Andrews
2022-07-20 21:11:35 +12:00
parent e4d4476508
commit 7ef82fca2b
15 changed files with 43 additions and 28 deletions

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>

View File

@@ -5,8 +5,8 @@
<Nullable>enable</Nullable>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>

View File

@@ -4,8 +4,8 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -9,8 +9,8 @@
<PublishTrimmed>true</PublishTrimmed>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -6,8 +6,8 @@
<Nullable>enable</Nullable>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -6,8 +6,8 @@
<Nullable>enable</Nullable>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -5,8 +5,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileFlows.$(MSBuildProjectName.Replace(" ", "_"))</RootNamespace>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>

View File

@@ -6,8 +6,8 @@
<Nullable>enable</Nullable>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>

View File

@@ -21,6 +21,21 @@ namespace FileFlows.VideoNodes.FfmpegBuilderNodes
public override int Execute(NodeParameters args)
{
var model = this.Model;
if(model == null)
{
args.Logger.ELog("FFMPEG Builder model is null");
return -1;
}
else if (model.VideoInfo == null)
{
args.Logger.ELog("FFMPEG Builder VideoInfo is null");
return -1;
}
else if (model.VideoInfo.FileName == null)
{
args.Logger.ELog("FFMPEG Builder VideoInfo Filename is null");
return -1;
}
List<string> ffArgs = new List<string>();
if(model.CustomParameters?.Any() == true)

View File

@@ -6,8 +6,8 @@
<Nullable>enable</Nullable>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<PublishSingleFile>true</PublishSingleFile>
<FileVersion>0.9.1.157</FileVersion>
<ProductVersion>0.9.1.157</ProductVersion>
<FileVersion>0.9.1.159</FileVersion>
<ProductVersion>0.9.1.159</ProductVersion>
<PublishTrimmed>true</PublishTrimmed>
<Company>FileFlows</Company>
<Authors>John Andrews</Authors>