mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-04-25 19:48:13 -05:00
4de8733b06
added option to remove all subtitles form subtitle remover
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
#if(DEBUG)
|
|
|
|
namespace VideoNodes.Tests
|
|
{
|
|
using FileFlows.VideoNodes;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
[TestClass]
|
|
public class SubtitleRemoverTests
|
|
{
|
|
[TestMethod]
|
|
public void SubtitleRemover_Test_01()
|
|
{
|
|
const string file = @"D:\videos\unprocessed\Home and Away - 2022-02-23 18 30 00 - Home And Away.ts";
|
|
var vi = new VideoInfoHelper(@"C:\utils\ffmpeg\ffmpeg.exe", new TestLogger());
|
|
var vii = vi.Read(file);
|
|
|
|
SubtitleRemover node = new();
|
|
//node.OutputFile = file + ".sup";
|
|
var args = new FileFlows.Plugin.NodeParameters(file, new TestLogger(), false, string.Empty);
|
|
args.GetToolPathActual = (string tool) => @"C:\utils\ffmpeg\ffmpeg.exe";
|
|
args.TempPath = @"D:\videos\temp";
|
|
|
|
new VideoFile().Execute(args);
|
|
|
|
int output = node.Execute(args);
|
|
|
|
Assert.AreEqual(1, output);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
#endif |