Files
FileFlowsPlugins/VideoNodes/Tests/VideoEncodeTests.cs
John Andrews 48830362e5 fixing audio normalize node
added subtitle language remover
added aduio track remover
2022-03-25 15:34:11 +13:00

44 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 VideoEncodeTests
{
[TestMethod]
public void VideoEncode_EAC3_Test()
{
const string file = @"D:\videos\problemfile\sample fileflows.mkv";
var vi = new VideoInfoHelper(@"C:\utils\ffmpeg\ffmpeg.exe", new TestLogger());
var vii = vi.Read(file);
VideoEncode 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";
node.AudioCodec = "aac";
node.Language = "DE";
new VideoFile().Execute(args);
int output = node.Execute(args);
Assert.AreEqual(1, output);
}
}
}
#endif