@ -359,9 +359,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
@@ -359,9 +359,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
stringfilePath,
CancellationTokencancellationToken)
{
// only scans first 30 seconds
string[]arguments=
[
"-hide_banner",
"-t","30",
"-i",filePath,
"-c","copy",
"-bsf:v","trace_headers",
@ -370,6 +372,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
@@ -370,6 +372,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
@ -380,9 +387,13 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
@@ -380,9 +387,13 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
if(idx>=0)
{
uniqueProfiles.Add(line[idx..]);
if(uniqueProfiles.Count>1)
{
linkedCts.Cancel();
}
}
}))
.ExecuteAsync(cancellationToken);
.ExecuteAsync(linkedCts.Token);
if(traceHeaders.ExitCode!=0)
{
@ -393,6 +404,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider
@@ -393,6 +404,11 @@ public partial class LocalStatisticsProvider : ILocalStatisticsProvider