Initial commit
This commit is contained in:
24
WrapperDebug/Program.cs
Normal file
24
WrapperDebug/Program.cs
Normal 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!");
|
||||
14
WrapperDebug/WrapperDebug.csproj
Normal file
14
WrapperDebug/WrapperDebug.csproj
Normal file
@@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MkvToolnixWrapper\MkvToolnixWrapper.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user