adding comskip chapter node, and fixing issue with comskip remove ads only looking for spaces

fixed issue witgh Executor requiring output variables
This commit is contained in:
reven
2022-01-08 18:45:28 +13:00
parent 1d60c00da0
commit 18a5b4182a
6 changed files with 123 additions and 2 deletions
+20
View File
@@ -321,6 +321,26 @@ namespace VideoNodes.Tests
Assert.AreEqual(1, output);
}
[TestMethod]
public void Comskip_Chapters()
{
const string file = @"D:\videos\recordings\Rescue My Renovation (2001).ts";
const string ffmpeg = @"C:\utils\ffmpeg\ffmpeg.exe";
var args = new FileFlows.Plugin.NodeParameters(file, new TestLogger(), false, string.Empty);
args.GetToolPath = (string tool) => @"C:\utils\ffmpeg\ffmpeg.exe";
args.TempPath = @"D:\videos\temp";
var vi = new VideoInfoHelper(@"C:\utils\ffmpeg\ffmpeg.exe", new TestLogger());
var vii = vi.Read(file);
args.SetParameter("VideoInfo", vii);
//args.Process = new FileFlows.Plugin.ProcessHelper(args.Logger);
var node = new ComskipChapters();
int output = node.Execute(args);
Assert.AreEqual(1, output);
}
}
}