Initial commit

This commit is contained in:
2022-03-12 17:12:52 +01:00
commit 09d1a52aed
14 changed files with 1189 additions and 0 deletions

24
WrapperDebug/Program.cs Normal file
View File

@@ -0,0 +1,24 @@
// See https://aka.ms/new-console-template for more information
using System.Diagnostics;
using MkvPropEditWrapper.MkvInfo;
using MkvPropEditWrapper.Utils;
var startInfo = new ProcessStartInfo()
{
FileName = "mkvinfo",
Arguments = "--ui-language en-US video.mkv"
};
if (new ProcessRunner(startInfo).TryRun(out var output))
{
var reader = new MkvInfoReader(output);
var root = reader.Read();
var tracks = root.Descendants().Where(n => n is { Depth: 2, NodeType: NodeType.Track });
var result = root.ToString();
}
Console.WriteLine("Hello, World!");